Skip to content

Commit bf12e4c

Browse files
committed
chore: fix ts-node loader for newer node versions
1 parent 545848b commit bf12e4c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"build:mjs": "tsc --module esnext --outDir ./bin",
3333
"build": "npm run build:mjs",
3434
"pretest": "npm run build",
35-
"test:raw": "ts-node --esm test/index.ts",
35+
"test:raw": "node --loader ts-node/esm test/index.ts",
3636
"test": "npm run test:raw | tap-spec",
3737
"test-with-coverage": "c8 --reporter=text npm test",
3838
"dependencies:update-internal": "npm uninstall @json2csv/formatters @json2csv/node @json2csv/transforms && npm install @json2csv/formatters @json2csv/node @json2csv/transforms",

packages/node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"pretest": "npm run build",
4444
"test": "node test/CommonJS.cjs && npm run test:raw | tap-spec",
4545
"test-with-coverage": "c8 --reporter=text npm test",
46-
"test:raw": "ts-node --esm test/index.ts",
46+
"test:raw": "node --loader ts-node/esm test/index.ts",
4747
"dependencies:update-internal": "npm uninstall @json2csv/plainjs && npm install @json2csv/plainjs",
4848
"prepublishOnly": "npm run build"
4949
},

packages/plainjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"pretest": "npm run build",
4444
"test": "node test/CommonJS.cjs && npm run test:raw | tap-spec",
4545
"test-with-coverage": "c8 --reporter=text npm test",
46-
"test:raw": "ts-node --esm test/index.ts",
46+
"test:raw": "node --loader ts-node/esm test/index.ts",
4747
"dependencies:update-internal": "npm uninstall @json2csv/formatters && npm install @json2csv/formatters",
4848
"prepublishOnly": "npm run build"
4949
},

packages/whatwg/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"pretest": "npm run build",
4444
"test": "node test/CommonJS.cjs && npm run test:raw | tap-spec",
4545
"test-with-coverage": "c8 --reporter=text npm test",
46-
"test:raw": "ts-node --esm test/index.ts",
46+
"test:raw": "node --loader ts-node/esm test/index.ts",
4747
"dependencies:update-internal": "npm uninstall @json2csv/plainjs && npm install @json2csv/plainjs",
4848
"prepublishOnly": "npm run build"
4949
},

0 commit comments

Comments
 (0)