@vtj/local 0.8.20 → 0.8.22
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 +3 -2
- package/package.json +4 -4
package/dist/plugin.d.ts
CHANGED
package/dist/plugin.mjs
CHANGED
|
@@ -142,7 +142,7 @@ const aliasPlugin = function(options) {
|
|
|
142
142
|
export function parsePresetPlugins(options) {
|
|
143
143
|
const {
|
|
144
144
|
presetPlugins = [],
|
|
145
|
-
|
|
145
|
+
pluginNodeModulesDir = "node_modules",
|
|
146
146
|
staticBase
|
|
147
147
|
} = options;
|
|
148
148
|
const pkg = readJsonSync(resolve("./package.json"));
|
|
@@ -153,7 +153,7 @@ export function parsePresetPlugins(options) {
|
|
|
153
153
|
const copies = [];
|
|
154
154
|
const staticDirs = [];
|
|
155
155
|
for (const dep of deps) {
|
|
156
|
-
const dist = join(
|
|
156
|
+
const dist = join(pluginNodeModulesDir, dep, "dist");
|
|
157
157
|
if (pathExistsSync(dist)) {
|
|
158
158
|
copies.push({
|
|
159
159
|
from: dist,
|
|
@@ -187,6 +187,7 @@ export function createDevTools(options = {}) {
|
|
|
187
187
|
packageName: "@vtj/pro",
|
|
188
188
|
nodeModulesDir: "node_modules",
|
|
189
189
|
presetPlugins: [/^\@newpearl\/plugin\-/gi, /^\@vtj\/plugin\-/gi],
|
|
190
|
+
pluginNodeModulesDir: "node_modules",
|
|
190
191
|
hm: "42f2469b4aa27c3f8978f634c0c19d24",
|
|
191
192
|
...options
|
|
192
193
|
};
|
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.22",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"formidable": "~3.5.1",
|
|
8
|
-
"@vtj/coder": "~0.8.
|
|
9
|
-
"@vtj/core": "~0.8.
|
|
8
|
+
"@vtj/coder": "~0.8.22",
|
|
9
|
+
"@vtj/core": "~0.8.22",
|
|
10
10
|
"@vtj/node": "~0.8.2"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"unbuild": "~2.0.0",
|
|
15
15
|
"vite": "~5.2.6",
|
|
16
16
|
"vitest": "~1.5.0",
|
|
17
|
-
"@vtj/cli": "~0.8.
|
|
17
|
+
"@vtj/cli": "~0.8.9"
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|