Skip to content

Commit

Permalink
chore: update tsconfig.json, package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
XuJiandong committed Jan 21, 2025
1 parent 2978a3b commit 85945e7
Show file tree
Hide file tree
Showing 8 changed files with 146 additions and 44 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"esbuild": "0.24.2",
"eslint": "9.18.0",
"prettier": "3.4.2",
"typedoc": "0.27.6",
"typescript": "^5.7.3"
},
"pnpm": {}
Expand Down
2 changes: 1 addition & 1 deletion packages/bindings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"scripts": {
},
"sideEffects": false,
"types": "index"
"types": "./index.d.ts"
}
4 changes: 1 addition & 3 deletions packages/bindings/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"target": "es2020",
"module": "ESNext",
"moduleResolution": "Bundler",
"types": [ "./index.d.ts" ]
}
}
24 changes: 0 additions & 24 deletions packages/examples/tsconfig.base.json

This file was deleted.

11 changes: 4 additions & 7 deletions packages/examples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler",
"outDir": "./dist",
"baseUrl": ".",
}
"extends": "../../tsconfig.base.json",
"include": [
"src/**/*"
]
}
130 changes: 130 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"compilerOptions": {
/* The QuickJS supports ES2022 */
"module": "ESNext",
/* Use esbuild to bundle the code */
"moduleResolution": "Bundler",
"outDir": "./dist",
"target": "ES2022",
"incremental": true,
"allowJs": true,
Expand All @@ -16,8 +21,5 @@
"alwaysStrict": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true
},
"include": [
"packages/**/*"
]
}
}
8 changes: 3 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler",
"outDir": "./dist"
}
"include": [
"packages/**/*"
]
}

0 comments on commit 85945e7

Please sign in to comment.