@vtj/local 0.13.22 → 0.13.24
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.cjs +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
@@ -1200,7 +1200,7 @@ async function getExtension(_body, opts) {
|
|
1200
1200
|
};
|
1201
1201
|
return success(config);
|
1202
1202
|
}
|
1203
|
-
async function init(
|
1203
|
+
async function init(body, opts) {
|
1204
1204
|
const root = path.resolve("./");
|
1205
1205
|
const pkg = node.readJsonSync(path.resolve(root, "package.json"));
|
1206
1206
|
const pluginPepository = new PluginRepository(pkg, opts);
|
@@ -1209,6 +1209,7 @@ async function init(_body, opts) {
|
|
1209
1209
|
const name = vtj.name || pkg.description || node.upperFirstCamelCase(id);
|
1210
1210
|
const description = vtj.description || pkg.description || "";
|
1211
1211
|
const platform = vtj.platform || "web";
|
1212
|
+
const dependencies = body?.data?.dependencies || [];
|
1212
1213
|
_platform = platform;
|
1213
1214
|
const repository = new JsonRepository({
|
1214
1215
|
platform: _platform,
|
@@ -1224,6 +1225,10 @@ async function init(_body, opts) {
|
|
1224
1225
|
if (platform === "uniapp") {
|
1225
1226
|
dsl.uniConfig = await getUniConfig(dsl);
|
1226
1227
|
}
|
1228
|
+
if (dsl.dependencies?.length === 0 && dependencies.length > 0) {
|
1229
|
+
dsl.dependencies = dependencies;
|
1230
|
+
repository.save(id, dsl);
|
1231
|
+
}
|
1227
1232
|
if (!isInit) {
|
1228
1233
|
isInit = true;
|
1229
1234
|
repository.save(id, dsl);
|
@@ -1257,6 +1262,7 @@ async function init(_body, opts) {
|
|
1257
1262
|
name,
|
1258
1263
|
description,
|
1259
1264
|
platform,
|
1265
|
+
dependencies,
|
1260
1266
|
blocks: plugins,
|
1261
1267
|
pages: [launchPage],
|
1262
1268
|
homepage: launchPage.id
|
package/dist/index.mjs
CHANGED
@@ -1193,7 +1193,7 @@ async function getExtension(_body, opts) {
|
|
1193
1193
|
};
|
1194
1194
|
return success(config);
|
1195
1195
|
}
|
1196
|
-
async function init(
|
1196
|
+
async function init(body, opts) {
|
1197
1197
|
const root = resolve("./");
|
1198
1198
|
const pkg = readJsonSync(resolve(root, "package.json"));
|
1199
1199
|
const pluginPepository = new PluginRepository(pkg, opts);
|
@@ -1202,6 +1202,7 @@ async function init(_body, opts) {
|
|
1202
1202
|
const name = vtj.name || pkg.description || upperFirstCamelCase(id);
|
1203
1203
|
const description = vtj.description || pkg.description || "";
|
1204
1204
|
const platform = vtj.platform || "web";
|
1205
|
+
const dependencies = body?.data?.dependencies || [];
|
1205
1206
|
_platform = platform;
|
1206
1207
|
const repository = new JsonRepository({
|
1207
1208
|
platform: _platform,
|
@@ -1217,6 +1218,10 @@ async function init(_body, opts) {
|
|
1217
1218
|
if (platform === "uniapp") {
|
1218
1219
|
dsl.uniConfig = await getUniConfig(dsl);
|
1219
1220
|
}
|
1221
|
+
if (dsl.dependencies?.length === 0 && dependencies.length > 0) {
|
1222
|
+
dsl.dependencies = dependencies;
|
1223
|
+
repository.save(id, dsl);
|
1224
|
+
}
|
1220
1225
|
if (!isInit) {
|
1221
1226
|
isInit = true;
|
1222
1227
|
repository.save(id, dsl);
|
@@ -1250,6 +1255,7 @@ async function init(_body, opts) {
|
|
1250
1255
|
name,
|
1251
1256
|
description,
|
1252
1257
|
platform,
|
1258
|
+
dependencies,
|
1253
1259
|
blocks: plugins,
|
1254
1260
|
pages: [launchPage],
|
1255
1261
|
homepage: launchPage.id
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/local",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.13.
|
4
|
+
"version": "0.13.24",
|
5
5
|
"type": "module",
|
6
6
|
"keywords": [
|
7
7
|
"低代码引擎",
|
@@ -22,10 +22,10 @@
|
|
22
22
|
"license": "MIT",
|
23
23
|
"dependencies": {
|
24
24
|
"formidable": "~3.5.1",
|
25
|
-
"@vtj/coder": "~0.13.
|
26
|
-
"@vtj/core": "~0.13.
|
27
|
-
"@vtj/
|
28
|
-
"@vtj/
|
25
|
+
"@vtj/coder": "~0.13.24",
|
26
|
+
"@vtj/core": "~0.13.24",
|
27
|
+
"@vtj/node": "~0.12.5",
|
28
|
+
"@vtj/parser": "~0.13.24"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"@types/formidable": "~3.4.5",
|