@pnpm/workspace.workspace-manifest-writer 1100.2.0 → 1100.2.2
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/CHANGELOG.md +25 -0
- package/lib/index.js +2 -3
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @pnpm/workspace.manifest-writer
|
|
2
2
|
|
|
3
|
+
## 1100.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- pnpm now treats a missing global `config.yaml`, `auth.ini`, or other optional config file as absent in Node.js-compatible runtimes such as StackBlitz WebContainers. Commands such as `pnpm --version` failed there with `ENOENT` [#14030](https://github.com/pnpm/pnpm/issues/14030).
|
|
8
|
+
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- @pnpm/building.policy@1100.1.3
|
|
11
|
+
- @pnpm/config.parse-overrides@1100.1.6
|
|
12
|
+
- @pnpm/config.version-policy@1100.2.4
|
|
13
|
+
- @pnpm/lockfile.types@1100.1.3
|
|
14
|
+
- @pnpm/types@1102.1.1
|
|
15
|
+
- @pnpm/workspace.workspace-manifest-reader@1100.2.0
|
|
16
|
+
|
|
17
|
+
## 1100.2.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- pnpm now preserves scalar YAML anchors and aliases when editing `pnpm-workspace.yaml`. Removing the entry that defines an anchor keeps surviving aliases valid. Entries updated to different values are written separately [#8245](https://github.com/pnpm/pnpm/issues/8245).
|
|
22
|
+
|
|
23
|
+
- Updated dependencies:
|
|
24
|
+
- @pnpm/building.policy@1100.1.2
|
|
25
|
+
- @pnpm/lockfile.types@1100.1.2
|
|
26
|
+
- @pnpm/yaml.document-sync@1100.0.2
|
|
27
|
+
|
|
3
28
|
## 1100.2.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import util from 'node:util';
|
|
4
3
|
import { packageNameFromAllowBuildKey, UNDECIDED_ALLOW_BUILD } from '@pnpm/building.policy';
|
|
5
4
|
import { parsePkgAndParentSelector } from '@pnpm/config.parse-overrides';
|
|
6
5
|
import { mergePackageVersionSpecs, parseVersionPolicyRule } from '@pnpm/config.version-policy';
|
|
@@ -25,7 +24,7 @@ async function readManifestRaw(file) {
|
|
|
25
24
|
return (await fs.promises.readFile(file)).toString();
|
|
26
25
|
}
|
|
27
26
|
catch (err) {
|
|
28
|
-
if (
|
|
27
|
+
if (err != null && typeof err === 'object' && 'code' in err && err.code === 'ENOENT') {
|
|
29
28
|
return undefined;
|
|
30
29
|
}
|
|
31
30
|
throw err;
|
|
@@ -108,7 +107,7 @@ export async function updateWorkspaceManifest(dir, opts) {
|
|
|
108
107
|
return;
|
|
109
108
|
}
|
|
110
109
|
manifest = reorderRecursive(originalKeyOrder, manifest);
|
|
111
|
-
patchDocument(document, manifest);
|
|
110
|
+
patchDocument(document, manifest, { preserveScalarAliases: true });
|
|
112
111
|
propagateBlankLinesToNewPairs(document, originalKeyOrder?.keys ?? []);
|
|
113
112
|
await writeManifestFile(dir, fileName, document);
|
|
114
113
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/workspace.workspace-manifest-writer",
|
|
3
|
-
"version": "1100.2.
|
|
3
|
+
"version": "1100.2.2",
|
|
4
4
|
"description": "Updates the workspace manifest file",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -27,26 +27,26 @@
|
|
|
27
27
|
"!*.map"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@pnpm/building.policy": "1100.1.
|
|
30
|
+
"@pnpm/building.policy": "1100.1.3",
|
|
31
31
|
"@pnpm/catalogs.types": "1100.0.1",
|
|
32
|
-
"@pnpm/config.parse-overrides": "1100.1.
|
|
33
|
-
"@pnpm/config.version-policy": "1100.2.
|
|
32
|
+
"@pnpm/config.parse-overrides": "1100.1.6",
|
|
33
|
+
"@pnpm/config.version-policy": "1100.2.4",
|
|
34
34
|
"@pnpm/constants": "1102.0.0",
|
|
35
|
-
"@pnpm/lockfile.types": "1100.1.
|
|
35
|
+
"@pnpm/lockfile.types": "1100.1.3",
|
|
36
36
|
"@pnpm/text.ordinal-comparator": "1100.0.0",
|
|
37
|
-
"@pnpm/types": "1102.1.
|
|
38
|
-
"@pnpm/workspace.workspace-manifest-reader": "1100.
|
|
39
|
-
"@pnpm/yaml.document-sync": "1100.0.
|
|
37
|
+
"@pnpm/types": "1102.1.1",
|
|
38
|
+
"@pnpm/workspace.workspace-manifest-reader": "1100.2.0",
|
|
39
|
+
"@pnpm/yaml.document-sync": "1100.0.2",
|
|
40
40
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
41
41
|
"write-file-atomic": "^7.0.1",
|
|
42
|
-
"yaml": "^2.9.
|
|
42
|
+
"yaml": "^2.9.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@jest/globals": "30.4.1",
|
|
46
|
-
"@pnpm/prepare": "1100.0.
|
|
46
|
+
"@pnpm/prepare": "1100.0.32",
|
|
47
47
|
"@pnpm/prepare-temp-dir": "1100.0.1",
|
|
48
|
-
"@pnpm/workspace.projects-reader": "1101.0
|
|
49
|
-
"@pnpm/workspace.workspace-manifest-writer": "1100.2.
|
|
48
|
+
"@pnpm/workspace.projects-reader": "1101.1.0",
|
|
49
|
+
"@pnpm/workspace.workspace-manifest-writer": "1100.2.2",
|
|
50
50
|
"@types/ramda": "0.32.0",
|
|
51
51
|
"@types/write-file-atomic": "^4.0.3",
|
|
52
52
|
"read-yaml-file": "^3.0.0",
|