Skip to content

Commit 7313f87

Browse files
committed
ts-node wont run on node v6/8 😭
1 parent 59638e1 commit 7313f87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"prepublishOnly": "lerna run --stream --concurrency 1 prepublishOnly",
2424
"postpublish": "make publish-docs && lerna run --stream --concurrency 1 postpublish",
2525
"test": "lerna run --ignore @sentry-internal/browser-integration-tests --stream --concurrency 1 --sort test",
26-
"test-ci": "ts-node scripts/test.ts"
26+
"test-ci": "node ./scripts/test.ts"
2727
},
2828
"volta": {
2929
"node": "14.17.0",

‎scripts/test.ts renamed to ‎scripts/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const { spawnSync } = require('child_process');
22
const { join } = require('path');
33

4-
function run(cmd: string, cwd: string = '') {
5-
const result = spawnSync(cmd, { shell: true, stdio: 'inherit', cwd: join(__dirname, '..', cwd) });
4+
function run(cmd, cwd) {
5+
const result = spawnSync(cmd, { shell: true, stdio: 'inherit', cwd: join(__dirname, '..', cwd || '') });
66

77
if (result.status !== 0) {
88
process.exit(result.status);

0 commit comments

Comments
 (0)