@icebreakers/monorepo 3.1.10 → 3.1.11
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.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{upgrade-CKuIwHdG.cjs → upgrade-B4VYs4jD.cjs} +18 -3
- package/dist/{upgrade-CWFKt96d.mjs → upgrade-CaZT1d_7.mjs} +18 -3
- package/package.json +1 -1
- package/templates/apps/client/package.json +1 -1
- package/templates/apps/server/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_upgrade = require('./upgrade-
|
|
1
|
+
const require_upgrade = require('./upgrade-B4VYs4jD.cjs');
|
|
2
2
|
let node_process = require("node:process");
|
|
3
3
|
node_process = require_upgrade.__toESM(node_process);
|
|
4
4
|
let __inquirer_input = require("@inquirer/input");
|
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as createTimestampFolderName, E as cleanProjects, F as logger, M as generateAgenticTemplate, N as generateAgenticTemplates, P as loadAgenticTasks, T as version, c as getCreateChoices, i as init, j as defaultAgenticBaseDir, k as resolveCommandConfig, n as syncNpmMirror, o as createNewProject, r as setVscodeBinaryMirror, s as defaultTemplate, t as upgradeMonorepo, w as name } from "./upgrade-
|
|
1
|
+
import { A as createTimestampFolderName, E as cleanProjects, F as logger, M as generateAgenticTemplate, N as generateAgenticTemplates, P as loadAgenticTasks, T as version, c as getCreateChoices, i as init, j as defaultAgenticBaseDir, k as resolveCommandConfig, n as syncNpmMirror, o as createNewProject, r as setVscodeBinaryMirror, s as defaultTemplate, t as upgradeMonorepo, w as name } from "./upgrade-CaZT1d_7.mjs";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import input from "@inquirer/input";
|
|
4
4
|
import select from "@inquirer/select";
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as createTimestampFolderName, C as templatesDir, D as defineMonorepoConfig, E as cleanProjects, F as logger, I as getWorkspaceData, L as getWorkspacePackages, M as generateAgenticTemplate, N as generateAgenticTemplates, O as loadMonorepoConfig, P as loadAgenticTasks, R as GitClient, S as rootDir, T as version, _ as toWorkspaceGitignorePath, a as createContext, b as assetsDir, c as getCreateChoices, d as escapeStringRegexp, f as isMatch, g as toPublishGitignorePath, h as isGitignoreFile, i as init, j as defaultAgenticBaseDir, k as resolveCommandConfig, l as getTemplateMap, m as isFileChanged, n as syncNpmMirror, o as createNewProject, p as getFileHash, r as setVscodeBinaryMirror, t as upgradeMonorepo, u as templateMap, v as updateIssueTemplateConfig, w as name, x as packageDir, y as isIgnorableFsError } from "./upgrade-
|
|
1
|
+
import { A as createTimestampFolderName, C as templatesDir, D as defineMonorepoConfig, E as cleanProjects, F as logger, I as getWorkspaceData, L as getWorkspacePackages, M as generateAgenticTemplate, N as generateAgenticTemplates, O as loadMonorepoConfig, P as loadAgenticTasks, R as GitClient, S as rootDir, T as version, _ as toWorkspaceGitignorePath, a as createContext, b as assetsDir, c as getCreateChoices, d as escapeStringRegexp, f as isMatch, g as toPublishGitignorePath, h as isGitignoreFile, i as init, j as defaultAgenticBaseDir, k as resolveCommandConfig, l as getTemplateMap, m as isFileChanged, n as syncNpmMirror, o as createNewProject, p as getFileHash, r as setVscodeBinaryMirror, t as upgradeMonorepo, u as templateMap, v as updateIssueTemplateConfig, w as name, x as packageDir, y as isIgnorableFsError } from "./upgrade-CaZT1d_7.mjs";
|
|
2
2
|
|
|
3
3
|
export { GitClient, assetsDir, cleanProjects, createContext, createNewProject, createTimestampFolderName, defaultAgenticBaseDir, defineMonorepoConfig, escapeStringRegexp, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getFileHash, getTemplateMap, getWorkspaceData, getWorkspacePackages, init, isFileChanged, isGitignoreFile, isIgnorableFsError, isMatch, loadAgenticTasks, loadMonorepoConfig, logger, name, packageDir, resolveCommandConfig, rootDir, setVscodeBinaryMirror, syncNpmMirror, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, version };
|
|
@@ -619,7 +619,7 @@ async function cleanProjects(cwd, overrides) {
|
|
|
619
619
|
//#endregion
|
|
620
620
|
//#region package.json
|
|
621
621
|
var name = "@icebreakers/monorepo";
|
|
622
|
-
var version = "3.1.
|
|
622
|
+
var version = "3.1.11";
|
|
623
623
|
|
|
624
624
|
//#endregion
|
|
625
625
|
//#region src/constants.ts
|
|
@@ -1330,13 +1330,28 @@ function getAssetTargets(core) {
|
|
|
1330
1330
|
function isPlainObject(value) {
|
|
1331
1331
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1332
1332
|
}
|
|
1333
|
+
function normalizeQuotedString(value) {
|
|
1334
|
+
const trimmed = value.trim();
|
|
1335
|
+
const first = trimmed[0];
|
|
1336
|
+
if ((first === "'" || first === "\"") && trimmed.endsWith(first)) return trimmed.slice(1, -1);
|
|
1337
|
+
return trimmed;
|
|
1338
|
+
}
|
|
1333
1339
|
function normalizeWorkspaceManifest(manifest) {
|
|
1334
1340
|
if (isPlainObject(manifest)) return { ...manifest };
|
|
1335
1341
|
return {};
|
|
1336
1342
|
}
|
|
1337
1343
|
function mergeUniqueArray(target, source) {
|
|
1344
|
+
const seen = new Set(target.map((item) => {
|
|
1345
|
+
return typeof item === "string" ? normalizeQuotedString(item) : item;
|
|
1346
|
+
}));
|
|
1338
1347
|
const result = [...target];
|
|
1339
|
-
for (const item of source)
|
|
1348
|
+
for (const item of source) {
|
|
1349
|
+
const key = typeof item === "string" ? normalizeQuotedString(item) : item;
|
|
1350
|
+
if (!seen.has(key)) {
|
|
1351
|
+
seen.add(key);
|
|
1352
|
+
result.push(item);
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1340
1355
|
return result;
|
|
1341
1356
|
}
|
|
1342
1357
|
/**
|
|
@@ -1441,7 +1456,7 @@ async function upgradeMonorepo(opts) {
|
|
|
1441
1456
|
const exists = await fs_extra.default.pathExists(targetPath);
|
|
1442
1457
|
const targetManifest = exists ? normalizeWorkspaceManifest(yaml.default.parse(await fs_extra.default.readFile(targetPath, "utf8"))) : normalizeWorkspaceManifest({});
|
|
1443
1458
|
const mergedManifest = exists ? mergeWorkspaceManifest(sourceManifest, targetManifest) : sourceManifest;
|
|
1444
|
-
const data = yaml.default.stringify(mergedManifest);
|
|
1459
|
+
const data = yaml.default.stringify(mergedManifest, { singleQuote: true });
|
|
1445
1460
|
const intent$1 = await evaluateWriteIntent(targetPath, {
|
|
1446
1461
|
skipOverwrite,
|
|
1447
1462
|
source: data
|
|
@@ -607,7 +607,7 @@ async function cleanProjects(cwd, overrides) {
|
|
|
607
607
|
//#endregion
|
|
608
608
|
//#region package.json
|
|
609
609
|
var name = "@icebreakers/monorepo";
|
|
610
|
-
var version = "3.1.
|
|
610
|
+
var version = "3.1.11";
|
|
611
611
|
|
|
612
612
|
//#endregion
|
|
613
613
|
//#region src/constants.ts
|
|
@@ -1318,13 +1318,28 @@ function getAssetTargets(core) {
|
|
|
1318
1318
|
function isPlainObject(value) {
|
|
1319
1319
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1320
1320
|
}
|
|
1321
|
+
function normalizeQuotedString(value) {
|
|
1322
|
+
const trimmed = value.trim();
|
|
1323
|
+
const first = trimmed[0];
|
|
1324
|
+
if ((first === "'" || first === "\"") && trimmed.endsWith(first)) return trimmed.slice(1, -1);
|
|
1325
|
+
return trimmed;
|
|
1326
|
+
}
|
|
1321
1327
|
function normalizeWorkspaceManifest(manifest) {
|
|
1322
1328
|
if (isPlainObject(manifest)) return { ...manifest };
|
|
1323
1329
|
return {};
|
|
1324
1330
|
}
|
|
1325
1331
|
function mergeUniqueArray(target, source) {
|
|
1332
|
+
const seen = new Set(target.map((item) => {
|
|
1333
|
+
return typeof item === "string" ? normalizeQuotedString(item) : item;
|
|
1334
|
+
}));
|
|
1326
1335
|
const result = [...target];
|
|
1327
|
-
for (const item of source)
|
|
1336
|
+
for (const item of source) {
|
|
1337
|
+
const key = typeof item === "string" ? normalizeQuotedString(item) : item;
|
|
1338
|
+
if (!seen.has(key)) {
|
|
1339
|
+
seen.add(key);
|
|
1340
|
+
result.push(item);
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1328
1343
|
return result;
|
|
1329
1344
|
}
|
|
1330
1345
|
/**
|
|
@@ -1429,7 +1444,7 @@ async function upgradeMonorepo(opts) {
|
|
|
1429
1444
|
const exists = await fs.pathExists(targetPath);
|
|
1430
1445
|
const targetManifest = exists ? normalizeWorkspaceManifest(YAML.parse(await fs.readFile(targetPath, "utf8"))) : normalizeWorkspaceManifest({});
|
|
1431
1446
|
const mergedManifest = exists ? mergeWorkspaceManifest(sourceManifest, targetManifest) : sourceManifest;
|
|
1432
|
-
const data = YAML.stringify(mergedManifest);
|
|
1447
|
+
const data = YAML.stringify(mergedManifest, { singleQuote: true });
|
|
1433
1448
|
const intent$1 = await evaluateWriteIntent(targetPath, {
|
|
1434
1449
|
skipOverwrite,
|
|
1435
1450
|
source: data
|
package/package.json
CHANGED