@vtj/local 0.9.15 → 0.9.16
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/service.mjs +3 -1
- package/package.json +4 -4
package/dist/service.mjs
CHANGED
@@ -51,12 +51,13 @@ export async function init(_body, opts) {
|
|
51
51
|
const id = vtj.id || pkg.name;
|
52
52
|
const name = vtj.name || pkg.description || upperFirstCamelCase(id);
|
53
53
|
const description = vtj.description || pkg.description || "";
|
54
|
+
const platform = vtj.platform || "web";
|
54
55
|
let dsl = repository.get(id);
|
55
56
|
const plugins = pluginPepository.getPlugins();
|
56
57
|
if (dsl) {
|
57
58
|
const blocks = (dsl.blocks || []).filter((n) => !n.preset);
|
58
59
|
dsl.blocks = plugins.concat(blocks);
|
59
|
-
Object.assign(dsl, { id, name, description });
|
60
|
+
Object.assign(dsl, { id, name, description, platform });
|
60
61
|
if (!isInit) {
|
61
62
|
isInit = true;
|
62
63
|
repository.save(id, dsl);
|
@@ -68,6 +69,7 @@ export async function init(_body, opts) {
|
|
68
69
|
id,
|
69
70
|
name,
|
70
71
|
description,
|
72
|
+
platform,
|
71
73
|
blocks: plugins
|
72
74
|
});
|
73
75
|
dsl = model.toDsl();
|
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/local",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.9.
|
4
|
+
"version": "0.9.16",
|
5
5
|
"type": "module",
|
6
6
|
"dependencies": {
|
7
7
|
"formidable": "~3.5.1",
|
8
|
-
"@vtj/coder": "~0.9.
|
9
|
-
"@vtj/
|
10
|
-
"@vtj/
|
8
|
+
"@vtj/coder": "~0.9.16",
|
9
|
+
"@vtj/core": "~0.9.16",
|
10
|
+
"@vtj/node": "~0.9.6"
|
11
11
|
},
|
12
12
|
"devDependencies": {
|
13
13
|
"@types/formidable": "~3.4.5",
|