@neurospeech/jex 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/jex +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
package/bin/jex
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import '../index.js';
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -49,6 +49,7 @@ export const invoke = async (name: string , args: string[]) => {
|
|
|
49
49
|
}
|
|
50
50
|
await node.execute();
|
|
51
51
|
} catch (error) {
|
|
52
|
+
console.log(args);
|
|
52
53
|
console.error(error);
|
|
53
54
|
}
|
|
54
55
|
|
|
@@ -66,6 +67,7 @@ if (process.argv.length) {
|
|
|
66
67
|
|
|
67
68
|
// third arg onwards should be the batch that we would like to execute...
|
|
68
69
|
const [program, script, ... args] = process.argv;
|
|
70
|
+
invoke(script, args).catch(console.error);
|
|
69
71
|
|
|
70
72
|
|
|
71
73
|
}
|