@vtj/local 0.8.23 → 0.8.25
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 -1
- package/dist/plugin.mjs +2 -2
- package/dist/repository/plugins.mjs +3 -3
- package/package.json +5 -5
package/dist/plugin.d.ts
CHANGED
package/dist/plugin.mjs
CHANGED
|
@@ -148,7 +148,7 @@ export function parsePresetPlugins(options) {
|
|
|
148
148
|
const pkg = readJsonSync(resolve("./package.json"));
|
|
149
149
|
const { devDependencies, dependencies } = pkg || {};
|
|
150
150
|
const deps = Object.keys({ ...devDependencies, ...dependencies }).filter(
|
|
151
|
-
(name) => presetPlugins.some((regex) =>
|
|
151
|
+
(name) => presetPlugins.some((regex) => name.startsWith(regex))
|
|
152
152
|
);
|
|
153
153
|
const copies = [];
|
|
154
154
|
const staticDirs = [];
|
|
@@ -186,7 +186,7 @@ export function createDevTools(options = {}) {
|
|
|
186
186
|
uploader: "/uploader.json",
|
|
187
187
|
packageName: "@vtj/pro",
|
|
188
188
|
nodeModulesDir: "node_modules",
|
|
189
|
-
presetPlugins: [
|
|
189
|
+
presetPlugins: ["@newpearl/plugin-", "@vtj/plugin-"],
|
|
190
190
|
pluginNodeModulesDir: "node_modules",
|
|
191
191
|
extensionDir: "",
|
|
192
192
|
hm: "42f2469b4aa27c3f8978f634c0c19d24",
|
|
@@ -12,7 +12,7 @@ export class PluginRepository {
|
|
|
12
12
|
const { devDependencies, dependencies } = pkg || {};
|
|
13
13
|
const { presetPlugins } = opts;
|
|
14
14
|
this.deps = Object.keys({ ...devDependencies, ...dependencies }).filter(
|
|
15
|
-
(name) => presetPlugins.some((regex) =>
|
|
15
|
+
(name) => presetPlugins.some((regex) => name.startsWith(regex))
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
18
|
deps = [];
|
|
@@ -20,9 +20,9 @@ export class PluginRepository {
|
|
|
20
20
|
const { presetPlugins } = this.opts;
|
|
21
21
|
let name = dep;
|
|
22
22
|
for (const regex of presetPlugins) {
|
|
23
|
-
name = name.replace(regex, "
|
|
23
|
+
name = name.replace(regex, "x-");
|
|
24
24
|
}
|
|
25
|
-
return upperFirstCamelCase(
|
|
25
|
+
return upperFirstCamelCase(name);
|
|
26
26
|
}
|
|
27
27
|
getPlugins() {
|
|
28
28
|
const { vtj = {} } = this.pkg;
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/local",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.25",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"formidable": "~3.5.1",
|
|
8
|
-
"@vtj/
|
|
9
|
-
"@vtj/
|
|
10
|
-
"@vtj/
|
|
8
|
+
"@vtj/core": "~0.8.25",
|
|
9
|
+
"@vtj/node": "~0.8.2",
|
|
10
|
+
"@vtj/coder": "~0.8.25"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/formidable": "~3.4.5",
|
|
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.10"
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|