@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.
Files changed (3) hide show
  1. package/bin/jex +1 -1
  2. package/package.json +1 -1
  3. package/src/index.ts +2 -0
package/bin/jex CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- require('../index.js')
2
+ import '../index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neurospeech/jex",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Easy shell scripting with JavaScript and E4X (Similar to JSX)",
5
5
  "main": "index.js",
6
6
  "type": "module",
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
  }