@vtj/local 0.8.44 → 0.8.46
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/plugin.d.ts +1 -0
- package/dist/plugin.mjs +17 -0
- package/package.json +3 -3
package/dist/plugin.d.ts
CHANGED
package/dist/plugin.mjs
CHANGED
|
@@ -189,6 +189,7 @@ export function createDevTools(options = {}) {
|
|
|
189
189
|
presetPlugins: ["@newpearl/plugin-", "@vtj/plugin-"],
|
|
190
190
|
pluginNodeModulesDir: "node_modules",
|
|
191
191
|
extensionDir: "",
|
|
192
|
+
materialDirs: [],
|
|
192
193
|
hm: "42f2469b4aa27c3f8978f634c0c19d24",
|
|
193
194
|
...options
|
|
194
195
|
};
|
|
@@ -196,6 +197,9 @@ export function createDevTools(options = {}) {
|
|
|
196
197
|
const proPath = `${opts.nodeModulesDir}/${opts.packageName}/dist`;
|
|
197
198
|
const materialsPath1 = `${opts.nodeModulesDir}/@vtj/materials/dist`;
|
|
198
199
|
const materialsPath2 = `${opts.nodeModulesDir}/${opts.packageName}/${materialsPath1}`;
|
|
200
|
+
const materialDirs = opts.materialDirs.map((n) => {
|
|
201
|
+
return `${opts.pluginNodeModulesDir}/${n}/dist`;
|
|
202
|
+
});
|
|
199
203
|
if (opts.copy) {
|
|
200
204
|
const copyOptions = [];
|
|
201
205
|
if (pathExistsSync(materialsPath1)) {
|
|
@@ -215,6 +219,13 @@ export function createDevTools(options = {}) {
|
|
|
215
219
|
"\n @vtj/materials is not installed, please install it first.\n"
|
|
216
220
|
);
|
|
217
221
|
}
|
|
222
|
+
materialDirs.forEach((form) => {
|
|
223
|
+
copyOptions.push({
|
|
224
|
+
from: form,
|
|
225
|
+
to: "@vtj/materials",
|
|
226
|
+
emptyDir: false
|
|
227
|
+
});
|
|
228
|
+
});
|
|
218
229
|
if (opts.extensionDir && pathExistsSync(opts.extensionDir)) {
|
|
219
230
|
copyOptions.push({
|
|
220
231
|
from: opts.extensionDir,
|
|
@@ -250,6 +261,12 @@ export function createDevTools(options = {}) {
|
|
|
250
261
|
"\n @vtj/materials is not installed, please install it first.\n"
|
|
251
262
|
);
|
|
252
263
|
}
|
|
264
|
+
materialDirs.forEach((dir) => {
|
|
265
|
+
staticOptions.push({
|
|
266
|
+
path: `${opts.staticBase}@vtj/materials`,
|
|
267
|
+
dir
|
|
268
|
+
});
|
|
269
|
+
});
|
|
253
270
|
if (opts.extensionDir && pathExistsSync(opts.extensionDir)) {
|
|
254
271
|
staticOptions.push({
|
|
255
272
|
path: `${opts.staticBase}@vtj/extension`,
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/local",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.46",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"formidable": "~3.5.1",
|
|
8
|
-
"@vtj/
|
|
9
|
-
"@vtj/
|
|
8
|
+
"@vtj/core": "~0.8.46",
|
|
9
|
+
"@vtj/coder": "~0.8.46",
|
|
10
10
|
"@vtj/node": "~0.8.5"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|