this.gui 1.2.14 → 1.2.15
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/cli.cjs +4 -7
- package/package.json +1 -1
package/bin/cli.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
/**
|
|
2
3
|
* This.GUI CLI (TypeScript)
|
|
3
4
|
*
|
|
@@ -7,14 +8,10 @@
|
|
|
7
8
|
*
|
|
8
9
|
* Compiles to dist/bin/cli.js when the package is built.
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import fsExtra from 'fs-extra';
|
|
11
|
+
const { execSync } = require('child_process');
|
|
12
|
+
const fsExtra = require('fs-extra');
|
|
13
13
|
const { copySync } = fsExtra;
|
|
14
|
-
|
|
15
|
-
import { fileURLToPath } from 'url';
|
|
16
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
17
|
-
const __dirname = path.dirname(__filename);
|
|
14
|
+
const path = require('path');
|
|
18
15
|
const appName = process.argv[2] || 'my-app';
|
|
19
16
|
const templateDir = path.resolve(__dirname, '../templates');
|
|
20
17
|
const targetDir = path.resolve(process.cwd(), appName);
|