nurev 0.0.2 → 0.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/bun.lock +0 -19
- package/index.js +13 -8
- package/package.json +4 -12
package/bun.lock
CHANGED
|
@@ -8,29 +8,12 @@
|
|
|
8
8
|
"fs-extra": "^11.3.4",
|
|
9
9
|
"prompts": "^2.4.2",
|
|
10
10
|
},
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"@types/bun": "latest",
|
|
13
|
-
"@types/fs-extra": "^11.0.4",
|
|
14
|
-
"@types/prompts": "^2.4.9",
|
|
15
|
-
},
|
|
16
11
|
"peerDependencies": {
|
|
17
12
|
"typescript": "^5",
|
|
18
13
|
},
|
|
19
14
|
},
|
|
20
15
|
},
|
|
21
16
|
"packages": {
|
|
22
|
-
"@types/bun": ["@types/bun@1.3.11", "", { "dependencies": { "bun-types": "1.3.11" } }, "sha512-5vPne5QvtpjGpsGYXiFyycfpDF2ECyPcTSsFBMa0fraoxiQyMJ3SmuQIGhzPg2WJuWxVBoxWJ2kClYTcw/4fAg=="],
|
|
23
|
-
|
|
24
|
-
"@types/fs-extra": ["@types/fs-extra@11.0.4", "", { "dependencies": { "@types/jsonfile": "*", "@types/node": "*" } }, "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ=="],
|
|
25
|
-
|
|
26
|
-
"@types/jsonfile": ["@types/jsonfile@6.1.4", "", { "dependencies": { "@types/node": "*" } }, "sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ=="],
|
|
27
|
-
|
|
28
|
-
"@types/node": ["@types/node@25.5.0", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw=="],
|
|
29
|
-
|
|
30
|
-
"@types/prompts": ["@types/prompts@2.4.9", "", { "dependencies": { "@types/node": "*", "kleur": "^3.0.3" } }, "sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA=="],
|
|
31
|
-
|
|
32
|
-
"bun-types": ["bun-types@1.3.11", "", { "dependencies": { "@types/node": "*" } }, "sha512-1KGPpoxQWl9f6wcZh57LvrPIInQMn2TQ7jsgxqpRzg+l0QPOFvJVH7HmvHo/AiPgwXy+/Thf6Ov3EdVn1vOabg=="],
|
|
33
|
-
|
|
34
17
|
"fs-extra": ["fs-extra@11.3.4", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" } }, "sha512-CTXd6rk/M3/ULNQj8FBqBWHYBVYybQ3VPBw0xGKFe3tuH7ytT6ACnvzpIQ3UZtB8yvUKC2cXn1a+x+5EVQLovA=="],
|
|
35
18
|
|
|
36
19
|
"graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="],
|
|
@@ -45,8 +28,6 @@
|
|
|
45
28
|
|
|
46
29
|
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
|
|
47
30
|
|
|
48
|
-
"undici-types": ["undici-types@7.18.2", "", {}, "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w=="],
|
|
49
|
-
|
|
50
31
|
"universalify": ["universalify@2.0.1", "", {}, "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw=="],
|
|
51
32
|
}
|
|
52
33
|
}
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { default as prompts } from "prompts";
|
|
4
4
|
import { default as fs } from "fs-extra";
|
|
5
|
-
import {
|
|
5
|
+
import { fileURLToPath } from "url";
|
|
6
6
|
import kleur from "kleur";
|
|
7
7
|
|
|
8
8
|
console.log(`${kleur.bgGreen().bold("[Nurev]")}`);
|
|
@@ -55,14 +55,19 @@ const questions = [
|
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
const templateBase =
|
|
59
|
-
|
|
60
|
-
const templatePackageManager = resolve(
|
|
61
|
-
__dirname,
|
|
62
|
-
"templates",
|
|
63
|
-
`${response.backend}-${response.manager}`,
|
|
58
|
+
const templateBase = fileURLToPath(
|
|
59
|
+
new URL("./templates/base", import.meta.url),
|
|
64
60
|
);
|
|
65
|
-
const
|
|
61
|
+
const templateBackend = fileURLToPath(
|
|
62
|
+
new URL(`./templates/${response.backend}`, import.meta.url),
|
|
63
|
+
);
|
|
64
|
+
const templatePackageManager = fileURLToPath(
|
|
65
|
+
new URL(
|
|
66
|
+
`./templates/${response.backend}-${response.manager}`,
|
|
67
|
+
import.meta.url,
|
|
68
|
+
),
|
|
69
|
+
);
|
|
70
|
+
const templateDest = process.cwd();
|
|
66
71
|
|
|
67
72
|
try {
|
|
68
73
|
await fs.copy(templateBase, templateDest);
|
package/package.json
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nurev",
|
|
3
|
+
"version": "0.0.4",
|
|
3
4
|
"module": "index.js",
|
|
4
|
-
"devDependencies": {
|
|
5
|
-
"@types/bun": "latest",
|
|
6
|
-
"@types/fs-extra": "^11.0.4",
|
|
7
|
-
"@types/prompts": "^2.4.9"
|
|
8
|
-
},
|
|
9
|
-
"peerDependencies": {
|
|
10
|
-
"typescript": "^5"
|
|
11
|
-
},
|
|
12
|
-
"bin": "./index.js",
|
|
13
|
-
"version": "0.0.2",
|
|
14
|
-
"type": "module",
|
|
15
5
|
"dependencies": {
|
|
16
6
|
"fs-extra": "^11.3.4",
|
|
17
7
|
"prompts": "^2.4.2"
|
|
18
|
-
}
|
|
8
|
+
},
|
|
9
|
+
"bin": "./index.js",
|
|
10
|
+
"type": "module"
|
|
19
11
|
}
|