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.
Files changed (2) hide show
  1. package/bin/cli.cjs +4 -7
  2. 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
- import { execSync } from 'child_process';
12
- import fsExtra from 'fs-extra';
11
+ const { execSync } = require('child_process');
12
+ const fsExtra = require('fs-extra');
13
13
  const { copySync } = fsExtra;
14
- import path from 'path';
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);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "this.gui",
3
3
  "private": false,
4
- "version": "1.2.14",
4
+ "version": "1.2.15",
5
5
  "type": "module",
6
6
  "main": "dist/this-gui.umd.js",
7
7
  "module": "dist/this-gui.es.js",