Skip to content

Commit 50806fa

Browse files
feat: update ESLint and tsdown configurations for improved file handling and type definitions
1 parent 5fe4fcc commit 50806fa

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ export default antfu({
2121
'no-new-func': 'off',
2222
},
2323
}, {
24-
files: ['playground/**/*.{ts,js,mjs,cjs}'],
24+
files: [
25+
'playground/**/*.{ts,js,mjs,cjs}',
26+
'playground-nuxt/**/*.{ts,js,mjs,cjs}',
27+
],
2528
rules: {
2629
'no-console': 'off',
2730
'unused-imports/no-unused-vars': 'off',

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,49 +8,49 @@
88
"sideEffects": false,
99
"exports": {
1010
".": {
11-
"types": "./dist/index.d.mts",
12-
"import": "./dist/index.mjs"
11+
"types": "./dist/index.d.ts",
12+
"import": "./dist/index.js"
1313
},
1414
"./codegen": {
15-
"types": "./dist/codegen.d.mts",
16-
"import": "./dist/codegen.mjs"
15+
"types": "./dist/codegen.d.ts",
16+
"import": "./dist/codegen.js"
1717
},
1818
"./watcher": {
19-
"types": "./dist/watcher.d.mts",
20-
"import": "./dist/watcher.mjs"
19+
"types": "./dist/watcher.d.ts",
20+
"import": "./dist/watcher.js"
2121
},
2222
"./client-watcher": {
23-
"types": "./dist/client-watcher.d.mts",
24-
"import": "./dist/client-watcher.mjs"
23+
"types": "./dist/client-watcher.d.ts",
24+
"import": "./dist/client-watcher.js"
2525
},
2626
"./context": {
27-
"types": "./dist/context.d.mts",
28-
"import": "./dist/context.mjs"
27+
"types": "./dist/context.d.ts",
28+
"import": "./dist/context.js"
2929
},
3030
"./utils": {
31-
"types": "./dist/utils/index.d.mts",
32-
"import": "./dist/utils/index.mjs"
31+
"types": "./dist/utils/index.d.ts",
32+
"import": "./dist/utils/index.js"
3333
},
3434
"./types": {
35-
"types": "./dist/types.d.mts",
36-
"import": "./dist/types.mjs"
35+
"types": "./dist/types.d.ts",
36+
"import": "./dist/types.js"
3737
},
3838
"./internal": {
39-
"types": "./dist/internal/index.d.mts",
40-
"import": "./dist/internal/index.mjs"
39+
"types": "./dist/internal/index.d.ts",
40+
"import": "./dist/internal/index.js"
4141
}
4242
},
43-
"main": "./dist/index.mjs",
44-
"module": "./dist/index.mjs",
45-
"types": "./dist/index.d.mts",
43+
"main": "./dist/index.js",
44+
"module": "./dist/index.js",
45+
"types": "./dist/index.d.ts",
4646
"files": [
4747
"dist"
4848
],
4949
"scripts": {
5050
"prepack": "pnpm build",
5151
"build": "tsdown",
5252
"dev": "tsdown --watch",
53-
"bumpp": "bumpp package.mjson",
53+
"bumpp": "bumpp package.json",
5454
"release": "pnpm build && pnpm bumpp && pnpm publish --no-git-checks --access public",
5555
"playground": "cd playground && pnpm install && pnpm dev",
5656
"lint": "eslint .",

tsdown.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export default defineConfig({
2424
dts: true,
2525
clean: true,
2626
name: 'nitro-graphql',
27-
fixedExtension: true,
2827
unbundle: true,
2928
external: [
3029
'nitro-graphql/types',

0 commit comments

Comments
 (0)