@icebreakers/monorepo 1.2.1 → 1.2.2

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.
@@ -46,7 +46,7 @@
46
46
  "@commitlint/config-conventional": "^19.8.1",
47
47
  "@commitlint/prompt-cli": "^19.8.1",
48
48
  "@commitlint/types": "^19.8.1",
49
- "@icebreakers/eslint-config": "^1.4.3",
49
+ "@icebreakers/eslint-config": "^1.4.4",
50
50
  "@icebreakers/monorepo": "workspace:*",
51
51
  "@icebreakers/stylelint-config": "^1.1.4",
52
52
  "@types/fs-extra": "^11.0.4",
@@ -375,7 +375,7 @@ import { fileURLToPath as fileURLToPath2 } from "url";
375
375
 
376
376
  // package.json
377
377
  var name = "@icebreakers/monorepo";
378
- var version = "1.2.1";
378
+ var version = "1.2.2";
379
379
 
380
380
  // src/constants.ts
381
381
  var __filename2 = fileURLToPath2(import.meta.url);
package/dist/cli.cjs CHANGED
@@ -234,7 +234,7 @@ var import_node_url = require("url");
234
234
 
235
235
  // package.json
236
236
  var name = "@icebreakers/monorepo";
237
- var version = "1.2.1";
237
+ var version = "1.2.2";
238
238
 
239
239
  // src/constants.ts
240
240
  var __filename2 = (0, import_node_url.fileURLToPath)(importMetaUrl);
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  syncNpmMirror,
12
12
  upgradeMonorepo,
13
13
  version
14
- } from "./chunk-J3UQM7T4.js";
14
+ } from "./chunk-SC5QBYJ5.js";
15
15
 
16
16
  // src/cli.ts
17
17
  init_esm_shims();
package/dist/index.cjs CHANGED
@@ -407,7 +407,7 @@ var import_node_url = require("url");
407
407
 
408
408
  // package.json
409
409
  var name = "@icebreakers/monorepo";
410
- var version = "1.2.1";
410
+ var version = "1.2.2";
411
411
 
412
412
  // src/constants.ts
413
413
  var __filename2 = (0, import_node_url.fileURLToPath)(importMetaUrl);
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  setVscodeBinaryMirror,
14
14
  syncNpmMirror,
15
15
  upgradeMonorepo
16
- } from "./chunk-J3UQM7T4.js";
16
+ } from "./chunk-SC5QBYJ5.js";
17
17
 
18
18
  // src/index.ts
19
19
  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.2.1",
4
+ "version": "1.2.2",
5
5
  "description": "The icebreaker's monorepo manager",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "build": "vue-tsc -b && vite build",
9
9
  "preview": "vite preview",
10
10
  "deploy": "wrangler deploy",
11
- "types": "wrangler types"
11
+ "cf-typegen": "wrangler types"
12
12
  },
13
13
  "dependencies": {
14
14
  "@faker-js/faker": "^10.0.0",
@@ -35,6 +35,7 @@
35
35
  "typescript": "~5.9.2",
36
36
  "unplugin-vue-router": "^0.15.0",
37
37
  "vite": "^7.1.6",
38
+ "vite-plugin-vue-devtools": "^8.0.2",
38
39
  "vite-tsconfig-paths": "^5.1.4",
39
40
  "vue-tsc": "3.0.7",
40
41
  "wrangler": "^4.38.0",
@@ -5,6 +5,7 @@ import Vue from '@vitejs/plugin-vue'
5
5
  import VueJsx from '@vitejs/plugin-vue-jsx'
6
6
  import VueRouter from 'unplugin-vue-router/vite'
7
7
  import { defineConfig } from 'vite'
8
+ import VueDevTools from 'vite-plugin-vue-devtools'
8
9
  // https://vite.dev/config/
9
10
  export default defineConfig({
10
11
  resolve: {
@@ -25,6 +26,7 @@ export default defineConfig({
25
26
  Tailwindcss(),
26
27
  // @ts-ignore
27
28
  cloudflare(),
29
+ VueDevTools(),
28
30
  ],
29
31
  server: {
30
32
  // proxy: {
@@ -34,7 +34,7 @@
34
34
  "lint": "eslint .",
35
35
  "lint:fix": "eslint . --fix",
36
36
  "deploy": "wrangler deploy",
37
- "types": "wrangler types",
37
+ "cf-typegen": "wrangler types",
38
38
  "worker:dev": "wrangler dev"
39
39
  },
40
40
  "publishConfig": {
@@ -72,12 +72,10 @@ declare function add(a: number, b: number): number
72
72
  ### 使用场景
73
73
 
74
74
  1. **第三方库没有内置类型定义时**
75
-
76
75
  - 可以使用 DefinitelyTyped 的类型库(安装例如 `@types/lodash`);
77
76
  - 或者自己写 `.d.ts` 文件。
78
77
 
79
78
  2. **为已有的 JS 代码添加类型支持**
80
-
81
79
  - 特别是在从 JS 项目逐步迁移到 TS 时。
82
80
 
83
81
  3. **定义公共 API 接口或模块类型**