create-nodefony 10.0.0-beta.5 → 10.0.0-beta.7
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/create-nodefony.mjs +8 -1
- package/package.json +4 -4
package/bin/create-nodefony.mjs
CHANGED
|
@@ -62,15 +62,22 @@ try {
|
|
|
62
62
|
// `process.execPath` évite le sujet entièrement : aucun shell n'est ouvert,
|
|
63
63
|
// donc aucun argument n'est réinterprété par lui.
|
|
64
64
|
const args = process.argv.slice(2);
|
|
65
|
+
// `NF_CREATE_LAUNCHER` : le cœur rend ses lignes « à relancer » sous la forme
|
|
66
|
+
// que l'on vient de taper (`npm create nodefony@<version> -- <nom>`), et non
|
|
67
|
+
// `nodefony create app …`, qu'un découvreur sans binaire global ne peut pas
|
|
68
|
+
// lancer. Il n'a aucun moyen sûr de le deviner : c'est ce shim qui le SAIT.
|
|
65
69
|
const r = spawnSync(process.execPath, [lanceur, "create", "app", ...args], {
|
|
66
70
|
stdio: "inherit",
|
|
71
|
+
env: { ...process.env, NF_CREATE_LAUNCHER: "npm-create" },
|
|
67
72
|
});
|
|
68
73
|
|
|
69
74
|
// Un process tué par un signal n'a pas de code de sortie : sans cette branche,
|
|
70
75
|
// `r.status` vaut `null` et `process.exit(null)` rendrait 0 — un échec qui se
|
|
71
76
|
// présente comme un succès, à celui-là même qui découvre le framework.
|
|
72
77
|
if (r.error) {
|
|
73
|
-
console.error(
|
|
78
|
+
console.error(
|
|
79
|
+
`\n✗ impossible de lancer le générateur : ${r.error.message}\n`,
|
|
80
|
+
);
|
|
74
81
|
process.exit(1);
|
|
75
82
|
}
|
|
76
83
|
process.exit(r.status === null ? 1 : r.status);
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nodefony",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.7",
|
|
4
4
|
"description": "Créer une application Nodefony en une commande — npm create nodefony <nom> : squelette complet, base de données au choix, frontend optionnel",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Christophe CAMENSULI <ccamensuli@gmail.com>",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": "
|
|
9
|
+
"node": "^24.16.0 || >=26.0.0"
|
|
10
10
|
},
|
|
11
11
|
"bin": {
|
|
12
12
|
"create-nodefony": "bin/create-nodefony.mjs"
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"esm"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"nodefony": "10.0.0-beta.
|
|
27
|
+
"nodefony": "10.0.0-beta.7"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|
|
31
31
|
"url": "git+https://github.com/nodefony/nodefony-core.git",
|
|
32
32
|
"directory": "src/packages/create-nodefony"
|
|
33
33
|
},
|
|
34
|
-
"homepage": "https://nodefony.
|
|
34
|
+
"homepage": "https://nodefony.net/",
|
|
35
35
|
"bugs": {
|
|
36
36
|
"url": "https://github.com/nodefony/nodefony-core/issues"
|
|
37
37
|
},
|