@vlian/framework 1.0.4 → 1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlian/framework",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
5
  "packageManager": "pnpm@10.27.0",
6
6
  "description": "Secra Framework - 一个现代化的低代码框架",
@@ -11,7 +11,8 @@
11
11
  ".": {
12
12
  "types": "./dist/index.d.ts",
13
13
  "import": "./dist/index.js",
14
- "require": "./dist/index.cjs"
14
+ "require": "./dist/index.cjs",
15
+ "browser": "./dist/index.umd.js"
15
16
  },
16
17
  "./request": {
17
18
  "types": "./dist/request/index.d.ts",
@@ -24,7 +25,7 @@
24
25
  "LICENSE"
25
26
  ],
26
27
  "scripts": {
27
- "build": "npm run build:types && npm run build:esm && npm run build:cjs",
28
+ "build": "npm run build:types && npm run build:esm && npm run build:cjs && npm run build:umd",
28
29
  "build:types": "tsc --emitDeclarationOnly",
29
30
  "build:esm": "swc src -d dist --strip-leading-paths --config-file .swcrc",
30
31
  "build:cjs": "swc src -d dist-temp --strip-leading-paths --config-file .swcrc.cjs && node scripts/rename-cjs.js && rm -rf dist-temp",
@@ -40,7 +41,8 @@
40
41
  "test:run": "vitest run",
41
42
  "test:coverage": "vitest run --coverage",
42
43
  "lint": "eslint src --ext .ts,.tsx",
43
- "format": "prettier --write \"src/**/*.{ts,tsx,json,md}\""
44
+ "format": "prettier --write \"src/**/*.{ts,tsx,json,md}\"",
45
+ "build:umd": "rollup -c rollup.config.js"
44
46
  },
45
47
  "keywords": [
46
48
  "framework",
@@ -57,6 +59,9 @@
57
59
  "node": ">=16.0.0"
58
60
  },
59
61
  "devDependencies": {
62
+ "@rollup/plugin-commonjs": "^29.0.0",
63
+ "@rollup/plugin-node-resolve": "^16.0.3",
64
+ "@rollup/plugin-typescript": "^12.3.0",
60
65
  "@swc/cli": "^0.7.9",
61
66
  "@swc/core": "^1.15.8",
62
67
  "@testing-library/jest-dom": "^6.9.1",
@@ -73,6 +78,8 @@
73
78
  "react": "^19.2.3",
74
79
  "react-dom": "^19.2.3",
75
80
  "react-router-dom": "^7.12.0",
81
+ "rollup": "^4.55.1",
82
+ "rollup-plugin-peer-deps-external": "^2.2.4",
76
83
  "typescript": "^5.9.3",
77
84
  "vitest": "^4.0.16"
78
85
  },
@@ -93,5 +100,6 @@
93
100
  },
94
101
  "publishConfig": {
95
102
  "access": "public"
96
- }
103
+ },
104
+ "browser": "./dist/index.umd.js"
97
105
  }