@pnpm/installing.modules-yaml 1100.0.1 → 1100.0.3
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/README.md +4 -4
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# @pnpm/modules-yaml
|
|
1
|
+
# @pnpm/installing.modules-yaml
|
|
2
2
|
|
|
3
3
|
> Reads/writes \`node_modules/.modules.yaml\`
|
|
4
4
|
|
|
5
5
|
<!--@shields('npm')-->
|
|
6
|
-
[](https://
|
|
6
|
+
[](https://npmx.dev/package/@pnpm/installing.modules-yaml)
|
|
7
7
|
<!--/@-->
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
pnpm add @pnpm/modules-yaml
|
|
12
|
+
pnpm add @pnpm/installing.modules-yaml
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
17
|
```ts
|
|
18
|
-
import {write, read} from '@pnpm/modules-yaml'
|
|
18
|
+
import {write, read} from '@pnpm/installing.modules-yaml'
|
|
19
19
|
|
|
20
20
|
await write('node_modules', {
|
|
21
21
|
hoistedAliases: {},
|
package/lib/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ interface ModulesRaw {
|
|
|
25
25
|
injectedDeps?: Record<string, string[]>;
|
|
26
26
|
hoistedLocations?: Record<string, string[]>;
|
|
27
27
|
allowBuilds?: Record<string, boolean | string>;
|
|
28
|
+
virtualStoreOnly?: boolean;
|
|
28
29
|
}
|
|
29
30
|
export type Modules = Omit<ModulesRaw, 'ignoredBuilds'> & {
|
|
30
31
|
ignoredBuilds?: IgnoredBuilds;
|
package/lib/index.js
CHANGED
|
@@ -74,6 +74,9 @@ export async function writeModulesManifest(modulesDir, modules) {
|
|
|
74
74
|
if (saveModules.publicHoistPattern == null) {
|
|
75
75
|
delete saveModules.publicHoistPattern;
|
|
76
76
|
}
|
|
77
|
+
if (!saveModules.virtualStoreOnly) {
|
|
78
|
+
delete saveModules.virtualStoreOnly;
|
|
79
|
+
}
|
|
77
80
|
if ((saveModules.hoistedAliases == null) || (saveModules.hoistPattern == null) && (saveModules.publicHoistPattern == null)) {
|
|
78
81
|
delete saveModules.hoistedAliases;
|
|
79
82
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/installing.modules-yaml",
|
|
3
|
-
"version": "1100.0.
|
|
3
|
+
"version": "1100.0.3",
|
|
4
4
|
"description": "Reads/writes `node_modules/.modules.yaml`",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -28,14 +28,15 @@
|
|
|
28
28
|
"is-windows": "^1.0.2",
|
|
29
29
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
30
30
|
"read-yaml-file": "^3.0.0",
|
|
31
|
-
"@pnpm/fs.graceful-fs": "1100.
|
|
31
|
+
"@pnpm/fs.graceful-fs": "1100.1.0",
|
|
32
32
|
"@pnpm/types": "1101.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
+
"@jest/globals": "30.3.0",
|
|
35
36
|
"@types/is-windows": "^1.0.2",
|
|
36
37
|
"@types/ramda": "0.31.1",
|
|
37
38
|
"tempy": "3.0.0",
|
|
38
|
-
"@pnpm/installing.modules-yaml": "1100.0.
|
|
39
|
+
"@pnpm/installing.modules-yaml": "1100.0.3"
|
|
39
40
|
},
|
|
40
41
|
"engines": {
|
|
41
42
|
"node": ">=22.13"
|