@icebreakers/monorepo 0.7.3 → 0.7.5

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.
@@ -28,7 +28,7 @@ jobs:
28
28
  - name: Setup Node.js environment
29
29
  uses: actions/setup-node@v4
30
30
  with:
31
- node-version: 20
31
+ node-version: 22
32
32
  cache: pnpm
33
33
 
34
34
  - name: Install Dependencies
package/assets/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 ice breaker
3
+ Copyright (c) 2025 ice breaker
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@ publish = "dist"
3
3
  command = "pnpm run build"
4
4
 
5
5
  [build.environment]
6
- NODE_VERSION = "20"
6
+ NODE_VERSION = "22"
7
7
 
8
8
  [[redirects]]
9
9
  from = "/*"
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.2.1",
6
+ "packageManager": "pnpm@10.4.1",
7
7
  "author": "ice breaker <1324318532@qq.com>",
8
8
  "repository": {
9
9
  "type": "git",
@@ -32,42 +32,47 @@
32
32
  "script:mirror": "monorepo mirror"
33
33
  },
34
34
  "devDependencies": {
35
- "@changesets/changelog-github": "^0.5.0",
36
- "@changesets/cli": "^2.27.12",
35
+ "@changesets/changelog-github": "^0.5.1",
36
+ "@changesets/cli": "^2.28.1",
37
37
  "@commitlint/cli": "^19.7.1",
38
38
  "@commitlint/config-conventional": "^19.7.1",
39
39
  "@commitlint/prompt-cli": "^19.7.1",
40
40
  "@commitlint/types": "^19.5.0",
41
- "@icebreakers/eslint-config": "^1.0.0",
41
+ "@icebreakers/eslint-config": "^1.0.1",
42
42
  "@icebreakers/monorepo": "workspace:*",
43
43
  "@icebreakers/stylelint-config": "^1.0.0",
44
44
  "@types/fs-extra": "^11.0.4",
45
- "@types/node": "^22.13.1",
46
- "@vitest/coverage-v8": "~3.0.5",
45
+ "@types/node": "^22.13.5",
46
+ "@vitest/coverage-v8": "~3.0.6",
47
47
  "ci-info": "^4.1.0",
48
48
  "cross-env": "^7.0.3",
49
49
  "defu": "^6.1.4",
50
50
  "es-toolkit": "^1.32.0",
51
- "eslint": "^9.20.0",
51
+ "eslint": "^9.21.0",
52
52
  "execa": "^9.5.2",
53
53
  "fs-extra": "^11.3.0",
54
54
  "husky": "^9.1.6",
55
55
  "lint-staged": "^15.4.3",
56
56
  "only-allow": "^1.2.1",
57
- "pathe": "^2.0.2",
57
+ "pathe": "^2.0.3",
58
58
  "pkg-types": "^1.3.1",
59
59
  "rimraf": "^6.0.1",
60
60
  "tslib": "^2.8.0",
61
61
  "tsup": "^8.3.6",
62
- "tsx": "^4.19.2",
63
- "turbo": "^2.4.1",
62
+ "tsx": "^4.19.3",
63
+ "turbo": "^2.4.2",
64
64
  "typescript": "^5.7.3",
65
65
  "unbuild": "^3.3.1",
66
- "vitest": "~3.0.5",
66
+ "vitest": "~3.0.6",
67
67
  "yaml": "^2.7.0"
68
68
  },
69
69
  "publishConfig": {
70
70
  "access": "public",
71
71
  "registry": "https://registry.npmjs.org"
72
+ },
73
+ "pnpm": {
74
+ "onlyBuiltDependencies": [
75
+ "esbuild"
76
+ ]
72
77
  }
73
78
  }
@@ -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.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js
30
+ // ../../node_modules/.pnpm/tsup@8.3.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.3_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js
31
31
  var init_esm_shims = __esm({
32
- "../../node_modules/.pnpm/tsup@8.3.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js"() {
32
+ "../../node_modules/.pnpm/tsup@8.3.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.3_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js"() {
33
33
  "use strict";
34
34
  }
35
35
  });
@@ -515,11 +515,13 @@ var defuArrayFn = createDefu((object, key, currentValue) => {
515
515
  import path3 from "pathe";
516
516
  async function getWorkspacePackages(cwd, options) {
517
517
  const posixCwd = path3.normalize(cwd);
518
- const { ignoreRootPackage, ignorePrivatePackage } = defu(options, {
518
+ const { ignoreRootPackage, ignorePrivatePackage, patterns } = defu(options, {
519
519
  ignoreRootPackage: true,
520
520
  ignorePrivatePackage: true
521
521
  });
522
- const packages = await findWorkspacePackages(cwd);
522
+ const packages = await findWorkspacePackages(cwd, {
523
+ patterns
524
+ });
523
525
  let pkgs = packages.filter((x) => {
524
526
  if (ignorePrivatePackage && x.manifest.private) {
525
527
  return false;
@@ -739,7 +741,7 @@ init_esm_shims();
739
741
 
740
742
  // package.json
741
743
  var name = "@icebreakers/monorepo";
742
- var version = "0.7.3";
744
+ var version = "0.7.5";
743
745
 
744
746
  // src/scripts.ts
745
747
  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.3.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js
31
+ // ../../node_modules/.pnpm/tsup@8.3.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.3_typescript@5.7.3_yaml@2.7.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.3.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js"() {
34
+ "../../node_modules/.pnpm/tsup@8.3.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.3_typescript@5.7.3_yaml@2.7.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.7.3";
233
+ var version = "0.7.5";
234
234
 
235
235
  // src/create.ts
236
236
  init_cjs_shims();
@@ -591,11 +591,13 @@ var import_workspace = require("@pnpm/workspace.find-packages");
591
591
  var import_pathe4 = __toESM(require("pathe"), 1);
592
592
  async function getWorkspacePackages(cwd2, options) {
593
593
  const posixCwd = import_pathe4.default.normalize(cwd2);
594
- const { ignoreRootPackage, ignorePrivatePackage } = defu(options, {
594
+ const { ignoreRootPackage, ignorePrivatePackage, patterns } = defu(options, {
595
595
  ignoreRootPackage: true,
596
596
  ignorePrivatePackage: true
597
597
  });
598
- const packages = await (0, import_workspace.findWorkspacePackages)(cwd2);
598
+ const packages = await (0, import_workspace.findWorkspacePackages)(cwd2, {
599
+ patterns
600
+ });
599
601
  let pkgs = packages.filter((x) => {
600
602
  if (ignorePrivatePackage && x.manifest.private) {
601
603
  return false;
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  syncNpmMirror,
12
12
  upgradeMonorepo,
13
13
  version
14
- } from "./chunk-KXIQGY7C.js";
14
+ } from "./chunk-ORGG42AD.js";
15
15
 
16
16
  // src/cli.ts
17
17
  init_esm_shims();
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.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.3.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.3_typescript@5.7.3_yaml@2.7.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.3.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@8.3.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.3_typescript@5.7.3_yaml@2.7.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();
@@ -553,11 +553,13 @@ var defuArrayFn = createDefu((object, key, currentValue) => {
553
553
  var import_pathe3 = __toESM(require("pathe"), 1);
554
554
  async function getWorkspacePackages(cwd, options) {
555
555
  const posixCwd = import_pathe3.default.normalize(cwd);
556
- const { ignoreRootPackage, ignorePrivatePackage } = defu(options, {
556
+ const { ignoreRootPackage, ignorePrivatePackage, patterns } = defu(options, {
557
557
  ignoreRootPackage: true,
558
558
  ignorePrivatePackage: true
559
559
  });
560
- const packages = await (0, import_workspace.findWorkspacePackages)(cwd);
560
+ const packages = await (0, import_workspace.findWorkspacePackages)(cwd, {
561
+ patterns
562
+ });
561
563
  let pkgs = packages.filter((x) => {
562
564
  if (ignorePrivatePackage && x.manifest.private) {
563
565
  return false;
@@ -736,7 +738,7 @@ init_cjs_shims();
736
738
 
737
739
  // package.json
738
740
  var name = "@icebreakers/monorepo";
739
- var version = "0.7.3";
741
+ var version = "0.7.5";
740
742
 
741
743
  // src/scripts.ts
742
744
  init_cjs_shims();
package/dist/index.d.cts CHANGED
@@ -8,6 +8,7 @@ import crypto from 'node:crypto';
8
8
  interface GetWorkspacePackagesOptions {
9
9
  ignoreRootPackage?: boolean;
10
10
  ignorePrivatePackage?: boolean;
11
+ patterns?: string[];
11
12
  }
12
13
  declare function getWorkspacePackages(cwd: string, options?: GetWorkspacePackagesOptions): Promise<{
13
14
  pkgJsonPath: string;
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import crypto from 'node:crypto';
8
8
  interface GetWorkspacePackagesOptions {
9
9
  ignoreRootPackage?: boolean;
10
10
  ignorePrivatePackage?: boolean;
11
+ patterns?: string[];
11
12
  }
12
13
  declare function getWorkspacePackages(cwd: string, options?: GetWorkspacePackagesOptions): Promise<{
13
14
  pkgJsonPath: string;
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  setVscodeBinaryMirror,
13
13
  syncNpmMirror,
14
14
  upgradeMonorepo
15
- } from "./chunk-KXIQGY7C.js";
15
+ } from "./chunk-ORGG42AD.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": "0.7.3",
4
+ "version": "0.7.5",
5
5
  "description": "icebreaker's monorepo config generator",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -38,16 +38,16 @@
38
38
  "@inquirer/confirm": "^5.1.5",
39
39
  "@pnpm/logger": "^1000.0.0",
40
40
  "@pnpm/types": "^1000.1.1",
41
- "@pnpm/workspace.find-packages": "^1000.0.8",
41
+ "@pnpm/workspace.find-packages": "^1000.0.10",
42
42
  "commander": "^13.1.0",
43
43
  "comment-json": "^4.2.5",
44
44
  "consola": "^3.4.0",
45
45
  "execa": "^9.5.2",
46
46
  "fs-extra": "^11.3.0",
47
- "git-url-parse": "^16.0.0",
47
+ "git-url-parse": "^16.0.1",
48
48
  "klaw": "^4.1.0",
49
49
  "p-queue": "^8.1.0",
50
- "pathe": "^2.0.2",
50
+ "pathe": "^2.0.3",
51
51
  "picocolors": "^1.1.1",
52
52
  "simple-git": "^3.27.0"
53
53
  },