Skip to content

Commit

Permalink
fix: exports
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkeyl committed Aug 6, 2024
1 parent 5ba54a6 commit 3e74ed2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Files
*.md
index.js
pnpm-lock.yaml

# *rc
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const n=e=>e;export{n as defineConfig};
4 changes: 2 additions & 2 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import typescript from '@rollup/plugin-typescript';
const sourceFolder = 'src';

const fileName = 'index';
const fileFormat = 'es';

const indexFile = `${fileName}.ts`;
const declarationFile = `${fileName}.d.ts`;
const outputFile = `${fileName}.js`;

const fileFormat = 'es';

export default defineConfig([
{
plugins: [typescript(), minify()],
Expand Down
6 changes: 3 additions & 3 deletions specs/define-config.spec-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import type { UserConfig } from '@commitlint/types';

import { defineConfig } from '#src';

describe('Define Commitlint Config', () => {
spec('define empty config', async () => {
describe('Commitlint Config', () => {
spec('empty config', async () => {
expectTypeOf(defineConfig({})).toEqualTypeOf<UserConfig>();
});

spec('define config', async () => {
spec('config', async () => {
expectTypeOf(
defineConfig({
defaultIgnores: true,
Expand Down
1 change: 1 addition & 0 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "",
"rootDir": "src",
"skipLibCheck": true,
"target": "ESNext",
"types": ["vitest"]
Expand Down

0 comments on commit 3e74ed2

Please sign in to comment.