@icebreakers/monorepo 0.7.10 → 1.0.0
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/assets/package.json +14 -14
- package/dist/{chunk-V7PV7XYW.js → chunk-VOROHSAI.js} +48 -46
- package/dist/cli.cjs +3 -3
- package/dist/cli.js +4 -4
- package/dist/index.cjs +3 -3
- package/dist/index.js +1 -1
- package/package.json +9 -10
package/assets/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"private": true,
|
|
6
|
-
"packageManager": "pnpm@10.
|
|
6
|
+
"packageManager": "pnpm@10.11.0",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -33,38 +33,38 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@changesets/changelog-github": "^0.5.1",
|
|
36
|
-
"@changesets/cli": "^2.
|
|
36
|
+
"@changesets/cli": "^2.29.4",
|
|
37
37
|
"@commitlint/cli": "^19.8.0",
|
|
38
38
|
"@commitlint/config-conventional": "^19.8.0",
|
|
39
39
|
"@commitlint/prompt-cli": "^19.8.0",
|
|
40
40
|
"@commitlint/types": "^19.8.0",
|
|
41
|
-
"@icebreakers/eslint-config": "^1.1.
|
|
41
|
+
"@icebreakers/eslint-config": "^1.1.5",
|
|
42
42
|
"@icebreakers/monorepo": "workspace:*",
|
|
43
|
-
"@icebreakers/stylelint-config": "^1.0.
|
|
43
|
+
"@icebreakers/stylelint-config": "^1.0.1",
|
|
44
44
|
"@types/fs-extra": "^11.0.4",
|
|
45
|
-
"@types/node": "^22.
|
|
46
|
-
"@vitest/coverage-v8": "~3.1.
|
|
45
|
+
"@types/node": "^22.15.18",
|
|
46
|
+
"@vitest/coverage-v8": "~3.1.4",
|
|
47
47
|
"ci-info": "^4.2.0",
|
|
48
48
|
"cross-env": "^7.0.3",
|
|
49
49
|
"defu": "^6.1.4",
|
|
50
|
-
"es-toolkit": "^1.
|
|
51
|
-
"eslint": "^9.
|
|
50
|
+
"es-toolkit": "^1.38.0",
|
|
51
|
+
"eslint": "^9.27.0",
|
|
52
52
|
"execa": "^9.5.2",
|
|
53
53
|
"fs-extra": "^11.3.0",
|
|
54
54
|
"husky": "^9.1.6",
|
|
55
|
-
"lint-staged": "^
|
|
55
|
+
"lint-staged": "^16.0.0",
|
|
56
56
|
"only-allow": "^1.2.1",
|
|
57
57
|
"pathe": "^2.0.3",
|
|
58
58
|
"pkg-types": "^2.1.0",
|
|
59
59
|
"rimraf": "^6.0.1",
|
|
60
60
|
"tslib": "^2.8.0",
|
|
61
|
-
"tsup": "^8.
|
|
62
|
-
"tsx": "^4.19.
|
|
63
|
-
"turbo": "^2.
|
|
61
|
+
"tsup": "^8.5.0",
|
|
62
|
+
"tsx": "^4.19.4",
|
|
63
|
+
"turbo": "^2.5.2",
|
|
64
64
|
"typescript": "^5.8.2",
|
|
65
65
|
"unbuild": "^3.5.0",
|
|
66
|
-
"vitest": "~3.1.
|
|
67
|
-
"yaml": "^2.
|
|
66
|
+
"vitest": "~3.1.4",
|
|
67
|
+
"yaml": "^2.8.0"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public",
|
|
@@ -27,9 +27,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.4_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js
|
|
31
|
+
import path from "path";
|
|
32
|
+
import { fileURLToPath } from "url";
|
|
31
33
|
var init_esm_shims = __esm({
|
|
32
|
-
"../../node_modules/.pnpm/tsup@8.
|
|
34
|
+
"../../node_modules/.pnpm/tsup@8.5.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.4_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
35
|
"use strict";
|
|
34
36
|
}
|
|
35
37
|
});
|
|
@@ -181,9 +183,9 @@ var require_set_value = __commonJS({
|
|
|
181
183
|
}
|
|
182
184
|
return obj;
|
|
183
185
|
};
|
|
184
|
-
var setValue = (target,
|
|
185
|
-
if (!
|
|
186
|
-
const keys = split2(
|
|
186
|
+
var setValue = (target, path10, value, options) => {
|
|
187
|
+
if (!path10 || !isObject2(target)) return target;
|
|
188
|
+
const keys = split2(path10, options);
|
|
187
189
|
let obj = target;
|
|
188
190
|
for (let i = 0; i < keys.length; i++) {
|
|
189
191
|
const key = keys[i];
|
|
@@ -217,7 +219,7 @@ var require_set_value = __commonJS({
|
|
|
217
219
|
init_esm_shims();
|
|
218
220
|
import { parse, stringify } from "comment-json";
|
|
219
221
|
import fs from "fs-extra";
|
|
220
|
-
import
|
|
222
|
+
import path2 from "pathe";
|
|
221
223
|
|
|
222
224
|
// src/monorepo/mirror/sources.ts
|
|
223
225
|
init_esm_shims();
|
|
@@ -265,7 +267,7 @@ function setMirror(obj) {
|
|
|
265
267
|
|
|
266
268
|
// src/monorepo/binaryMirror.ts
|
|
267
269
|
async function setVscodeBinaryMirror(cwd) {
|
|
268
|
-
const targetJsonPath =
|
|
270
|
+
const targetJsonPath = path2.resolve(cwd, ".vscode/settings.json");
|
|
269
271
|
await fs.ensureFile(targetJsonPath);
|
|
270
272
|
const json = parse(await fs.readFile(targetJsonPath, "utf8"), void 0, false);
|
|
271
273
|
json && typeof json === "object" && setMirror(json);
|
|
@@ -277,7 +279,7 @@ async function setVscodeBinaryMirror(cwd) {
|
|
|
277
279
|
init_esm_shims();
|
|
278
280
|
var import_set_value2 = __toESM(require_set_value(), 1);
|
|
279
281
|
import fs2 from "fs-extra";
|
|
280
|
-
import
|
|
282
|
+
import path3 from "pathe";
|
|
281
283
|
var dirs = [
|
|
282
284
|
"packages/monorepo",
|
|
283
285
|
"packages/foo",
|
|
@@ -287,7 +289,7 @@ var dirs = [
|
|
|
287
289
|
];
|
|
288
290
|
async function cleanProjects(cwd) {
|
|
289
291
|
for (const dir of dirs.map((x) => {
|
|
290
|
-
return
|
|
292
|
+
return path3.resolve(cwd, x);
|
|
291
293
|
})) {
|
|
292
294
|
await fs2.remove(dir);
|
|
293
295
|
}
|
|
@@ -313,11 +315,11 @@ var join = /* @__PURE__ */ __name((segs, joinChar, options) => {
|
|
|
313
315
|
}
|
|
314
316
|
return segs[0] + joinChar + segs[1];
|
|
315
317
|
}, "join");
|
|
316
|
-
var split = /* @__PURE__ */ __name((
|
|
318
|
+
var split = /* @__PURE__ */ __name((path10, splitChar, options) => {
|
|
317
319
|
if (typeof options.split === "function") {
|
|
318
|
-
return options.split(
|
|
320
|
+
return options.split(path10);
|
|
319
321
|
}
|
|
320
|
-
return
|
|
322
|
+
return path10.split(splitChar);
|
|
321
323
|
}, "split");
|
|
322
324
|
var isValid = /* @__PURE__ */ __name((key, target = {}, options) => {
|
|
323
325
|
if (typeof options?.isValid === "function") {
|
|
@@ -328,27 +330,27 @@ var isValid = /* @__PURE__ */ __name((key, target = {}, options) => {
|
|
|
328
330
|
var isValidObject = /* @__PURE__ */ __name((v) => {
|
|
329
331
|
return isObject(v) || typeof v === "function";
|
|
330
332
|
}, "isValidObject");
|
|
331
|
-
var getValue = /* @__PURE__ */ __name((target,
|
|
333
|
+
var getValue = /* @__PURE__ */ __name((target, path10, options = {}) => {
|
|
332
334
|
if (!isObject(options)) {
|
|
333
335
|
options = { default: options };
|
|
334
336
|
}
|
|
335
337
|
if (!isValidObject(target)) {
|
|
336
338
|
return typeof options.default !== "undefined" ? options.default : target;
|
|
337
339
|
}
|
|
338
|
-
if (typeof
|
|
339
|
-
|
|
340
|
+
if (typeof path10 === "number") {
|
|
341
|
+
path10 = String(path10);
|
|
340
342
|
}
|
|
341
|
-
const pathIsArray = Array.isArray(
|
|
342
|
-
const pathIsString = typeof
|
|
343
|
+
const pathIsArray = Array.isArray(path10);
|
|
344
|
+
const pathIsString = typeof path10 === "string";
|
|
343
345
|
const splitChar = options.separator || ".";
|
|
344
346
|
const joinChar = options.joinChar || (typeof splitChar === "string" ? splitChar : ".");
|
|
345
347
|
if (!pathIsString && !pathIsArray) {
|
|
346
348
|
return target;
|
|
347
349
|
}
|
|
348
|
-
if (target[
|
|
349
|
-
return isValid(
|
|
350
|
+
if (target[path10] !== void 0) {
|
|
351
|
+
return isValid(path10, target, options) ? target[path10] : options.default;
|
|
350
352
|
}
|
|
351
|
-
const segs = pathIsArray ?
|
|
353
|
+
const segs = pathIsArray ? path10 : split(path10, splitChar, options);
|
|
352
354
|
const len = segs.length;
|
|
353
355
|
let idx = 0;
|
|
354
356
|
do {
|
|
@@ -512,9 +514,9 @@ var defuArrayFn = createDefu((object, key, currentValue) => {
|
|
|
512
514
|
});
|
|
513
515
|
|
|
514
516
|
// src/monorepo/workspace.ts
|
|
515
|
-
import
|
|
517
|
+
import path4 from "pathe";
|
|
516
518
|
async function getWorkspacePackages(cwd, options) {
|
|
517
|
-
const posixCwd =
|
|
519
|
+
const posixCwd = path4.normalize(cwd);
|
|
518
520
|
const { ignoreRootPackage, ignorePrivatePackage, patterns } = defu(options, {
|
|
519
521
|
ignoreRootPackage: true,
|
|
520
522
|
ignorePrivatePackage: true
|
|
@@ -528,7 +530,7 @@ async function getWorkspacePackages(cwd, options) {
|
|
|
528
530
|
}
|
|
529
531
|
return true;
|
|
530
532
|
}).map((project) => {
|
|
531
|
-
const pkgJsonPath =
|
|
533
|
+
const pkgJsonPath = path4.resolve(project.rootDir, "package.json");
|
|
532
534
|
return {
|
|
533
535
|
...project,
|
|
534
536
|
pkgJsonPath
|
|
@@ -536,7 +538,7 @@ async function getWorkspacePackages(cwd, options) {
|
|
|
536
538
|
});
|
|
537
539
|
if (ignoreRootPackage) {
|
|
538
540
|
pkgs = pkgs.filter((x) => {
|
|
539
|
-
return
|
|
541
|
+
return path4.normalize(
|
|
540
542
|
x.rootDir
|
|
541
543
|
) !== posixCwd;
|
|
542
544
|
});
|
|
@@ -549,11 +551,11 @@ init_esm_shims();
|
|
|
549
551
|
|
|
550
552
|
// src/monorepo/context.ts
|
|
551
553
|
init_esm_shims();
|
|
552
|
-
import
|
|
554
|
+
import path5 from "pathe";
|
|
553
555
|
import "@pnpm/types";
|
|
554
556
|
async function createContext(cwd) {
|
|
555
557
|
const git = new GitClient();
|
|
556
|
-
const workspaceFilepath =
|
|
558
|
+
const workspaceFilepath = path5.resolve(cwd, "pnpm-workspace.yaml");
|
|
557
559
|
const projects = await getWorkspacePackages(cwd);
|
|
558
560
|
const gitUrl = await git.getGitUrl();
|
|
559
561
|
const gitUser = await git.getUser();
|
|
@@ -571,13 +573,13 @@ async function createContext(cwd) {
|
|
|
571
573
|
init_esm_shims();
|
|
572
574
|
var import_set_value3 = __toESM(require_set_value(), 1);
|
|
573
575
|
import fs3 from "fs-extra";
|
|
574
|
-
import
|
|
576
|
+
import path6 from "pathe";
|
|
575
577
|
async function setPkgJson_default(ctx) {
|
|
576
578
|
const { gitUrl, gitUser, projects, cwd, workspaceFilepath } = ctx;
|
|
577
579
|
if (gitUrl && await fs3.exists(workspaceFilepath)) {
|
|
578
580
|
for (const project of projects) {
|
|
579
581
|
const pkgJson = project.manifest;
|
|
580
|
-
const directory =
|
|
582
|
+
const directory = path6.relative(cwd, project.rootDir);
|
|
581
583
|
(0, import_set_value3.default)(pkgJson, "bugs.url", `https://github.com/${gitUrl.full_name}/issues`);
|
|
582
584
|
const repository = {
|
|
583
585
|
type: "git",
|
|
@@ -600,7 +602,7 @@ async function setPkgJson_default(ctx) {
|
|
|
600
602
|
// src/monorepo/setReadme.ts
|
|
601
603
|
init_esm_shims();
|
|
602
604
|
import fs4 from "fs-extra";
|
|
603
|
-
import
|
|
605
|
+
import path7 from "pathe";
|
|
604
606
|
async function getRows(ctx) {
|
|
605
607
|
const { projects, git, cwd } = ctx;
|
|
606
608
|
const gitUrl = await git.getGitUrl();
|
|
@@ -612,7 +614,7 @@ async function getRows(ctx) {
|
|
|
612
614
|
}
|
|
613
615
|
rows.push("## Projects\n");
|
|
614
616
|
for (const project of projects) {
|
|
615
|
-
const p =
|
|
617
|
+
const p = path7.relative(cwd, project.rootDirRealPath);
|
|
616
618
|
if (p) {
|
|
617
619
|
const description = project.manifest.description ? `- ${project.manifest.description}` : "";
|
|
618
620
|
rows.push(`- [${project.manifest.name}](${p}) ${description}`);
|
|
@@ -640,7 +642,7 @@ async function getRows(ctx) {
|
|
|
640
642
|
}
|
|
641
643
|
async function setReadme_default(ctx) {
|
|
642
644
|
const rows = await getRows(ctx);
|
|
643
|
-
await fs4.writeFile(
|
|
645
|
+
await fs4.writeFile(path7.resolve(ctx.cwd, "README.md"), `${rows.join("\n")}
|
|
644
646
|
`);
|
|
645
647
|
}
|
|
646
648
|
|
|
@@ -653,10 +655,10 @@ async function init(cwd) {
|
|
|
653
655
|
|
|
654
656
|
// src/monorepo/sync.ts
|
|
655
657
|
init_esm_shims();
|
|
656
|
-
import os from "
|
|
658
|
+
import os from "os";
|
|
657
659
|
import { execa } from "execa";
|
|
658
660
|
import PQueue from "p-queue";
|
|
659
|
-
import
|
|
661
|
+
import path8 from "pathe";
|
|
660
662
|
import pc from "picocolors";
|
|
661
663
|
|
|
662
664
|
// src/logger.ts
|
|
@@ -668,7 +670,7 @@ var logger = createConsola();
|
|
|
668
670
|
async function syncNpmMirror(cwd, options) {
|
|
669
671
|
const packages = await getWorkspacePackages(cwd, options);
|
|
670
672
|
logger.info(`[\u5F53\u524D\u5DE5\u4F5C\u533ARepo]:
|
|
671
|
-
${packages.map((x) => `- ${pc.green(x.manifest.name)} : ${
|
|
673
|
+
${packages.map((x) => `- ${pc.green(x.manifest.name)} : ${path8.relative(cwd, x.rootDir)}`).join("\n")}
|
|
672
674
|
`);
|
|
673
675
|
const set5 = new Set(packages.map((x) => x.manifest.name));
|
|
674
676
|
logger.info(`[\u5373\u5C06\u540C\u6B65\u7684\u5305]:
|
|
@@ -692,7 +694,7 @@ init_esm_shims();
|
|
|
692
694
|
|
|
693
695
|
// src/utils/md5.ts
|
|
694
696
|
init_esm_shims();
|
|
695
|
-
import crypto from "
|
|
697
|
+
import crypto from "crypto";
|
|
696
698
|
function getFileHash(data) {
|
|
697
699
|
const hashSum = crypto.createHash("md5");
|
|
698
700
|
hashSum.update(data);
|
|
@@ -725,15 +727,15 @@ function isMatch(str, arr) {
|
|
|
725
727
|
|
|
726
728
|
// src/upgrade.ts
|
|
727
729
|
init_esm_shims();
|
|
728
|
-
import process from "
|
|
729
|
-
import { fileURLToPath } from "
|
|
730
|
+
import process from "process";
|
|
731
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
730
732
|
import checkbox from "@inquirer/checkbox";
|
|
731
733
|
import confirm from "@inquirer/confirm";
|
|
732
734
|
import fs5 from "fs-extra";
|
|
733
735
|
var import_set_value4 = __toESM(require_set_value(), 1);
|
|
734
736
|
import klaw from "klaw";
|
|
735
737
|
import PQueue2 from "p-queue";
|
|
736
|
-
import
|
|
738
|
+
import path9 from "pathe";
|
|
737
739
|
import pc2 from "picocolors";
|
|
738
740
|
|
|
739
741
|
// src/constants.ts
|
|
@@ -741,7 +743,7 @@ init_esm_shims();
|
|
|
741
743
|
|
|
742
744
|
// package.json
|
|
743
745
|
var name = "@icebreakers/monorepo";
|
|
744
|
-
var version = "0.
|
|
746
|
+
var version = "1.0.0";
|
|
745
747
|
|
|
746
748
|
// src/scripts.ts
|
|
747
749
|
init_esm_shims();
|
|
@@ -791,9 +793,9 @@ function getAssetTargets(raw) {
|
|
|
791
793
|
|
|
792
794
|
// src/upgrade.ts
|
|
793
795
|
var queue = new PQueue2({ concurrency: 1 });
|
|
794
|
-
var __filename2 =
|
|
795
|
-
var __dirname2 =
|
|
796
|
-
var assetsDir =
|
|
796
|
+
var __filename2 = fileURLToPath2(import.meta.url);
|
|
797
|
+
var __dirname2 = path9.dirname(__filename2);
|
|
798
|
+
var assetsDir = path9.join(__dirname2, "../assets");
|
|
797
799
|
function isWorkspace(version2) {
|
|
798
800
|
if (typeof version2 === "string") {
|
|
799
801
|
return version2.startsWith("workspace:");
|
|
@@ -831,7 +833,7 @@ async function upgradeMonorepo(opts) {
|
|
|
831
833
|
cwd: process.cwd(),
|
|
832
834
|
outDir: ""
|
|
833
835
|
});
|
|
834
|
-
const absOutDir =
|
|
836
|
+
const absOutDir = path9.isAbsolute(outDir) ? outDir : path9.join(cwd, outDir);
|
|
835
837
|
const gitClient = new GitClient({
|
|
836
838
|
baseDir: cwd
|
|
837
839
|
});
|
|
@@ -853,14 +855,14 @@ async function upgradeMonorepo(opts) {
|
|
|
853
855
|
});
|
|
854
856
|
for await (const file of klaw(assetsDir, {
|
|
855
857
|
filter(p) {
|
|
856
|
-
const str =
|
|
858
|
+
const str = path9.relative(assetsDir, p);
|
|
857
859
|
return isMatch(str, regexpArr);
|
|
858
860
|
}
|
|
859
861
|
})) {
|
|
860
862
|
await queue.add(async () => {
|
|
861
863
|
if (file.stats.isFile()) {
|
|
862
|
-
const relPath =
|
|
863
|
-
const targetPath =
|
|
864
|
+
const relPath = path9.relative(assetsDir, file.path);
|
|
865
|
+
const targetPath = path9.resolve(absOutDir, relPath);
|
|
864
866
|
const targetIsExisted = await fs5.exists(targetPath);
|
|
865
867
|
async function overwriteOrCopy(target) {
|
|
866
868
|
let isOverwrite = true;
|
package/dist/cli.cjs
CHANGED
|
@@ -28,10 +28,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
mod
|
|
29
29
|
));
|
|
30
30
|
|
|
31
|
-
// ../../node_modules/.pnpm/tsup@8.
|
|
31
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.4_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js
|
|
32
32
|
var getImportMetaUrl, importMetaUrl;
|
|
33
33
|
var init_cjs_shims = __esm({
|
|
34
|
-
"../../node_modules/.pnpm/tsup@8.
|
|
34
|
+
"../../node_modules/.pnpm/tsup@8.5.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.4_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js"() {
|
|
35
35
|
"use strict";
|
|
36
36
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
37
37
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -230,7 +230,7 @@ init_cjs_shims();
|
|
|
230
230
|
|
|
231
231
|
// package.json
|
|
232
232
|
var name = "@icebreakers/monorepo";
|
|
233
|
-
var version = "0.
|
|
233
|
+
var version = "1.0.0";
|
|
234
234
|
|
|
235
235
|
// src/create.ts
|
|
236
236
|
init_cjs_shims();
|
package/dist/cli.js
CHANGED
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
syncNpmMirror,
|
|
12
12
|
upgradeMonorepo,
|
|
13
13
|
version
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VOROHSAI.js";
|
|
15
15
|
|
|
16
16
|
// src/cli.ts
|
|
17
17
|
init_esm_shims();
|
|
18
18
|
|
|
19
19
|
// src/program.ts
|
|
20
20
|
init_esm_shims();
|
|
21
|
-
import process2 from "
|
|
21
|
+
import process2 from "process";
|
|
22
22
|
import { program } from "commander";
|
|
23
23
|
|
|
24
24
|
// src/create.ts
|
|
25
25
|
init_esm_shims();
|
|
26
|
-
import process from "
|
|
27
|
-
import { fileURLToPath } from "
|
|
26
|
+
import process from "process";
|
|
27
|
+
import { fileURLToPath } from "url";
|
|
28
28
|
var import_set_value = __toESM(require_set_value(), 1);
|
|
29
29
|
import fs from "fs-extra";
|
|
30
30
|
import path from "pathe";
|
package/dist/index.cjs
CHANGED
|
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.4_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var getImportMetaUrl, importMetaUrl;
|
|
38
38
|
var init_cjs_shims = __esm({
|
|
39
|
-
"../../node_modules/.pnpm/tsup@8.
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.5.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.4_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
40
|
"use strict";
|
|
41
41
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
42
42
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -738,7 +738,7 @@ init_cjs_shims();
|
|
|
738
738
|
|
|
739
739
|
// package.json
|
|
740
740
|
var name = "@icebreakers/monorepo";
|
|
741
|
-
var version = "0.
|
|
741
|
+
var version = "1.0.0";
|
|
742
742
|
|
|
743
743
|
// src/scripts.ts
|
|
744
744
|
init_cjs_shims();
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"description": "icebreaker's monorepo config generator",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,17 +34,18 @@
|
|
|
34
34
|
"templates"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@inquirer/checkbox": "^4.1.
|
|
38
|
-
"@inquirer/confirm": "^5.1.
|
|
39
|
-
"@pnpm/logger": "^
|
|
40
|
-
"@pnpm/types": "^1000.
|
|
41
|
-
"@pnpm/
|
|
42
|
-
"
|
|
37
|
+
"@inquirer/checkbox": "^4.1.8",
|
|
38
|
+
"@inquirer/confirm": "^5.1.12",
|
|
39
|
+
"@pnpm/logger": "^1001.0.0",
|
|
40
|
+
"@pnpm/types": "^1000.5.0",
|
|
41
|
+
"@pnpm/worker": "^1000.1.5",
|
|
42
|
+
"@pnpm/workspace.find-packages": "^1000.0.22",
|
|
43
|
+
"commander": "^14.0.0",
|
|
43
44
|
"comment-json": "^4.2.5",
|
|
44
45
|
"consola": "^3.4.2",
|
|
45
46
|
"execa": "^9.5.2",
|
|
46
47
|
"fs-extra": "^11.3.0",
|
|
47
|
-
"git-url-parse": "^16.0
|
|
48
|
+
"git-url-parse": "^16.1.0",
|
|
48
49
|
"klaw": "^4.1.0",
|
|
49
50
|
"p-queue": "^8.1.0",
|
|
50
51
|
"pathe": "^2.0.3",
|
|
@@ -52,8 +53,6 @@
|
|
|
52
53
|
"simple-git": "^3.27.0"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
|
-
"@types/get-value": "^3.0.5",
|
|
56
|
-
"@types/git-url-parse": "^16.0.0",
|
|
57
56
|
"@types/klaw": "^3.0.6",
|
|
58
57
|
"@types/micromatch": "^4.0.9",
|
|
59
58
|
"@types/set-value": "^4.0.3",
|