File tree Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change 12
12
" eslint-config"
13
13
],
14
14
"exports" : {
15
- "." : {
16
- "import" : " ./dist/index.js" ,
17
- "require" : " ./dist/index.cjs"
18
- }
15
+ "." : " ./dist/index.js"
19
16
},
20
17
"main" : " ./dist/index.js" ,
21
18
"types" : " ./dist/index.d.ts" ,
25
22
" dist"
26
23
],
27
24
"scripts" : {
28
- "build" : " nr typegen && tsup --format esm,cjs -- clean --dts" ,
29
- "stub" : " tsup --format esm " ,
25
+ "build" : " nr typegen && tsup --clean --dts" ,
26
+ "stub" : " tsup" ,
30
27
"dev" : " npx @eslint/config-inspector --config eslint.config.ts" ,
31
28
"build:inspector" : " pnpm build && npx @eslint/config-inspector build" ,
32
- "watch" : " tsup --format esm,cjs -- watch" ,
29
+ "watch" : " tsup --watch" ,
33
30
"lint" : " eslint ." ,
34
31
"typegen" : " tsx scripts/typegen.ts" ,
35
32
"prepack" : " nr build" ,
Original file line number Diff line number Diff line change @@ -61,14 +61,6 @@ it('esm eslint.config.js', async () => {
61
61
expect ( stdout ) . toContain ( 'Created eslint.config.js' )
62
62
} )
63
63
64
- it ( 'cjs eslint.config.mjs' , async ( ) => {
65
- const { stdout } = await run ( )
66
-
67
- const eslintConfigContent = await fs . readFile ( join ( genPath , 'eslint.config.mjs' ) , 'utf-8' )
68
- expect ( eslintConfigContent . includes ( 'export default' ) ) . toBeTruthy ( )
69
- expect ( stdout ) . toContain ( 'Created eslint.config.mjs' )
70
- } )
71
-
72
64
it ( 'ignores files added in eslint.config.js' , async ( ) => {
73
65
const { stdout } = await run ( )
74
66
Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ export default defineConfig({
6
6
'src/cli.ts' ,
7
7
] ,
8
8
shims : true ,
9
+ format : [ 'esm' ] ,
9
10
} )
You can’t perform that action at this time.
0 commit comments