Skip to content

Commit

Permalink
fix(ts): cleanup type generation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Oct 4, 2023
1 parent 9b6afc3 commit d453eee
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"impliedStrict": true
},
"ecmaVersion": 2019,
"project": "./jsconfig.json",
"sourceType": "module"
},
"plugins": [
Expand Down
15 changes: 0 additions & 15 deletions jsconfig.json

This file was deleted.

9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@
"tap": "^16.3.4",
"typescript": "^5.1.6"
},
"typesVersions": {
"*": {
"*": [
"types/*"
]
}
},
"files": [
"bin",
"data",
Expand All @@ -87,7 +94,7 @@
],
"scripts": {
"pretest": "eslint \"./bin/**/*.js\" \"./data/**/*.js\" \"./utils/**/*.js\" \"./lib/**/*.js\" \"./test/**/*.js\" && tsc --noEmit",
"test": "c8 tap --no-coverage",
"test": "c8 tap test/**/*.js --no-coverage",
"prepare": "rollup -c rollup.config.js",
"prepublishOnly": "tsc --emitDeclarationOnly",
"updateFeatures": "scripts/update-caniuse.sh && node scripts/update-features.js"
Expand Down
9 changes: 8 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"allowSyntheticDefaultImports": true,
"checkJs": true,
"declaration": true,
"declarationMap": true,
"declarationDir": "types",
"module": "esnext",
"moduleResolution": "node",
"outDir": "types",
"outDir": "/dev/null",
"removeComments": false,
"target": "ES2021",
"useUnknownInCatchVariables": false,
Expand All @@ -21,5 +23,10 @@
"util/**/*.js",
"test/**/*.js",
"scripts/**/*.js"
],
"exclude": [
"./**/*.cjs",
"./node_modules/*",
"types/*"
]
}

0 comments on commit d453eee

Please sign in to comment.