@unmagic/vms 0.0.4 → 0.1.0

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/dist/index.js CHANGED
@@ -1,14 +1,10 @@
1
- import dotenv from 'dotenv-flow';
2
-
1
+ import dotenv from "dotenv-flow";
2
+ //#region src/index.ts
3
3
  async function runVMS(options) {
4
- dotenv.config({ node_env: options.mode });
5
- const { dev, prod } = await import('./cli-R8YB9UUi.js');
6
- if (options.mode === 'production') {
7
- return prod(options);
8
- }
9
- else {
10
- return dev();
11
- }
4
+ dotenv.config({ node_env: options.mode });
5
+ const { dev, prod } = await import("./cli-BtVCp04t.js");
6
+ if (options.mode === "production") return prod(options);
7
+ else return dev();
12
8
  }
13
-
9
+ //#endregion
14
10
  export { runVMS };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unmagic/vms",
3
- "version": "0.0.4",
3
+ "version": "0.1.0",
4
4
  "description": "基于 @unmagic/vue-mini 的Vue3 单文件组件构建工具",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,12 +26,9 @@
26
26
  "bin"
27
27
  ],
28
28
  "peerDependencies": {
29
- "@unmagic/vue-mini": ">=1.0.2"
29
+ "@unmagic/vue-mini": ">=1.0.3"
30
30
  },
31
31
  "devDependencies": {
32
- "@rollup/plugin-alias": "^6.0.0",
33
- "@rollup/plugin-json": "^6.1.0",
34
- "@rollup/plugin-typescript": "^12.3.0",
35
32
  "@types/babel__code-frame": "^7.27.0",
36
33
  "@types/babel__core": "^7.20.5",
37
34
  "@types/babel__generator": "^7.27.0",
@@ -64,10 +61,6 @@
64
61
  "@babel/runtime": "^7.29.2",
65
62
  "@babel/traverse": "^7.29.0",
66
63
  "@babel/types": "^7.29.0",
67
- "@rollup/plugin-commonjs": "^29.0.2",
68
- "@rollup/plugin-node-resolve": "^16.0.3",
69
- "@rollup/plugin-replace": "^6.0.3",
70
- "@rollup/plugin-terser": "^1.0.0",
71
64
  "@vue/compiler-core": "3.5.33",
72
65
  "@vue/compiler-dom": "3.5.33",
73
66
  "@vue/compiler-sfc": "3.5.33",
@@ -82,15 +75,15 @@
82
75
  "kolorist": "^1.8.0",
83
76
  "local-pkg": "^1.1.2",
84
77
  "miniprogram-ci": "^2.1.31",
85
- "rollup": "^4.60.3",
78
+ "rolldown": "^1.0.0",
86
79
  "terser": "^5.46.2",
87
80
  "tinycolor2": "^1.6.0"
88
81
  },
89
82
  "scripts": {
90
- "example:dev": "npm run vms:build && cd example && npm run dev",
83
+ "example:dev": "cd example && npm run dev",
91
84
  "example:build": "cd example && npm run build",
92
85
  "example:inspect": "cd example && npm run inspect:vms",
93
- "vms:build": "rollup --config rollup.config.js",
86
+ "vms:build": "rolldown --config rolldown.config.js",
94
87
  "test": "vitest",
95
88
  "test:run": "vitest run",
96
89
  "test:ui": "vitest --ui",