mvframe 1.1.35 → 1.1.39

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mvframe",
3
3
  "packageManager": "yarn@4.4.1",
4
- "version": "1.1.35",
4
+ "version": "1.1.39",
5
5
  "author": "matt avis",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -63,8 +63,7 @@
63
63
  "mvframe-notify": "scripts/notify-server.js"
64
64
  },
65
65
  "files": [
66
- "dist/*",
67
- "dist/assets/*",
66
+ "dist",
68
67
  "src/style/chip/mixin.scss",
69
68
  "scripts/build-host.js",
70
69
  "scripts/dev-vite-server.js",
@@ -12,7 +12,9 @@ const { execFileSync } = require("child_process");
12
12
  const root = path.resolve(__dirname, "..");
13
13
  const pnpPath = path.join(root, ".pnp.cjs");
14
14
 
15
- if (fs.existsSync(pnpPath)) {
15
+ // A raw `file:` install can copy the source checkout's PnP loader into the
16
+ // host package. Only activate it while commands are running in this checkout.
17
+ if (path.resolve(process.cwd()) === root && fs.existsSync(pnpPath)) {
16
18
  require(pnpPath).setup();
17
19
  }
18
20
 
@@ -7,7 +7,9 @@ const { createRequire } = require("module");
7
7
  const root = path.resolve(__dirname, "..");
8
8
  const pnpPath = path.join(root, ".pnp.cjs");
9
9
 
10
- if (fs.existsSync(pnpPath)) {
10
+ // A raw `file:` install can copy the source checkout's PnP loader into the
11
+ // host package. Only activate it while commands are running in this checkout.
12
+ if (path.resolve(process.cwd()) === root && fs.existsSync(pnpPath)) {
11
13
  require(pnpPath).setup();
12
14
  }
13
15