Skip to content

Commit

Permalink
Support Node.js 20 (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore authored May 4, 2023
1 parent 5b8563d commit 534e1d5
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
- 14
Expand Down
2 changes: 1 addition & 1 deletion packages/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"clean": "rm -rf dist",
"tsc:esm": "tsc -p ./tsconfig.esm.json",
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/confirm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"clean": "rm -rf dist",
"tsc:esm": "tsc -p ./tsconfig.esm.json",
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"clean": "rm -rf dist",
"tsc:esm": "tsc -p ./tsconfig.esm.json",
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"clean": "rm -rf dist",
"tsc:esm": "tsc -p ./tsconfig.esm.json",
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/expand/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"clean": "rm -rf dist",
"tsc:esm": "tsc -p ./tsconfig.esm.json",
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"clean": "rm -rf dist",
"tsc:esm": "tsc -p ./tsconfig.esm.json",
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/password/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"clean": "rm -rf dist",
"tsc:esm": "tsc -p ./tsconfig.esm.json",
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/prompts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"clean": "rm -rf dist",
"tsc:esm": "tsc -p ./tsconfig.esm.json",
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},
"engines": {
"node": ">=14.18.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/rawlist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"clean": "rm -rf dist",
"tsc:esm": "tsc -p ./tsconfig.esm.json",
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"clean": "rm -rf dist",
"tsc:esm": "tsc -p ./tsconfig.esm.json",
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"clean": "rm -rf dist",
"tsc:esm": "tsc -p ./tsconfig.esm.json",
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/type/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"clean": "rm -rf dist",
"tsc:esm": "tsc -p ./tsconfig.esm.json",
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "ts-node ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
},
"engines": {
"node": ">=14.18.0"
Expand Down
3 changes: 2 additions & 1 deletion tools/setup-packages.mts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ paths.forEach(async (pkgPath) => {
clean: 'rm -rf dist',
'tsc:esm': 'tsc -p ./tsconfig.esm.json',
'tsc:cjs': 'tsc -p ./tsconfig.cjs.json && yarn run fix-ext',
'fix-ext': 'ts-node ../../tools/rename-ext.mts',
'fix-ext':
'node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts',
};

// Set CJS tsconfig
Expand Down

0 comments on commit 534e1d5

Please sign in to comment.