vona-cli 1.0.42 → 1.0.46

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/dist/bin/vona.js CHANGED
@@ -1,3 +1,15 @@
1
1
  #!/usr/bin/env node
2
- import { VonaCommand } from "../start.js";
3
- new VonaCommand().start();
2
+ import path from 'node:path';
3
+ import { ProcessHelper } from '@cabloy/process-helper';
4
+ import fse from 'fs-extra';
5
+ const processHelper = new ProcessHelper(process.cwd());
6
+ let args = ['--experimental-transform-types', '--loader=ts-node/esm'];
7
+ // bootstrapFile
8
+ let bootstrapFile = path.join(import.meta.dirname, '../bootstrap.ts');
9
+ if (!fse.existsSync(bootstrapFile)) {
10
+ bootstrapFile = path.join(import.meta.dirname, '../bootstrap.js');
11
+ }
12
+ args.push(bootstrapFile);
13
+ const rawArgv = process.argv.slice(2);
14
+ args = args.concat(rawArgv);
15
+ processHelper.spawnExe({ cmd: 'node', args });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { VonaCommand } from "./start.js";
2
+ new VonaCommand().start();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-cli",
3
3
  "type": "module",
4
- "version": "1.0.42",
4
+ "version": "1.0.46",
5
5
  "description": "vona cli",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -29,8 +29,11 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@cabloy/cli": "^3.0.25",
33
- "vona-cli-set-api": "^1.0.45"
32
+ "@cabloy/cli": "^3.0.27",
33
+ "@cabloy/process-helper": "^2.0.17",
34
+ "fs-extra": "^11.2.0",
35
+ "ts-node": "^10.9.2",
36
+ "vona-cli-set-api": "^1.0.49"
34
37
  },
35
38
  "gitHead": "0eab9dc4a5622caffe89e7b1b3f02c08ccbc4c4b",
36
39
  "scripts": {