Skip to content

Commit

Permalink
fix(Node): Fix newer node versions not supporting node modular resolu…
Browse files Browse the repository at this point in the history
…tion system
  • Loading branch information
EntraptaJ committed Sep 9, 2023
1 parent 5a2b28b commit 62a1aa5
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 1,742 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Create a `dev` script in `package.json`
```
{
"scripts": {
"dev": "node --loader @k-foss/ts-esnode --experimental-specifier-resolution=node ./src/index.ts",
"dev": "node --loader @k-foss/ts-esnode --loader extensionless ./src/index.ts",
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion Testing/Tests/JSNonExtPaths/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"NODE_OPTIONS": "--harmony-top-level-await",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node --loader ../../../out/dist/index.js --experimental-specifier-resolution=node --experimental-import-meta-resolve --harmony-optional-chaining --harmony-top-level-await src/index.ts"
"start": "node --loader ../../../out/dist/index.js --loader extensionless --experimental-import-meta-resolve --harmony-optional-chaining --harmony-top-level-await src/index.ts"
},
"author": "",
"license": "ISC"
Expand Down
2 changes: 1 addition & 1 deletion Testing/Tests/JSPaths/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"NODE_OPTIONS": "--harmony-top-level-await",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node --loader ../../../out/dist/index.js --experimental-specifier-resolution=node --experimental-import-meta-resolve --harmony-optional-chaining --harmony-top-level-await src/index.ts"
"start": "node --loader ../../../out/dist/index.js --loader extensionless --experimental-import-meta-resolve --harmony-optional-chaining --harmony-top-level-await src/index.ts"
},
"author": "",
"license": "ISC"
Expand Down
2 changes: 1 addition & 1 deletion Testing/Tests/Paths/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"NODE_OPTIONS": "--harmony-top-level-await",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node --loader ../../../out/dist/index.js --experimental-specifier-resolution=node --experimental-import-meta-resolve --harmony-optional-chaining --harmony-top-level-await src/index.ts"
"start": "node --loader ../../../out/dist/index.js --loader extensionless --experimental-import-meta-resolve --harmony-optional-chaining --harmony-top-level-await src/index.ts"
},
"author": "",
"license": "ISC"
Expand Down
2 changes: 1 addition & 1 deletion Testing/Tests/TSExtPaths/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"NODE_OPTIONS": "--harmony-top-level-await",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node --loader ../../../out/dist/index.js --experimental-specifier-resolution=node --experimental-import-meta-resolve --harmony-optional-chaining --harmony-top-level-await src/index.ts"
"start": "node --loader ../../../out/dist/index.js --loader extensionless --experimental-import-meta-resolve --harmony-optional-chaining --harmony-top-level-await src/index.ts"
},
"author": "",
"license": "ISC"
Expand Down
2 changes: 1 addition & 1 deletion Testing/Tests/TSNonExtPaths/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"NODE_OPTIONS": "--harmony-top-level-await",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node --loader ../../../out/dist/index.js --experimental-specifier-resolution=node --experimental-import-meta-resolve --harmony-optional-chaining --harmony-top-level-await src/index.ts"
"start": "node --loader ../../../out/dist/index.js --loader extensionless --experimental-import-meta-resolve --harmony-optional-chaining --harmony-top-level-await src/index.ts"
},
"author": "",
"license": "ISC"
Expand Down
Loading

0 comments on commit 62a1aa5

Please sign in to comment.