We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b72c777 commit 4add9faCopy full SHA for 4add9fa
src/ts2famix-cli-wrapper.ts
@@ -1,12 +1,16 @@
1
#!/usr/bin/env node
2
3
import { spawn } from 'child_process';
4
+import * as path from 'path';
5
-// allow tslog to display the proper typescript files and line numbers
6
+// Resolve the path to ts2famix-cli.js relative to the wrapper script
7
+const cliPath = path.resolve(__dirname, 'ts2famix-cli.js');
8
+
9
+// Allow tslog to display the proper TypeScript files and line numbers
10
const args = [
11
'--enable-source-maps',
12
'--experimental-specifier-resolution=node',
- 'dist/ts2famix-cli.js',
13
+ cliPath,
14
...process.argv.slice(2)
15
];
16
0 commit comments