frontend-hamroun 1.0.1 → 1.0.3
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 +7 -4
- package/package.json +12 -8
package/bin/cli.js
CHANGED
@@ -1,13 +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
|
-
import fs from 'fs
|
7
|
-
import path from 'path';
|
7
|
+
import { promises as fs } from 'fs';
|
8
|
+
import * as path from 'path';
|
8
9
|
import { createSpinner } from 'nanospinner';
|
9
10
|
import { fileURLToPath } from 'url';
|
10
11
|
|
12
|
+
const require = createRequire(import.meta.url);
|
13
|
+
const program = new Command();
|
11
14
|
const __filename = fileURLToPath(import.meta.url);
|
12
15
|
const __dirname = path.dirname(__filename);
|
13
16
|
|
@@ -106,4 +109,4 @@ program
|
|
106
109
|
spinner.success({ text: 'Build complete!' });
|
107
110
|
});
|
108
111
|
|
109
|
-
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.3",
|
4
4
|
"description": "A lightweight frontend framework with hooks and virtual DOM",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/index.js",
|
@@ -42,18 +42,22 @@
|
|
42
42
|
"type": "git",
|
43
43
|
"url": "your-repo-url"
|
44
44
|
},
|
45
|
+
"engines": {
|
46
|
+
"node": ">=14.16"
|
47
|
+
},
|
48
|
+
"dependencies": {
|
49
|
+
"commander": "^11.0.0",
|
50
|
+
"inquirer": "^9.2.10",
|
51
|
+
"chalk": "^5.3.0",
|
52
|
+
"fs-extra": "^11.1.1",
|
53
|
+
"nanospinner": "^1.1.0"
|
54
|
+
},
|
45
55
|
"devDependencies": {
|
46
56
|
"@types/react": "^19.0.8",
|
47
57
|
"@vitejs/plugin-react": "^4.0.4",
|
48
58
|
"typescript": "^5.0.0",
|
49
59
|
"vite": "^4.4.9",
|
50
|
-
"vitest": "^0.34.0"
|
51
|
-
"nanospinner": "^1.1.0",
|
52
|
-
"chalk": "^5.3.0",
|
53
|
-
"commander": "^11.0.0",
|
54
|
-
"inquirer": "^9.2.10",
|
55
|
-
"fs-extra": "^11.1.1",
|
56
|
-
"ora": "^7.0.1"
|
60
|
+
"vitest": "^0.34.0"
|
57
61
|
},
|
58
62
|
"publishConfig": {
|
59
63
|
"access": "public"
|