@vtj/local 0.8.9 → 0.8.10

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 CHANGED
@@ -12,6 +12,7 @@ export interface DevToolsOptions {
12
12
  devMode: boolean;
13
13
  uploader: string;
14
14
  packageName: string;
15
+ nodeModulesDir: string;
15
16
  hm?: string;
16
17
  }
17
18
  export interface LinkOptions {
package/dist/plugin.mjs CHANGED
@@ -153,13 +153,14 @@ export function createDevTools(options = {}) {
153
153
  devMode: false,
154
154
  uploader: "/uploader.json",
155
155
  packageName: "@vtj/pro",
156
+ nodeModulesDir: "node_modules",
156
157
  hm: "42f2469b4aa27c3f8978f634c0c19d24",
157
158
  ...options
158
159
  };
159
160
  const plugins = [aliasPlugin(opts)];
160
- const proPath = `node_modules/${opts.packageName}/dist`;
161
- const materialsPath1 = "node_modules/@vtj/materials/dist";
162
- const materialsPath2 = `node_modules/${opts.packageName}/${materialsPath1}`;
161
+ const proPath = `${opts.nodeModulesDir}/${opts.packageName}/dist`;
162
+ const materialsPath1 = `${opts.nodeModulesDir}/@vtj/materials/dist`;
163
+ const materialsPath2 = `${opts.nodeModulesDir}/${opts.packageName}/${materialsPath1}`;
163
164
  if (opts.copy) {
164
165
  const copyOptions = [];
165
166
  if (pathExistsSync(materialsPath1)) {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@vtj/local",
3
3
  "private": false,
4
- "version": "0.8.9",
4
+ "version": "0.8.10",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "formidable": "~3.5.1",
8
- "@vtj/coder": "~0.8.9",
9
- "@vtj/core": "~0.8.9",
8
+ "@vtj/core": "~0.8.10",
9
+ "@vtj/coder": "~0.8.10",
10
10
  "@vtj/node": "~0.8.2"
11
11
  },
12
12
  "devDependencies": {