frontend-hamroun 1.0.2 → 1.0.4
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.js +6 -5
- package/package.json +4 -1
package/bin/cli.js
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
|
3
|
-
import
|
3
|
+
import { Command } from 'commander';
|
4
|
+
import { createRequire } from 'module';
|
4
5
|
import inquirer from 'inquirer';
|
5
6
|
import chalk from 'chalk';
|
6
7
|
import fsExtra from 'fs-extra';
|
7
|
-
import path from 'path';
|
8
|
+
import * as path from 'path';
|
8
9
|
import { createSpinner } from 'nanospinner';
|
9
10
|
import { fileURLToPath } from 'url';
|
10
11
|
|
11
|
-
const
|
12
|
-
|
12
|
+
const require = createRequire(import.meta.url);
|
13
|
+
const program = new Command();
|
13
14
|
const __filename = fileURLToPath(import.meta.url);
|
14
15
|
const __dirname = path.dirname(__filename);
|
15
16
|
|
@@ -108,4 +109,4 @@ program
|
|
108
109
|
spinner.success({ text: 'Build complete!' });
|
109
110
|
});
|
110
111
|
|
111
|
-
program.parse();
|
112
|
+
program.parse(process.argv);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "frontend-hamroun",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.4",
|
4
4
|
"description": "A lightweight frontend framework with hooks and virtual DOM",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/index.js",
|
@@ -42,6 +42,9 @@
|
|
42
42
|
"type": "git",
|
43
43
|
"url": "your-repo-url"
|
44
44
|
},
|
45
|
+
"engines": {
|
46
|
+
"node": ">=14.16"
|
47
|
+
},
|
45
48
|
"dependencies": {
|
46
49
|
"commander": "^11.0.0",
|
47
50
|
"inquirer": "^9.2.10",
|