@icebreakers/monorepo 0.6.16 → 0.6.18
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/Dockerfile +3 -3
- package/assets/package.json +13 -13
- package/dist/{chunk-BZFR2REP.js → chunk-UR63Z6DG.js} +15 -16
- package/dist/cli.cjs +15 -16
- package/dist/cli.js +1 -1
- package/dist/index.cjs +15 -16
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
- package/templates/bar/src/index.ts +1 -6
package/assets/Dockerfile
CHANGED
|
@@ -7,9 +7,9 @@ FROM base AS builder
|
|
|
7
7
|
COPY . /usr/src/app
|
|
8
8
|
WORKDIR /usr/src/app
|
|
9
9
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
|
10
|
-
RUN pnpm run -r build
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
RUN pnpm run -r build \
|
|
11
|
+
&& pnpm deploy --filter=@icebreakers/foo --prod /prod/foo \
|
|
12
|
+
&& pnpm deploy --filter=@icebreakers/bar --prod /prod/bar
|
|
13
13
|
|
|
14
14
|
FROM base AS foo
|
|
15
15
|
COPY --from=builder /prod/foo /prod/foo
|
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@9.
|
|
6
|
+
"packageManager": "pnpm@9.15.0",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@changesets/changelog-github": "^0.5.0",
|
|
36
|
-
"@changesets/cli": "^2.27.
|
|
36
|
+
"@changesets/cli": "^2.27.10",
|
|
37
37
|
"@commitlint/cli": "^19.6.0",
|
|
38
38
|
"@commitlint/config-conventional": "^19.6.0",
|
|
39
39
|
"@commitlint/prompt-cli": "^19.6.0",
|
|
40
40
|
"@commitlint/types": "^19.5.0",
|
|
41
|
-
"@icebreakers/eslint-config": "^0.7.
|
|
41
|
+
"@icebreakers/eslint-config": "^0.7.7",
|
|
42
42
|
"@icebreakers/monorepo": "workspace:*",
|
|
43
|
-
"@icebreakers/stylelint-config": "^0.1.
|
|
43
|
+
"@icebreakers/stylelint-config": "^0.1.3",
|
|
44
44
|
"@types/fs-extra": "^11.0.4",
|
|
45
45
|
"@types/get-value": "^3.0.5",
|
|
46
46
|
"@types/git-url-parse": "^9.0.3",
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
"@types/lodash": "^4.17.12",
|
|
50
50
|
"@types/lodash-es": "^4.17.12",
|
|
51
51
|
"@types/micromatch": "^4.0.9",
|
|
52
|
-
"@types/node": "^22.
|
|
52
|
+
"@types/node": "^22.10.2",
|
|
53
53
|
"@types/set-value": "^4.0.3",
|
|
54
|
-
"@vitest/coverage-v8": "~2.1.
|
|
54
|
+
"@vitest/coverage-v8": "~2.1.8",
|
|
55
55
|
"ci-info": "^4.1.0",
|
|
56
56
|
"cross-env": "^7.0.3",
|
|
57
57
|
"defu": "^6.1.4",
|
|
58
|
-
"eslint": "^9.
|
|
59
|
-
"execa": "^9.
|
|
58
|
+
"eslint": "^9.16.0",
|
|
59
|
+
"execa": "^9.5.2",
|
|
60
60
|
"fs-extra": "^11.2.0",
|
|
61
61
|
"get-value": "^3.0.1",
|
|
62
62
|
"husky": "^9.1.6",
|
|
63
|
-
"lint-staged": "^15.2.
|
|
63
|
+
"lint-staged": "^15.2.11",
|
|
64
64
|
"lodash": "^4.17.21",
|
|
65
65
|
"lodash-es": "^4.17.21",
|
|
66
66
|
"micromatch": "^4.0.8",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"tslib": "^2.8.0",
|
|
73
73
|
"tsup": "^8.3.5",
|
|
74
74
|
"tsx": "^4.19.2",
|
|
75
|
-
"turbo": "^2.3.
|
|
76
|
-
"typescript": "^5.
|
|
77
|
-
"unbuild": "^
|
|
78
|
-
"vitest": "~2.1.
|
|
75
|
+
"turbo": "^2.3.3",
|
|
76
|
+
"typescript": "^5.7.2",
|
|
77
|
+
"unbuild": "^3.0.0",
|
|
78
|
+
"vitest": "~2.1.8",
|
|
79
79
|
"yaml": "^2.6.1"
|
|
80
80
|
},
|
|
81
81
|
"publishConfig": {
|
|
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.1_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.6.1/node_modules/tsup/assets/esm_shims.js
|
|
31
31
|
var init_esm_shims = __esm({
|
|
32
|
-
"../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.
|
|
32
|
+
"../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.1_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.6.1/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
33
|
"use strict";
|
|
34
34
|
}
|
|
35
35
|
});
|
|
@@ -612,7 +612,10 @@ async function getRows(ctx) {
|
|
|
612
612
|
rows.push("## Projects\n");
|
|
613
613
|
for (const project of projects) {
|
|
614
614
|
const p = path6.relative(cwd, project.rootDirRealPath);
|
|
615
|
-
|
|
615
|
+
if (p) {
|
|
616
|
+
const description = project.manifest.description ? `- ${project.manifest.description}` : "";
|
|
617
|
+
rows.push(`- [${project.manifest.name}](${p}) ${description}`);
|
|
618
|
+
}
|
|
616
619
|
}
|
|
617
620
|
if (gitUrl) {
|
|
618
621
|
rows.push("\n## Contributing\n");
|
|
@@ -738,7 +741,7 @@ init_esm_shims();
|
|
|
738
741
|
|
|
739
742
|
// package.json
|
|
740
743
|
var name = "@icebreakers/monorepo";
|
|
741
|
-
var version = "0.6.
|
|
744
|
+
var version = "0.6.18";
|
|
742
745
|
|
|
743
746
|
// src/scripts.ts
|
|
744
747
|
init_esm_shims();
|
|
@@ -811,10 +814,8 @@ function setPkgJson(sourcePkgJson, targetPkgJson) {
|
|
|
811
814
|
Object.entries(devDeps).forEach((x) => {
|
|
812
815
|
if (x[0] === name) {
|
|
813
816
|
(0, import_set_value4.default)(targetPkgJson, `devDependencies.${x[0].replaceAll(".", "\\.")}`, `^${version}`, { preservePaths: false });
|
|
814
|
-
} else {
|
|
815
|
-
|
|
816
|
-
(0, import_set_value4.default)(targetPkgJson, `devDependencies.${x[0].replaceAll(".", "\\.")}`, x[1], { preservePaths: false });
|
|
817
|
-
}
|
|
817
|
+
} else if (!isWorkspace(targetDevDeps[x[0]])) {
|
|
818
|
+
(0, import_set_value4.default)(targetPkgJson, `devDependencies.${x[0].replaceAll(".", "\\.")}`, x[1], { preservePaths: false });
|
|
818
819
|
}
|
|
819
820
|
});
|
|
820
821
|
for (const [k, v] of scriptsEntries) {
|
|
@@ -892,14 +893,12 @@ async function upgradeMonorepo(opts) {
|
|
|
892
893
|
`, "utf8");
|
|
893
894
|
logger.success(targetPath);
|
|
894
895
|
}
|
|
895
|
-
} else {
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
logger.success(targetPath);
|
|
902
|
-
}
|
|
896
|
+
} else if (await overwriteOrCopy()) {
|
|
897
|
+
await fs5.copy(
|
|
898
|
+
file.path,
|
|
899
|
+
targetPath
|
|
900
|
+
);
|
|
901
|
+
logger.success(targetPath);
|
|
903
902
|
}
|
|
904
903
|
}
|
|
905
904
|
});
|
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.3.5_jiti@2.4.
|
|
31
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.1_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.6.1/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.3.5_jiti@2.4.
|
|
34
|
+
"../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.1_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.6.1/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();
|
|
@@ -320,7 +320,7 @@ init_cjs_shims();
|
|
|
320
320
|
|
|
321
321
|
// package.json
|
|
322
322
|
var name = "@icebreakers/monorepo";
|
|
323
|
-
var version = "0.6.
|
|
323
|
+
var version = "0.6.18";
|
|
324
324
|
|
|
325
325
|
// src/create.ts
|
|
326
326
|
init_cjs_shims();
|
|
@@ -678,7 +678,10 @@ async function getRows(ctx) {
|
|
|
678
678
|
rows.push("## Projects\n");
|
|
679
679
|
for (const project of projects) {
|
|
680
680
|
const p = import_pathe7.default.relative(cwd2, project.rootDirRealPath);
|
|
681
|
-
|
|
681
|
+
if (p) {
|
|
682
|
+
const description = project.manifest.description ? `- ${project.manifest.description}` : "";
|
|
683
|
+
rows.push(`- [${project.manifest.name}](${p}) ${description}`);
|
|
684
|
+
}
|
|
682
685
|
}
|
|
683
686
|
if (gitUrl) {
|
|
684
687
|
rows.push("\n## Contributing\n");
|
|
@@ -860,10 +863,8 @@ function setPkgJson(sourcePkgJson, targetPkgJson) {
|
|
|
860
863
|
Object.entries(devDeps).forEach((x) => {
|
|
861
864
|
if (x[0] === name) {
|
|
862
865
|
(0, import_set_value5.default)(targetPkgJson, `devDependencies.${x[0].replaceAll(".", "\\.")}`, `^${version}`, { preservePaths: false });
|
|
863
|
-
} else {
|
|
864
|
-
|
|
865
|
-
(0, import_set_value5.default)(targetPkgJson, `devDependencies.${x[0].replaceAll(".", "\\.")}`, x[1], { preservePaths: false });
|
|
866
|
-
}
|
|
866
|
+
} else if (!isWorkspace(targetDevDeps[x[0]])) {
|
|
867
|
+
(0, import_set_value5.default)(targetPkgJson, `devDependencies.${x[0].replaceAll(".", "\\.")}`, x[1], { preservePaths: false });
|
|
867
868
|
}
|
|
868
869
|
});
|
|
869
870
|
for (const [k, v] of scriptsEntries) {
|
|
@@ -941,14 +942,12 @@ async function upgradeMonorepo(opts) {
|
|
|
941
942
|
`, "utf8");
|
|
942
943
|
logger.success(targetPath);
|
|
943
944
|
}
|
|
944
|
-
} else {
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
logger.success(targetPath);
|
|
951
|
-
}
|
|
945
|
+
} else if (await overwriteOrCopy()) {
|
|
946
|
+
await import_fs_extra6.default.copy(
|
|
947
|
+
file.path,
|
|
948
|
+
targetPath
|
|
949
|
+
);
|
|
950
|
+
logger.success(targetPath);
|
|
952
951
|
}
|
|
953
952
|
}
|
|
954
953
|
});
|
package/dist/cli.js
CHANGED
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.3.5_jiti@2.4.
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.1_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.6.1/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.3.5_jiti@2.4.
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.1_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.6.1/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();
|
|
@@ -645,7 +645,10 @@ async function getRows(ctx) {
|
|
|
645
645
|
rows.push("## Projects\n");
|
|
646
646
|
for (const project of projects) {
|
|
647
647
|
const p = import_pathe6.default.relative(cwd, project.rootDirRealPath);
|
|
648
|
-
|
|
648
|
+
if (p) {
|
|
649
|
+
const description = project.manifest.description ? `- ${project.manifest.description}` : "";
|
|
650
|
+
rows.push(`- [${project.manifest.name}](${p}) ${description}`);
|
|
651
|
+
}
|
|
649
652
|
}
|
|
650
653
|
if (gitUrl) {
|
|
651
654
|
rows.push("\n## Contributing\n");
|
|
@@ -735,7 +738,7 @@ init_cjs_shims();
|
|
|
735
738
|
|
|
736
739
|
// package.json
|
|
737
740
|
var name = "@icebreakers/monorepo";
|
|
738
|
-
var version = "0.6.
|
|
741
|
+
var version = "0.6.18";
|
|
739
742
|
|
|
740
743
|
// src/scripts.ts
|
|
741
744
|
init_cjs_shims();
|
|
@@ -841,10 +844,8 @@ function setPkgJson(sourcePkgJson, targetPkgJson) {
|
|
|
841
844
|
Object.entries(devDeps).forEach((x) => {
|
|
842
845
|
if (x[0] === name) {
|
|
843
846
|
(0, import_set_value4.default)(targetPkgJson, `devDependencies.${x[0].replaceAll(".", "\\.")}`, `^${version}`, { preservePaths: false });
|
|
844
|
-
} else {
|
|
845
|
-
|
|
846
|
-
(0, import_set_value4.default)(targetPkgJson, `devDependencies.${x[0].replaceAll(".", "\\.")}`, x[1], { preservePaths: false });
|
|
847
|
-
}
|
|
847
|
+
} else if (!isWorkspace(targetDevDeps[x[0]])) {
|
|
848
|
+
(0, import_set_value4.default)(targetPkgJson, `devDependencies.${x[0].replaceAll(".", "\\.")}`, x[1], { preservePaths: false });
|
|
848
849
|
}
|
|
849
850
|
});
|
|
850
851
|
for (const [k, v] of scriptsEntries) {
|
|
@@ -922,14 +923,12 @@ async function upgradeMonorepo(opts) {
|
|
|
922
923
|
`, "utf8");
|
|
923
924
|
logger.success(targetPath);
|
|
924
925
|
}
|
|
925
|
-
} else {
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
logger.success(targetPath);
|
|
932
|
-
}
|
|
926
|
+
} else if (await overwriteOrCopy()) {
|
|
927
|
+
await import_fs_extra5.default.copy(
|
|
928
|
+
file.path,
|
|
929
|
+
targetPath
|
|
930
|
+
);
|
|
931
|
+
logger.success(targetPath);
|
|
933
932
|
}
|
|
934
933
|
}
|
|
935
934
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -31,7 +31,7 @@ interface CliOpts {
|
|
|
31
31
|
|
|
32
32
|
declare class GitClient {
|
|
33
33
|
#private;
|
|
34
|
-
private client;
|
|
34
|
+
private readonly client;
|
|
35
35
|
constructor(options?: Partial<SimpleGitOptions>);
|
|
36
36
|
listConfig(): simple_git.Response<simple_git.ConfigListSummary>;
|
|
37
37
|
init(): Promise<ConfigValues>;
|
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ interface CliOpts {
|
|
|
31
31
|
|
|
32
32
|
declare class GitClient {
|
|
33
33
|
#private;
|
|
34
|
-
private client;
|
|
34
|
+
private readonly client;
|
|
35
35
|
constructor(options?: Partial<SimpleGitOptions>);
|
|
36
36
|
listConfig(): simple_git.Response<simple_git.ConfigListSummary>;
|
|
37
37
|
init(): Promise<ConfigValues>;
|
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.6.
|
|
4
|
+
"version": "0.6.18",
|
|
5
5
|
"description": "icebreaker's monorepo config generator",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"templates"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@inquirer/checkbox": "^4.0.
|
|
38
|
-
"@inquirer/confirm": "^5.0
|
|
37
|
+
"@inquirer/checkbox": "^4.0.3",
|
|
38
|
+
"@inquirer/confirm": "^5.1.0",
|
|
39
39
|
"@pnpm/logger": "^5.2.0",
|
|
40
40
|
"@pnpm/types": "^12.2.0",
|
|
41
|
-
"@pnpm/workspace.find-packages": "^4.0.
|
|
41
|
+
"@pnpm/workspace.find-packages": "^4.0.14",
|
|
42
42
|
"commander": "^12.1.0",
|
|
43
43
|
"comment-json": "^4.2.5",
|
|
44
44
|
"consola": "^3.2.3",
|
|
45
|
-
"execa": "^9.
|
|
45
|
+
"execa": "^9.5.2",
|
|
46
46
|
"fs-extra": "^11.2.0",
|
|
47
47
|
"git-url-parse": "^16.0.0",
|
|
48
48
|
"klaw": "^4.1.0",
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
export function bar() {
|
|
2
2
|
return 'foo'
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
// import __cjs_path__ from 'path';
|
|
6
|
-
// import __cjs_mod__ from 'module';
|
|
7
|
-
// const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
8
|
-
// const __dirname = __cjs_path__.dirname(__filename);
|
|
9
|
-
// const require = __cjs_mod__.createRequire(import.meta.url);
|
|
4
|
+
|
|
10
5
|
export function getDirname() {
|
|
11
6
|
return __dirname
|
|
12
7
|
}
|