Skip to content

Commit

Permalink
make module nodenext
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Apr 21, 2024
1 parent 73eae48 commit 087ad7e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
13 changes: 4 additions & 9 deletions examples/01_counter/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "use-signals-example",
"version": "0.1.0",
"name": "example",
"version": "0.0.0",
"private": true,
"type": "commonjs",
"dependencies": {
"@types/react": "latest",
"@types/react-dom": "latest",
Expand All @@ -16,11 +17,5 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}
}
8 changes: 8 additions & 0 deletions examples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"module": "esnext",
"moduleResolution": "bundler"
},
"exclude": []
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"test:format": "prettier -c .",
"test:lint": "eslint .",
"test:types": "tsc -p . --noEmit",
"test:types:examples": "tsc -p examples --noEmit",
"test:spec": "vitest run",
"examples:01_counter": "DIR=01_counter vite"
},
Expand Down
1 change: 0 additions & 1 deletion tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"verbatimModuleSyntax": false,
"declaration": true,
"outDir": "./dist/cjs"
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"target": "es2018",
"downlevelIteration": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"module": "nodenext",
"allowJs": true,
"verbatimModuleSyntax": true,
"noUncheckedIndexedAccess": true,
Expand All @@ -15,5 +14,6 @@
"paths": {
"use-signals": ["./src"]
}
}
},
"exclude": ["dist", "examples"]
}

0 comments on commit 087ad7e

Please sign in to comment.