odoro 1.0.3 → 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/dist/cli.js
CHANGED
|
@@ -131,7 +131,7 @@ function rootFrom(flags, positional) {
|
|
|
131
131
|
async function run(argv) {
|
|
132
132
|
const { command, positional, flags } = parseArgs(argv);
|
|
133
133
|
if (flags["version"] === true) {
|
|
134
|
-
const manifest = await import('./package-
|
|
134
|
+
const manifest = await import('./package-5KU4PW5P.js');
|
|
135
135
|
console.log(manifest.default.version);
|
|
136
136
|
return 0;
|
|
137
137
|
}
|
|
@@ -142,7 +142,7 @@ async function run(argv) {
|
|
|
142
142
|
switch (command) {
|
|
143
143
|
case "create":
|
|
144
144
|
case "new": {
|
|
145
|
-
const { createCommand } = await import('./create-
|
|
145
|
+
const { createCommand } = await import('./create-LVNBZOGV.js');
|
|
146
146
|
const options = {};
|
|
147
147
|
if (positional[0] !== void 0) options.name = positional[0];
|
|
148
148
|
if (typeof flags["template"] === "string") options.template = flags["template"];
|
|
@@ -142,6 +142,16 @@ function availableTemplates(root = templatesRoot()) {
|
|
|
142
142
|
return readdirSync(root).filter((entry) => statSync(resolve(root, entry)).isDirectory()).sort();
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
// src/scaffold/versions-famille.generated.ts
|
|
146
|
+
var VERSIONS_FAMILLE = {
|
|
147
|
+
"@odoro-cli/engine": "1.0.2",
|
|
148
|
+
"@odoro-cli/icons": "1.0.2",
|
|
149
|
+
"@odoro-cli/libs": "1.0.2",
|
|
150
|
+
"@odoro-cli/server": "1.0.2",
|
|
151
|
+
"create-odoro": "1.0.4",
|
|
152
|
+
"odoro": "1.0.4"
|
|
153
|
+
};
|
|
154
|
+
|
|
145
155
|
// src/scaffold/scaffold.ts
|
|
146
156
|
var DOSSIER_VARIANTES = "_variantes";
|
|
147
157
|
var PAQUETS_OPTIONNELS = ["@odoro-cli/libs", "@odoro-cli/icons", "@odoro-cli/engine"];
|
|
@@ -173,6 +183,12 @@ async function copyDirectory(from, to, written, prefix = "") {
|
|
|
173
183
|
function isOdoroPackage(name) {
|
|
174
184
|
return name === "odoro" || name.startsWith("@odoro-cli/");
|
|
175
185
|
}
|
|
186
|
+
function versionDemandee(nom, versionCli2) {
|
|
187
|
+
if (versionCli2 === "latest") return "latest";
|
|
188
|
+
if (nom === "odoro") return `^${versionCli2}`;
|
|
189
|
+
const relevee = VERSIONS_FAMILLE[nom];
|
|
190
|
+
return relevee === void 0 ? "latest" : `^${relevee}`;
|
|
191
|
+
}
|
|
176
192
|
function alignOdoroVersions(manifest, version) {
|
|
177
193
|
const aligned = { ...manifest };
|
|
178
194
|
for (const field of ["dependencies", "devDependencies", "peerDependencies"]) {
|
|
@@ -180,7 +196,7 @@ function alignOdoroVersions(manifest, version) {
|
|
|
180
196
|
if (typeof deps !== "object" || deps === null) continue;
|
|
181
197
|
const next = {};
|
|
182
198
|
for (const [name, range] of Object.entries(deps)) {
|
|
183
|
-
next[name] = isOdoroPackage(name) ?
|
|
199
|
+
next[name] = isOdoroPackage(name) ? versionDemandee(name, version) : range;
|
|
184
200
|
}
|
|
185
201
|
aligned[field] = next;
|
|
186
202
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// package.json
|
|
3
3
|
var package_default = {
|
|
4
4
|
name: "odoro",
|
|
5
|
-
version: "1.0.
|
|
5
|
+
version: "1.0.4",
|
|
6
6
|
type: "module",
|
|
7
7
|
license: "UNLICENSED",
|
|
8
8
|
author: "BouBouw",
|
|
@@ -37,11 +37,12 @@ var package_default = {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
scripts: {
|
|
40
|
-
build: "tsup",
|
|
40
|
+
build: "node scripts/versions-famille.mjs && tsup",
|
|
41
41
|
dev: "tsup --watch",
|
|
42
42
|
test: "vitest run",
|
|
43
|
-
typecheck: "tsc --noEmit",
|
|
44
|
-
prepublishOnly: "pnpm run build"
|
|
43
|
+
typecheck: "node scripts/versions-famille.mjs && tsc --noEmit",
|
|
44
|
+
prepublishOnly: "pnpm run build",
|
|
45
|
+
"versions:famille": "node scripts/versions-famille.mjs"
|
|
45
46
|
},
|
|
46
47
|
dependencies: {
|
|
47
48
|
"@babel/core": "^7.29.7",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "odoro",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "BouBouw",
|
|
@@ -59,9 +59,10 @@
|
|
|
59
59
|
"url": "https://github.com/ODORO-CLI/OdoroKit/issues"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
|
-
"build": "tsup",
|
|
62
|
+
"build": "node scripts/versions-famille.mjs && tsup",
|
|
63
63
|
"dev": "tsup --watch",
|
|
64
64
|
"test": "vitest run",
|
|
65
|
-
"typecheck": "tsc --noEmit"
|
|
65
|
+
"typecheck": "node scripts/versions-famille.mjs && tsc --noEmit",
|
|
66
|
+
"versions:famille": "node scripts/versions-famille.mjs"
|
|
66
67
|
}
|
|
67
68
|
}
|