@icebreakers/monorepo 1.0.8 → 1.0.10

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.
@@ -27,7 +27,7 @@ jobs:
27
27
 
28
28
  steps:
29
29
  - name: Check out code
30
- uses: actions/checkout@v4
30
+ uses: actions/checkout@v5
31
31
  with:
32
32
  fetch-depth: 2
33
33
 
@@ -22,7 +22,7 @@ jobs:
22
22
  runs-on: ubuntu-latest
23
23
  steps:
24
24
  - name: Checkout Repo
25
- uses: actions/checkout@v4
25
+ uses: actions/checkout@v5
26
26
 
27
27
  - uses: pnpm/action-setup@v4
28
28
 
@@ -1 +1 @@
1
- pnpm dlx commitlint --edit $1
1
+ npm run commitlint ${1}
@@ -1 +1 @@
1
- pnpm dlx lint-staged
1
+ npx lint-staged
@@ -23,10 +23,12 @@
23
23
  "lint": "turbo run lint",
24
24
  "release": "changeset",
25
25
  "publish-packages": "turbo run build lint test && changeset version && changeset publish",
26
+ "------": "--------------",
26
27
  "preinstall": "npx only-allow pnpm",
27
28
  "prepare": "husky",
28
29
  "commit": "commit",
29
- "-------": "-----------",
30
+ "commitlint": "commitlint --edit",
31
+ "-------": "---------------",
30
32
  "pr:alpha": "changeset pre enter alpha",
31
33
  "pr:beta": "changeset pre enter beta",
32
34
  "pr:rc": "changeset pre enter rc",
@@ -44,21 +46,21 @@
44
46
  "@commitlint/config-conventional": "^19.8.1",
45
47
  "@commitlint/prompt-cli": "^19.8.1",
46
48
  "@commitlint/types": "^19.8.1",
47
- "@icebreakers/eslint-config": "^1.3.2",
49
+ "@icebreakers/eslint-config": "^1.3.4",
48
50
  "@icebreakers/monorepo": "workspace:*",
49
- "@icebreakers/stylelint-config": "^1.1.1",
51
+ "@icebreakers/stylelint-config": "^1.1.2",
50
52
  "@types/fs-extra": "^11.0.4",
51
- "@types/node": "^24.2.0",
53
+ "@types/node": "^24.2.1",
52
54
  "@vitest/coverage-v8": "~3.2.4",
53
55
  "ci-info": "^4.3.0",
54
56
  "cross-env": "^10.0.0",
55
57
  "defu": "^6.1.4",
56
- "es-toolkit": "^1.39.8",
57
- "eslint": "^9.32.0",
58
+ "es-toolkit": "^1.39.9",
59
+ "eslint": "^9.33.0",
58
60
  "execa": "^9.6.0",
59
61
  "fs-extra": "^11.3.1",
60
62
  "husky": "^9.1.7",
61
- "lint-staged": "^16.1.4",
63
+ "lint-staged": "^16.1.5",
62
64
  "only-allow": "^1.2.1",
63
65
  "pathe": "^2.0.3",
64
66
  "pkg-types": "^2.2.0",
@@ -27,11 +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.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.2.0__jiti@2.5.0_postcss@8.5.6_b0e5ac91c26a046e977ea7db06eeb1ea/node_modules/tsup/assets/esm_shims.js
30
+ // ../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.2.1__jiti@2.5.1_postcss@8.5.6_909b33e640ed77f1174edb29c7a71c08/node_modules/tsup/assets/esm_shims.js
31
31
  import path from "path";
32
32
  import { fileURLToPath } from "url";
33
33
  var init_esm_shims = __esm({
34
- "../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.2.0__jiti@2.5.0_postcss@8.5.6_b0e5ac91c26a046e977ea7db06eeb1ea/node_modules/tsup/assets/esm_shims.js"() {
34
+ "../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.2.1__jiti@2.5.1_postcss@8.5.6_909b33e640ed77f1174edb29c7a71c08/node_modules/tsup/assets/esm_shims.js"() {
35
35
  "use strict";
36
36
  }
37
37
  });
@@ -767,7 +767,7 @@ init_esm_shims();
767
767
 
768
768
  // package.json
769
769
  var name = "@icebreakers/monorepo";
770
- var version = "1.0.8";
770
+ var version = "1.0.10";
771
771
 
772
772
  // src/scripts.ts
773
773
  init_esm_shims();
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.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.2.0__jiti@2.5.0_postcss@8.5.6_b0e5ac91c26a046e977ea7db06eeb1ea/node_modules/tsup/assets/cjs_shims.js
31
+ // ../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.2.1__jiti@2.5.1_postcss@8.5.6_909b33e640ed77f1174edb29c7a71c08/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.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.2.0__jiti@2.5.0_postcss@8.5.6_b0e5ac91c26a046e977ea7db06eeb1ea/node_modules/tsup/assets/cjs_shims.js"() {
34
+ "../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.2.1__jiti@2.5.1_postcss@8.5.6_909b33e640ed77f1174edb29c7a71c08/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();
@@ -232,7 +232,7 @@ init_cjs_shims();
232
232
 
233
233
  // package.json
234
234
  var name = "@icebreakers/monorepo";
235
- var version = "1.0.8";
235
+ var version = "1.0.10";
236
236
 
237
237
  // src/create.ts
238
238
  init_cjs_shims();
@@ -345,7 +345,14 @@ async function createNewProject(options) {
345
345
  const sourceJson = await import_fs_extra.default.readJson(sourceJsonPath);
346
346
  (0, import_set_value.default)(sourceJson, "version", "0.0.0");
347
347
  (0, import_set_value.default)(sourceJson, "name", import_pathe.default.basename(targetName));
348
- await import_fs_extra.default.outputJson(import_pathe.default.resolve(to, renameJson ? "package.mock.json" : filename), sourceJson, { spaces: 2 });
348
+ await import_fs_extra.default.outputJson(
349
+ import_pathe.default.resolve(
350
+ to,
351
+ renameJson ? "package.mock.json" : filename
352
+ ),
353
+ sourceJson,
354
+ { spaces: 2 }
355
+ );
349
356
  } else {
350
357
  await import_fs_extra.default.copy(import_pathe.default.resolve(from, filename), import_pathe.default.resolve(to, filename));
351
358
  }
@@ -989,7 +996,7 @@ async function upgradeMonorepo(opts) {
989
996
  // src/program.ts
990
997
  var cwd = import_node_process3.default.cwd();
991
998
  import_commander.program.name(name).version(version);
992
- import_commander.program.option("-i,--interactive").option("--raw", "raw mode").option("--outDir <dir>", "Output directory").action(async (opts) => {
999
+ import_commander.program.command("upgrade").description("\u5347\u7EA7/\u540C\u6B65 monorepo \u76F8\u5173\u5305").alias("up").option("-i,--interactive").option("--raw", "raw mode").option("--outDir <dir>", "Output directory").action(async (opts) => {
993
1000
  await upgradeMonorepo(opts);
994
1001
  logger.success("upgrade @icebreakers/monorepo ok!");
995
1002
  });
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  syncNpmMirror,
12
12
  upgradeMonorepo,
13
13
  version
14
- } from "./chunk-YTWVQICX.js";
14
+ } from "./chunk-IJB4I4QL.js";
15
15
 
16
16
  // src/cli.ts
17
17
  init_esm_shims();
@@ -56,7 +56,14 @@ async function createNewProject(options) {
56
56
  const sourceJson = await fs.readJson(sourceJsonPath);
57
57
  (0, import_set_value.default)(sourceJson, "version", "0.0.0");
58
58
  (0, import_set_value.default)(sourceJson, "name", path.basename(targetName));
59
- await fs.outputJson(path.resolve(to, renameJson ? "package.mock.json" : filename), sourceJson, { spaces: 2 });
59
+ await fs.outputJson(
60
+ path.resolve(
61
+ to,
62
+ renameJson ? "package.mock.json" : filename
63
+ ),
64
+ sourceJson,
65
+ { spaces: 2 }
66
+ );
60
67
  } else {
61
68
  await fs.copy(path.resolve(from, filename), path.resolve(to, filename));
62
69
  }
@@ -67,7 +74,7 @@ async function createNewProject(options) {
67
74
  // src/program.ts
68
75
  var cwd = process2.cwd();
69
76
  program.name(name).version(version);
70
- program.option("-i,--interactive").option("--raw", "raw mode").option("--outDir <dir>", "Output directory").action(async (opts) => {
77
+ program.command("upgrade").description("\u5347\u7EA7/\u540C\u6B65 monorepo \u76F8\u5173\u5305").alias("up").option("-i,--interactive").option("--raw", "raw mode").option("--outDir <dir>", "Output directory").action(async (opts) => {
71
78
  await upgradeMonorepo(opts);
72
79
  logger.success("upgrade @icebreakers/monorepo ok!");
73
80
  });
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.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.2.0__jiti@2.5.0_postcss@8.5.6_b0e5ac91c26a046e977ea7db06eeb1ea/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.2.1__jiti@2.5.1_postcss@8.5.6_909b33e640ed77f1174edb29c7a71c08/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.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.2.0__jiti@2.5.0_postcss@8.5.6_b0e5ac91c26a046e977ea7db06eeb1ea/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.2.1__jiti@2.5.1_postcss@8.5.6_909b33e640ed77f1174edb29c7a71c08/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();
@@ -762,7 +762,7 @@ init_cjs_shims();
762
762
 
763
763
  // package.json
764
764
  var name = "@icebreakers/monorepo";
765
- var version = "1.0.8";
765
+ var version = "1.0.10";
766
766
 
767
767
  // src/scripts.ts
768
768
  init_cjs_shims();
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  setVscodeBinaryMirror,
13
13
  syncNpmMirror,
14
14
  upgradeMonorepo
15
- } from "./chunk-YTWVQICX.js";
15
+ } from "./chunk-IJB4I4QL.js";
16
16
 
17
17
  // src/index.ts
18
18
  init_esm_shims();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/monorepo",
3
3
  "type": "module",
4
- "version": "1.0.8",
4
+ "version": "1.0.10",
5
5
  "description": "icebreaker's monorepo config generator",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "@pnpm/logger": "^1001.0.0",
42
42
  "@pnpm/types": "^1000.7.0",
43
43
  "@pnpm/worker": "^1000.1.11",
44
- "@pnpm/workspace.find-packages": "^1000.0.31",
44
+ "@pnpm/workspace.find-packages": "^1000.0.32",
45
45
  "commander": "^14.0.0",
46
46
  "comment-json": "^4.2.5",
47
47
  "consola": "^3.4.2",
@@ -49,7 +49,7 @@
49
49
  "@vue/test-utils": "^2.4.6",
50
50
  "@vue/tsconfig": "^0.7.0",
51
51
  "jsdom": "^26.1.0",
52
- "vite": "^7.1.0",
52
+ "vite": "^7.1.2",
53
53
  "vite-plugin-dts": "^4.5.4",
54
54
  "vue": "^3.5.18",
55
55
  "vue-tsc": "^3.0.5"