@icebreakers/monorepo 1.0.10 → 1.0.12

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.
@@ -1,5 +1,4 @@
1
1
  import type { UserConfig } from '@commitlint/types'
2
- // import { RuleConfigSeverity } from '@commitlint/types'
3
2
 
4
3
  export default <UserConfig>{
5
4
  extends: ['@commitlint/config-conventional'],
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.14.0",
6
+ "packageManager": "pnpm@10.15.0",
7
7
  "author": "ice breaker <1324318532@qq.com>",
8
8
  "repository": {
9
9
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@changesets/changelog-github": "^0.5.1",
44
- "@changesets/cli": "^2.29.5",
44
+ "@changesets/cli": "^2.29.6",
45
45
  "@commitlint/cli": "^19.8.1",
46
46
  "@commitlint/config-conventional": "^19.8.1",
47
47
  "@commitlint/prompt-cli": "^19.8.1",
@@ -50,12 +50,12 @@
50
50
  "@icebreakers/monorepo": "workspace:*",
51
51
  "@icebreakers/stylelint-config": "^1.1.2",
52
52
  "@types/fs-extra": "^11.0.4",
53
- "@types/node": "^24.2.1",
53
+ "@types/node": "^24.3.0",
54
54
  "@vitest/coverage-v8": "~3.2.4",
55
55
  "ci-info": "^4.3.0",
56
56
  "cross-env": "^10.0.0",
57
57
  "defu": "^6.1.4",
58
- "es-toolkit": "^1.39.9",
58
+ "es-toolkit": "^1.39.10",
59
59
  "eslint": "^9.33.0",
60
60
  "execa": "^9.6.0",
61
61
  "fs-extra": "^11.3.1",
@@ -63,25 +63,19 @@
63
63
  "lint-staged": "^16.1.5",
64
64
  "only-allow": "^1.2.1",
65
65
  "pathe": "^2.0.3",
66
- "pkg-types": "^2.2.0",
66
+ "pkg-types": "^2.3.0",
67
67
  "rimraf": "^6.0.1",
68
68
  "tslib": "^2.8.1",
69
69
  "tsup": "^8.5.0",
70
- "tsx": "^4.20.3",
71
- "turbo": "^2.5.5",
70
+ "tsx": "^4.20.4",
71
+ "turbo": "^2.5.6",
72
72
  "typescript": "^5.9.2",
73
- "unbuild": "^3.6.0",
73
+ "unbuild": "^3.6.1",
74
74
  "vitest": "~3.2.4",
75
75
  "yaml": "^2.8.1"
76
76
  },
77
77
  "publishConfig": {
78
78
  "access": "public",
79
79
  "registry": "https://registry.npmjs.org"
80
- },
81
- "pnpm": {
82
- "onlyBuiltDependencies": [
83
- "@tailwindcss/oxide",
84
- "esbuild"
85
- ]
86
80
  }
87
81
  }
@@ -2,3 +2,7 @@ packages:
2
2
  - 'apps/*'
3
3
  - 'packages/*'
4
4
  - '!**/test/**'
5
+
6
+ onlyBuiltDependencies:
7
+ - '@tailwindcss/oxide'
8
+ - esbuild
@@ -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.1__jiti@2.5.1_postcss@8.5.6_909b33e640ed77f1174edb29c7a71c08/node_modules/tsup/assets/esm_shims.js
30
+ // ../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.3.0__jiti@2.5.1_postcss@8.5.6_9d7594165581c3eb53ce128f5abb1ae1/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.1__jiti@2.5.1_postcss@8.5.6_909b33e640ed77f1174edb29c7a71c08/node_modules/tsup/assets/esm_shims.js"() {
34
+ "../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.3.0__jiti@2.5.1_postcss@8.5.6_9d7594165581c3eb53ce128f5abb1ae1/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.10";
770
+ var version = "1.0.12";
771
771
 
772
772
  // src/scripts.ts
773
773
  init_esm_shims();
@@ -775,7 +775,8 @@ var scripts = {
775
775
  "script:init": "monorepo init",
776
776
  "script:sync": "monorepo sync",
777
777
  "script:clean": "monorepo clean",
778
- "script:mirror": "monorepo mirror"
778
+ "script:mirror": "monorepo mirror",
779
+ "commitlint": "commitlint --edit"
779
780
  };
780
781
  var scriptsEntries = Object.entries(scripts);
781
782
 
@@ -853,7 +854,7 @@ function confirmOverwrite(filename) {
853
854
  return confirm({ message: `${pc2.greenBright(filename)} \u6587\u4EF6\u5185\u5BB9\u53D1\u751F\u6539\u53D8,\u662F\u5426\u8986\u76D6?`, default: true });
854
855
  }
855
856
  async function upgradeMonorepo(opts) {
856
- const { outDir, raw, interactive, cwd } = defu(opts, {
857
+ const { outDir, raw, interactive, cwd, skipOverwrite } = defu(opts, {
857
858
  cwd: process.cwd(),
858
859
  outDir: ""
859
860
  });
@@ -896,6 +897,8 @@ async function upgradeMonorepo(opts) {
896
897
  if (await isFileChanged(src, dest)) {
897
898
  isOverwrite = await confirmOverwrite(relPath);
898
899
  }
900
+ } else if (skipOverwrite) {
901
+ isOverwrite = false;
899
902
  }
900
903
  return isOverwrite;
901
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.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
31
+ // ../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.3.0__jiti@2.5.1_postcss@8.5.6_9d7594165581c3eb53ce128f5abb1ae1/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.1__jiti@2.5.1_postcss@8.5.6_909b33e640ed77f1174edb29c7a71c08/node_modules/tsup/assets/cjs_shims.js"() {
34
+ "../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.3.0__jiti@2.5.1_postcss@8.5.6_9d7594165581c3eb53ce128f5abb1ae1/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.10";
235
+ var version = "1.0.12";
236
236
 
237
237
  // src/create.ts
238
238
  init_cjs_shims();
@@ -804,7 +804,8 @@ var scripts = {
804
804
  "script:init": "monorepo init",
805
805
  "script:sync": "monorepo sync",
806
806
  "script:clean": "monorepo clean",
807
- "script:mirror": "monorepo mirror"
807
+ "script:mirror": "monorepo mirror",
808
+ "commitlint": "commitlint --edit"
808
809
  };
809
810
  var scriptsEntries = Object.entries(scripts);
810
811
 
@@ -915,7 +916,7 @@ function confirmOverwrite(filename) {
915
916
  return (0, import_confirm.default)({ message: `${import_picocolors3.default.greenBright(filename)} \u6587\u4EF6\u5185\u5BB9\u53D1\u751F\u6539\u53D8,\u662F\u5426\u8986\u76D6?`, default: true });
916
917
  }
917
918
  async function upgradeMonorepo(opts) {
918
- const { outDir, raw, interactive, cwd: cwd2 } = defu(opts, {
919
+ const { outDir, raw, interactive, cwd: cwd2, skipOverwrite } = defu(opts, {
919
920
  cwd: import_node_process2.default.cwd(),
920
921
  outDir: ""
921
922
  });
@@ -958,6 +959,8 @@ async function upgradeMonorepo(opts) {
958
959
  if (await isFileChanged(src, dest)) {
959
960
  isOverwrite = await confirmOverwrite(relPath);
960
961
  }
962
+ } else if (skipOverwrite) {
963
+ isOverwrite = false;
961
964
  }
962
965
  return isOverwrite;
963
966
  }
@@ -996,7 +999,7 @@ async function upgradeMonorepo(opts) {
996
999
  // src/program.ts
997
1000
  var cwd = import_node_process3.default.cwd();
998
1001
  import_commander.program.name(name).version(version);
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) => {
1002
+ 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").option("-s,--skip-overwrite", "skip overwrite").action(async (opts) => {
1000
1003
  await upgradeMonorepo(opts);
1001
1004
  logger.success("upgrade @icebreakers/monorepo ok!");
1002
1005
  });
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  syncNpmMirror,
12
12
  upgradeMonorepo,
13
13
  version
14
- } from "./chunk-IJB4I4QL.js";
14
+ } from "./chunk-6GYK5EWY.js";
15
15
 
16
16
  // src/cli.ts
17
17
  init_esm_shims();
@@ -74,7 +74,7 @@ async function createNewProject(options) {
74
74
  // src/program.ts
75
75
  var cwd = process2.cwd();
76
76
  program.name(name).version(version);
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) => {
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").option("-s,--skip-overwrite", "skip overwrite").action(async (opts) => {
78
78
  await upgradeMonorepo(opts);
79
79
  logger.success("upgrade @icebreakers/monorepo ok!");
80
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.1__jiti@2.5.1_postcss@8.5.6_909b33e640ed77f1174edb29c7a71c08/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.3.0__jiti@2.5.1_postcss@8.5.6_9d7594165581c3eb53ce128f5abb1ae1/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.1__jiti@2.5.1_postcss@8.5.6_909b33e640ed77f1174edb29c7a71c08/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.52.8_@types+node@24.3.0__jiti@2.5.1_postcss@8.5.6_9d7594165581c3eb53ce128f5abb1ae1/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.10";
765
+ var version = "1.0.12";
766
766
 
767
767
  // src/scripts.ts
768
768
  init_cjs_shims();
@@ -770,7 +770,8 @@ var scripts = {
770
770
  "script:init": "monorepo init",
771
771
  "script:sync": "monorepo sync",
772
772
  "script:clean": "monorepo clean",
773
- "script:mirror": "monorepo mirror"
773
+ "script:mirror": "monorepo mirror",
774
+ "commitlint": "commitlint --edit"
774
775
  };
775
776
  var scriptsEntries = Object.entries(scripts);
776
777
 
@@ -881,7 +882,7 @@ function confirmOverwrite(filename) {
881
882
  return (0, import_confirm.default)({ message: `${import_picocolors2.default.greenBright(filename)} \u6587\u4EF6\u5185\u5BB9\u53D1\u751F\u6539\u53D8,\u662F\u5426\u8986\u76D6?`, default: true });
882
883
  }
883
884
  async function upgradeMonorepo(opts) {
884
- const { outDir, raw, interactive, cwd } = defu(opts, {
885
+ const { outDir, raw, interactive, cwd, skipOverwrite } = defu(opts, {
885
886
  cwd: import_node_process.default.cwd(),
886
887
  outDir: ""
887
888
  });
@@ -924,6 +925,8 @@ async function upgradeMonorepo(opts) {
924
925
  if (await isFileChanged(src, dest)) {
925
926
  isOverwrite = await confirmOverwrite(relPath);
926
927
  }
928
+ } else if (skipOverwrite) {
929
+ isOverwrite = false;
927
930
  }
928
931
  return isOverwrite;
929
932
  }
package/dist/index.d.cts CHANGED
@@ -28,6 +28,7 @@ interface CliOpts {
28
28
  raw?: boolean;
29
29
  outDir?: string;
30
30
  cwd?: string;
31
+ skipOverwrite?: boolean;
31
32
  }
32
33
 
33
34
  declare class GitClient {
package/dist/index.d.ts CHANGED
@@ -28,6 +28,7 @@ interface CliOpts {
28
28
  raw?: boolean;
29
29
  outDir?: string;
30
30
  cwd?: string;
31
+ skipOverwrite?: boolean;
31
32
  }
32
33
 
33
34
  declare class GitClient {
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  setVscodeBinaryMirror,
13
13
  syncNpmMirror,
14
14
  upgradeMonorepo
15
- } from "./chunk-IJB4I4QL.js";
15
+ } from "./chunk-6GYK5EWY.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.10",
4
+ "version": "1.0.12",
5
5
  "description": "icebreaker's monorepo config generator",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -34,14 +34,14 @@
34
34
  "templates"
35
35
  ],
36
36
  "dependencies": {
37
- "@inquirer/checkbox": "^4.2.0",
38
- "@inquirer/confirm": "^5.1.14",
37
+ "@inquirer/checkbox": "^4.2.1",
38
+ "@inquirer/confirm": "^5.1.15",
39
39
  "@inquirer/input": "^4.2.1",
40
40
  "@inquirer/select": "^4.3.1",
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.32",
44
+ "@pnpm/workspace.find-packages": "^1000.0.33",
45
45
  "commander": "^14.0.0",
46
46
  "comment-json": "^4.2.5",
47
47
  "consola": "^3.4.2",
@@ -47,11 +47,13 @@
47
47
  "devDependencies": {
48
48
  "@vitejs/plugin-vue": "^6.0.1",
49
49
  "@vue/test-utils": "^2.4.6",
50
- "@vue/tsconfig": "^0.7.0",
50
+ "@vue/tsconfig": "^0.8.1",
51
51
  "jsdom": "^26.1.0",
52
- "vite": "^7.1.2",
52
+ "unplugin-vue-router": "^0.15.0",
53
+ "vite": "^7.1.3",
53
54
  "vite-plugin-dts": "^4.5.4",
54
55
  "vue": "^3.5.18",
56
+ "vue-router": "^4.5.1",
55
57
  "vue-tsc": "^3.0.5"
56
58
  }
57
59
  }
@@ -1,9 +1,9 @@
1
1
  <script setup lang="ts">
2
- import HelloWorld from '../lib/HelloWorld.vue'
2
+
3
3
  </script>
4
4
 
5
5
  <template>
6
- <HelloWorld msg="Vite + Vue" />
6
+ <RouterView />
7
7
  </template>
8
8
 
9
9
  <style scoped></style>
@@ -1,5 +1,8 @@
1
1
  import { createApp } from 'vue'
2
2
  import App from './App.vue'
3
+ import { router } from './router'
3
4
  import './style.css'
4
5
 
5
- createApp(App).mount('#app')
6
+ const app = createApp(App)
7
+ app.use(router)
8
+ app.mount('#app')
@@ -0,0 +1,9 @@
1
+ <script setup lang="ts">
2
+ import { HelloWorld } from '~/index'
3
+ </script>
4
+
5
+ <template>
6
+ <HelloWorld msg="Vite + Vue" />
7
+ </template>
8
+
9
+ <style scoped></style>
@@ -0,0 +1,11 @@
1
+ import { createRouter, createWebHistory } from 'vue-router'
2
+ import { handleHotUpdate, routes } from 'vue-router/auto-routes'
3
+
4
+ export const router = createRouter({
5
+ history: createWebHistory(),
6
+ routes,
7
+ })
8
+
9
+ if (import.meta.hot) {
10
+ handleHotUpdate(router)
11
+ }
@@ -1 +1,2 @@
1
1
  /// <reference types="vite/client" />
2
+ /// <reference types="unplugin-vue-router/client" />
@@ -4,10 +4,10 @@
4
4
  "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
5
5
  "paths": {
6
6
  "@/*": [
7
- "./src"
7
+ "./src/*"
8
8
  ],
9
9
  "~/*": [
10
- "./lib"
10
+ "./lib/*"
11
11
  ]
12
12
  },
13
13
  /* Linting */
@@ -24,6 +24,7 @@
24
24
  "lib/**/*.vue",
25
25
  "src/**/*.ts",
26
26
  "src/**/*.tsx",
27
- "src/**/*.vue"
27
+ "src/**/*.vue",
28
+ "typed-router.d.ts"
28
29
  ]
29
30
  }
@@ -1,5 +1,6 @@
1
- import vue from '@vitejs/plugin-vue'
1
+ import Vue from '@vitejs/plugin-vue'
2
2
  import path from 'pathe'
3
+ import VueRouter from 'unplugin-vue-router/vite'
3
4
  // https://vite.dev/guide/build.html#library-mode
4
5
  import { defineConfig } from 'vite'
5
6
 
@@ -11,6 +12,7 @@ export const sharedConfig = defineConfig({
11
12
  },
12
13
  },
13
14
  plugins: [
14
- vue(),
15
+ VueRouter(),
16
+ Vue(),
15
17
  ],
16
18
  })