Skip to content

Commit

Permalink
ts-node to tsx experimentally change
Browse files Browse the repository at this point in the history
  • Loading branch information
tkitsunai committed Mar 21, 2024
1 parent 0614e7c commit daf90c8
Show file tree
Hide file tree
Showing 5 changed files with 270 additions and 7 deletions.
5 changes: 3 additions & 2 deletions launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ else if (process.argv[2] === "--start") {
...hasModule('tsconfig-paths') ? ['-r', 'tsconfig-paths/register'] : [],
'-e', script
];
let tsNode = path.join(GAUGE_PROJECT_ROOT, 'node_modules', '.bin', 'ts-node');
var runner = cp.spawn(getCommand(tsNode), opts, {
//let tsNode = path.join(GAUGE_PROJECT_ROOT, 'node_modules', '.bin', 'ts-node');
let tsxPath = path.join(GAUGE_PROJECT_ROOT, 'node_modules', '.bin', 'tsx');
var runner = cp.spawn(getCommand(tsxPath), opts, {
env: process.env,
silent: false,
stdio: "inherit",
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gauge-typescript",
"version": "0.2.1",
"description": "TypeScript language runner for gauge",
"description": "TypeScript language runner for Gauge",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
Expand All @@ -14,7 +14,8 @@
"gen-proto": "sh genproto.sh",
"prepublishOnly": "tsc",
"package": "sh build.sh package",
"installPlugin": "sh build.sh install"
"installPlugin": "sh build.sh install",
"uninstallPlugin": "sh build.sh uninstall"
},
"repository": {
"type": "git",
Expand All @@ -39,6 +40,7 @@
"google-protobuf": "^3.21.2",
"klaw-sync": "^6.0.0",
"ts-node": "10.9.2",
"tsx": "^4.7.1",
"typescript": "5.4.2",
"uuid": "^9.0.1"
},
Expand Down
263 changes: 262 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/GaugeRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export class GaugeRuntime {
throw err;
}
console.log(`Listening on port:${port}`);
server.start();
});
}

Expand Down
2 changes: 1 addition & 1 deletion typescript.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"--start"
]
},
"version": "0.2.0",
"version": "0.2.1",
"gRPCSupport": true
}

0 comments on commit daf90c8

Please sign in to comment.