@gant-lowcode/code-generator 3.2.5 → 3.2.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(code-generator): 修复版本发布后 package.json 中 workspace:\*版本声明问题
8
+
9
+ - 修复发布后 package.json 中保留 workspace:\* 依赖声明的问题 -确发布到 npm 的包使用正确的版本号而非 workspace引用
10
+
3
11
  ## 3.2.5
4
12
 
5
13
  ### Patch Changes
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Alibaba
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
File without changes
@@ -8,7 +8,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
8
8
 
9
9
  // src/standalone-loader.ts
10
10
  var fetchImpl = typeof window !== "undefined" ? window.fetch.bind(window) : __require("node-fetch");
11
- var packageVersion = "3.2.5";
11
+ var packageVersion = "3.2.6";
12
12
  var DEFAULT_WORKER_JS = `https://cdn.jsdelivr.net/npm/@gant-lowcode/code-generator@${packageVersion}/dist/standalone-worker.min.js`;
13
13
  var DEFAULT_TIMEOUT_IN_MS = 60 * 1e3;
14
14
  var workerJsCache = /* @__PURE__ */ new Map();
@@ -27,7 +27,7 @@ __export(standalone_loader_exports, {
27
27
  });
28
28
  module.exports = __toCommonJS(standalone_loader_exports);
29
29
  var fetchImpl = typeof window !== "undefined" ? window.fetch.bind(window) : require("node-fetch");
30
- var packageVersion = "3.2.5";
30
+ var packageVersion = "3.2.6";
31
31
  var DEFAULT_WORKER_JS = `https://cdn.jsdelivr.net/npm/@gant-lowcode/code-generator@${packageVersion}/dist/standalone-worker.min.js`;
32
32
  var DEFAULT_TIMEOUT_IN_MS = 60 * 1e3;
33
33
  var workerJsCache = /* @__PURE__ */ new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gant-lowcode/code-generator",
3
- "version": "3.2.5",
3
+ "version": "3.2.6",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/types/index.d.ts",
@@ -41,27 +41,6 @@
41
41
  "bin": {
42
42
  "code-generator": "bin/code-generator.js"
43
43
  },
44
- "scripts": {
45
- "start": "jest --watchAll",
46
- "build": "npm run clean && node scripts/build",
47
- "build:standalone": "node scripts/build-standalone",
48
- "clean": "rimraf es lib dist types generated demo coverage output test-cases/*/*/actual",
49
- "lint": "eslint --ext .jsx,.js,.ts,.tsx src/",
50
- "lintfix": "eslint --ext .jsx,.js,.ts,.tsx --fix src/",
51
- "check:types": "tsc --noEmit",
52
- "template": "node ./scripts/build-template-static-files.js",
53
- "test": "npm run test:normal && npm run test:standalone",
54
- "test:normal": "jest",
55
- "test:standalone": "node scripts/test-standalone",
56
- "test:cov": "jest --coverage",
57
- "test:update-snapshots": "cross-env UPDATE_EXPECTED=true jest -u",
58
- "analyze:standalone": "ANALYZE=true node scripts/build-standalone",
59
- "release:beta": "standard-version -t @gant-lowcode/code-generator\\@ -r patch --prerelease beta && git push --follow-tags && npm publish --tag beta",
60
- "release:patch": "standard-version -t @gant-lowcode/code-generator\\@ -r patch && git push --follow-tags && npm publish",
61
- "release:minor": "standard-version -t @gant-lowcode/code-generator\\@ -r minor && git push --follow-tags && npm publish",
62
- "prepublishOnly": "npm run build",
63
- "demo": "node bin/code-generator.js -i example-schema.json -o demo -s gant"
64
- },
65
44
  "standard-version": {
66
45
  "skip": {
67
46
  "changelog": true
@@ -122,10 +101,6 @@
122
101
  "@babel/runtime": "^7.12.5",
123
102
  "@babel/traverse": "^7.28.3",
124
103
  "@babel/types": "^7.28.2",
125
- "@gant-lowcode/lowcode-types": "workspace:*",
126
- "@gant-lowcode/lowcode-shared": "workspace:*",
127
- "@gant-lowcode/eslint-config": "workspace:*",
128
- "@gant-lowcode/typescript-config": "workspace:*",
129
104
  "@types/debug": "^4.1.7",
130
105
  "@types/fs-extra": "^9.0.12",
131
106
  "@types/glob": "^7.2.0",
@@ -158,10 +133,34 @@
158
133
  "qs": "^6.10.1",
159
134
  "semver": "^7.3.4",
160
135
  "short-uuid": "^3.1.1",
161
- "tslib": "^2.3.1"
136
+ "tslib": "^2.3.1",
137
+ "@gant-lowcode/lowcode-types": "3.0.5",
138
+ "@gant-lowcode/lowcode-shared": "3.0.5",
139
+ "@gant-lowcode/typescript-config": "2.0.5",
140
+ "@gant-lowcode/eslint-config": "2.0.5"
162
141
  },
163
142
  "publishConfig": {
164
143
  "access": "public",
165
144
  "registry": "https://registry.npmjs.org/"
145
+ },
146
+ "scripts": {
147
+ "start": "jest --watchAll",
148
+ "build": "npm run clean && node scripts/build",
149
+ "build:standalone": "node scripts/build-standalone",
150
+ "clean": "rimraf es lib dist types generated demo coverage output test-cases/*/*/actual",
151
+ "lint": "eslint --ext .jsx,.js,.ts,.tsx src/",
152
+ "lintfix": "eslint --ext .jsx,.js,.ts,.tsx --fix src/",
153
+ "check:types": "tsc --noEmit",
154
+ "template": "node ./scripts/build-template-static-files.js",
155
+ "test": "npm run test:normal && npm run test:standalone",
156
+ "test:normal": "jest",
157
+ "test:standalone": "node scripts/test-standalone",
158
+ "test:cov": "jest --coverage",
159
+ "test:update-snapshots": "cross-env UPDATE_EXPECTED=true jest -u",
160
+ "analyze:standalone": "ANALYZE=true node scripts/build-standalone",
161
+ "release:beta": "standard-version -t @gant-lowcode/code-generator\\@ -r patch --prerelease beta && git push --follow-tags && npm publish --tag beta",
162
+ "release:patch": "standard-version -t @gant-lowcode/code-generator\\@ -r patch && git push --follow-tags && npm publish",
163
+ "release:minor": "standard-version -t @gant-lowcode/code-generator\\@ -r minor && git push --follow-tags && npm publish",
164
+ "demo": "node bin/code-generator.js -i example-schema.json -o demo -s gant"
166
165
  }
167
- }
166
+ }