Skip to content

Commit 9e7c5ad

Browse files
committed
fix: remove tsx
1 parent 7e8ef15 commit 9e7c5ad

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

.github/workflows/test-and-release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,9 @@ jobs:
220220
- name: Print failed End-to-End tests
221221
if: failure()
222222
run:
223-
cat e2e-test-result.json | npx tsx --no-warnings
224-
./feature-runner/console-reporter.ts --only-failed --with-timestamps
223+
cat e2e-test-result.json | node --experimental-transform-types
224+
--no-warnings ./feature-runner/console-reporter.ts --only-failed
225+
--with-timestamps
225226

226227
- uses: actions/upload-artifact@v4
227228
if: failure()

cdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"app": "npx tsx --no-warnings cdk/backend.ts"
2+
"app": "node --experimental-transform-types --no-warnings cdk/backend.ts"
33
}

cli.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22

33
export NODE_NO_WARNINGS=1
4-
node --import tsx ./cli/cli.ts "$@"
4+
node --experimental-transform-types ./cli/cli.ts "$@"

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "Cloud backend for hello.nrfcloud.com/map developed using AWS CDK in TypeScript",
55
"type": "module",
66
"scripts": {
7-
"test": "npx globstar -- npx tsx --test --test-reporter spec \"!(dist|node_modules)/**/*.spec.ts\"",
8-
"test:e2e": "npx tsx --no-warnings ./feature-runner/run-features.ts > e2e-test-result.json && cat e2e-test-result.json | npx tsx --no-warnings ./feature-runner/console-reporter.ts --only-failed --with-timestamps",
7+
"test": "npx globstar -- node --experimental-transform-types --test --test-reporter spec \"!(dist|node_modules)/**/*.spec.ts\"",
8+
"test:e2e": "node --experimental-transform-types --no-warnings ./feature-runner/run-features.ts > e2e-test-result.json && cat e2e-test-result.json | node --experimental-transform-types --no-warnings ./feature-runner/console-reporter.ts --only-failed --with-timestamps",
99
"prepare": "husky && check-node-version --package"
1010
},
1111
"repository": {
@@ -64,8 +64,7 @@
6464
"jsonata": "2.0.6",
6565
"semver": "7.6.3",
6666
"table": "6.9.0",
67-
"tsmatchers": "5.0.2",
68-
"tsx": "4.19.2"
67+
"tsmatchers": "5.0.2"
6968
},
7069
"lint-staged": {
7170
"*.{md,json,yaml,yml}": [

0 commit comments

Comments
 (0)