@pnpm/workspace.workspace-manifest-reader 1100.0.9 → 1100.1.1
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 +312 -0
- package/lib/index.js +2 -0
- package/package.json +5 -5
- package/lib/catalogs.d.ts +0 -18
- package/lib/catalogs.js +0 -45
- package/lib/errors/InvalidWorkspaceManifestError.d.ts +0 -4
- package/lib/errors/InvalidWorkspaceManifestError.js +0 -7
- package/lib/index.d.ts +0 -20
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
# @pnpm/workspace.read-manifest
|
|
2
|
+
|
|
3
|
+
## 1100.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies:
|
|
8
|
+
- @pnpm/types@1101.5.0
|
|
9
|
+
|
|
10
|
+
## 1100.1.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- Added `versioning.epics` to `pnpm-workspace.yaml`. An epic ties a group of member packages to a lead package, constraining every member's major version to a band derived from the lead's major: while the lead is on major `M`, members live in `M*100 … M*100+99`. Members move independently inside the band (patch, minor, and a `major` intent that stays in-band); a bump that would carry a member past the band ceiling is rejected until the lead advances its own major. When a release plan takes the lead to a new stable major, every member re-bases to the band floor in the same plan. Membership is matched with pnpm's package selectors — name globs, `./`-prefixed directory globs, and `!`-prefixed negations.
|
|
15
|
+
|
|
16
|
+
- Added native workspace release management [#12952](https://github.com/pnpm/pnpm/issues/12952): the new `pnpm change` command records change intents as changesets-compatible `.changeset/*.md` files (`pnpm change status` shows the pending release plan), and the bare `pnpm version -r` consumes them — bumping versions across the workspace with dependent propagation through `workspace:` ranges, fixed groups, a `maxBump` cap, `--filter` narrowing, and `--dry-run` — writing changelogs, and recording consumed intents in a committed ledger that keeps cherry-picks and merge-backs between release branches safe. Packages can be moved onto per-package release lanes with the new `pnpm lane <name> --filter <pkg>` command and back with `pnpm lane main --filter <pkg>` (`pnpm lane` shows the membership), releasing `X.Y.Z-lane.N` prereleases from the same runs that release stable versions of the packages on the main lane. Configuration lives under the new `versioning` key of `pnpm-workspace.yaml` (`fixed`, `ignore`, `maxBump`, `lanes`, `changelog`). When two workspace projects publish the same name, intent files, `versioning.lanes`, and `versioning.fixed`/`ignore` may reference a project by its workspace-relative directory path (e.g. `"./pnpm/npm/pnpm"`) — the one additive extension to the changesets format, applied automatically by `pnpm change`.
|
|
17
|
+
|
|
18
|
+
Release changelogs default to `registry` storage (`versioning.changelog.storage`): no `CHANGELOG.md` is committed. Each release's section is composed at publish time and packed into the published tarball on top of the previously published version's changelog, and the consumed change intents are garbage-collected by a later `pnpm version -r` only once the registry confirms the version is published with its section. Set `versioning.changelog.storage: repository` to keep committed `CHANGELOG.md` files instead.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies:
|
|
23
|
+
- @pnpm/types@1101.4.0
|
|
24
|
+
|
|
25
|
+
## 1100.0.9
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [852d537]
|
|
30
|
+
- @pnpm/error@1100.0.1
|
|
31
|
+
|
|
32
|
+
## 1100.0.8
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- Updated dependencies [681b593]
|
|
37
|
+
- @pnpm/types@1101.3.2
|
|
38
|
+
|
|
39
|
+
## 1100.0.7
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Updated dependencies [bf1b731]
|
|
44
|
+
- @pnpm/types@1101.3.1
|
|
45
|
+
|
|
46
|
+
## 1100.0.6
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- Updated dependencies [a017bf3]
|
|
51
|
+
- @pnpm/types@1101.3.0
|
|
52
|
+
|
|
53
|
+
## 1100.0.5
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- Updated dependencies [35d2355]
|
|
58
|
+
- @pnpm/types@1101.2.0
|
|
59
|
+
|
|
60
|
+
## 1100.0.4
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- Updated dependencies [64afc92]
|
|
65
|
+
- @pnpm/types@1101.1.1
|
|
66
|
+
|
|
67
|
+
## 1100.0.3
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- Updated dependencies [b61e268]
|
|
72
|
+
- @pnpm/types@1101.1.0
|
|
73
|
+
|
|
74
|
+
## 1100.0.2
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- f543b77: Reject `null` named catalogs in workspace manifests with `InvalidWorkspaceManifestError` instead of crashing with a raw `TypeError`.
|
|
79
|
+
|
|
80
|
+
## 1100.0.1
|
|
81
|
+
|
|
82
|
+
### Patch Changes
|
|
83
|
+
|
|
84
|
+
- Updated dependencies [ff28085]
|
|
85
|
+
- @pnpm/types@1101.0.0
|
|
86
|
+
|
|
87
|
+
## 1001.0.0
|
|
88
|
+
|
|
89
|
+
### Major Changes
|
|
90
|
+
|
|
91
|
+
- 491a84f: This package is now pure ESM.
|
|
92
|
+
- 7d2fd48: Node.js v18, 19, 20, and 21 support discontinued.
|
|
93
|
+
|
|
94
|
+
### Minor Changes
|
|
95
|
+
|
|
96
|
+
- 075aa99: Add support for a global YAML config file named `config.yaml`.
|
|
97
|
+
|
|
98
|
+
Now configurations are divided into 2 categories:
|
|
99
|
+
|
|
100
|
+
- Registry and auth settings which can be stored in INI files such as global `rc` and local `.npmrc`.
|
|
101
|
+
- pnpm-specific settings which can only be loaded from YAML files such as global `config.yaml` and local `pnpm-workspace.yaml`.
|
|
102
|
+
|
|
103
|
+
- 2b14c74: The `validateWorkspaceManifest` function is now exported and can be used to validate whether a workspace manifest object's schema is correct.
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- Updated dependencies [c55c614]
|
|
108
|
+
- Updated dependencies [76718b3]
|
|
109
|
+
- Updated dependencies [a8f016c]
|
|
110
|
+
- Updated dependencies [cc1b8e3]
|
|
111
|
+
- Updated dependencies [491a84f]
|
|
112
|
+
- Updated dependencies [075aa99]
|
|
113
|
+
- Updated dependencies [7d2fd48]
|
|
114
|
+
- Updated dependencies [efb48dc]
|
|
115
|
+
- Updated dependencies [50fbeca]
|
|
116
|
+
- Updated dependencies [cb367b9]
|
|
117
|
+
- Updated dependencies [7b1c189]
|
|
118
|
+
- Updated dependencies [8ffb1a7]
|
|
119
|
+
- Updated dependencies [05fb1ae]
|
|
120
|
+
- Updated dependencies [71de2b3]
|
|
121
|
+
- Updated dependencies [10bc391]
|
|
122
|
+
- Updated dependencies [831f574]
|
|
123
|
+
- Updated dependencies [2df8b71]
|
|
124
|
+
- Updated dependencies [15549a9]
|
|
125
|
+
- Updated dependencies [cc7c0d2]
|
|
126
|
+
- Updated dependencies [efb48dc]
|
|
127
|
+
- @pnpm/constants@1002.0.0
|
|
128
|
+
- @pnpm/types@1001.0.0
|
|
129
|
+
- @pnpm/error@1001.0.0
|
|
130
|
+
|
|
131
|
+
## 1000.2.5
|
|
132
|
+
|
|
133
|
+
### Patch Changes
|
|
134
|
+
|
|
135
|
+
- Updated dependencies [7c1382f]
|
|
136
|
+
- Updated dependencies [dee39ec]
|
|
137
|
+
- @pnpm/types@1000.9.0
|
|
138
|
+
|
|
139
|
+
## 1000.2.4
|
|
140
|
+
|
|
141
|
+
### Patch Changes
|
|
142
|
+
|
|
143
|
+
- Updated dependencies [6365bc4]
|
|
144
|
+
- @pnpm/constants@1001.3.1
|
|
145
|
+
- @pnpm/error@1000.0.5
|
|
146
|
+
|
|
147
|
+
## 1000.2.3
|
|
148
|
+
|
|
149
|
+
### Patch Changes
|
|
150
|
+
|
|
151
|
+
- Updated dependencies [e792927]
|
|
152
|
+
- @pnpm/types@1000.8.0
|
|
153
|
+
|
|
154
|
+
## 1000.2.2
|
|
155
|
+
|
|
156
|
+
### Patch Changes
|
|
157
|
+
|
|
158
|
+
- Updated dependencies [d1edf73]
|
|
159
|
+
- Updated dependencies [86b33e9]
|
|
160
|
+
- @pnpm/constants@1001.3.0
|
|
161
|
+
- @pnpm/error@1000.0.4
|
|
162
|
+
|
|
163
|
+
## 1000.2.1
|
|
164
|
+
|
|
165
|
+
### Patch Changes
|
|
166
|
+
|
|
167
|
+
- Updated dependencies [1a07b8f]
|
|
168
|
+
- Updated dependencies [1a07b8f]
|
|
169
|
+
- @pnpm/types@1000.7.0
|
|
170
|
+
- @pnpm/constants@1001.2.0
|
|
171
|
+
- @pnpm/error@1000.0.3
|
|
172
|
+
|
|
173
|
+
## 1000.2.0
|
|
174
|
+
|
|
175
|
+
### Minor Changes
|
|
176
|
+
|
|
177
|
+
- c8341cc: Added two new CLI options (`--save-catalog` and `--save-catalog-name=<name>`) to `pnpm add` to save new dependencies as catalog entries. `catalog:` or `catalog:<name>` will be added to `package.json` and the package specifier will be added to the `catalogs` or `catalog[<name>]` object in `pnpm-workspace.yaml` [#9425](https://github.com/pnpm/pnpm/issues/9425).
|
|
178
|
+
|
|
179
|
+
## 1000.1.5
|
|
180
|
+
|
|
181
|
+
### Patch Changes
|
|
182
|
+
|
|
183
|
+
- Updated dependencies [5ec7255]
|
|
184
|
+
- @pnpm/types@1000.6.0
|
|
185
|
+
|
|
186
|
+
## 1000.1.4
|
|
187
|
+
|
|
188
|
+
### Patch Changes
|
|
189
|
+
|
|
190
|
+
- Updated dependencies [5b73df1]
|
|
191
|
+
- @pnpm/types@1000.5.0
|
|
192
|
+
|
|
193
|
+
## 1000.1.3
|
|
194
|
+
|
|
195
|
+
### Patch Changes
|
|
196
|
+
|
|
197
|
+
- Updated dependencies [750ae7d]
|
|
198
|
+
- @pnpm/types@1000.4.0
|
|
199
|
+
|
|
200
|
+
## 1000.1.2
|
|
201
|
+
|
|
202
|
+
### Patch Changes
|
|
203
|
+
|
|
204
|
+
- Updated dependencies [5f7be64]
|
|
205
|
+
- Updated dependencies [5f7be64]
|
|
206
|
+
- @pnpm/types@1000.3.0
|
|
207
|
+
|
|
208
|
+
## 1000.1.1
|
|
209
|
+
|
|
210
|
+
### Patch Changes
|
|
211
|
+
|
|
212
|
+
- Updated dependencies [a5e4965]
|
|
213
|
+
- @pnpm/types@1000.2.1
|
|
214
|
+
|
|
215
|
+
## 1000.1.0
|
|
216
|
+
|
|
217
|
+
### Minor Changes
|
|
218
|
+
|
|
219
|
+
- 8fcc221: Extend WorkspaceManifest with PnpmSettings.
|
|
220
|
+
- 8fcc221: The `packages` field in `pnpm-workspace.yaml` became optional.
|
|
221
|
+
|
|
222
|
+
### Patch Changes
|
|
223
|
+
|
|
224
|
+
- Updated dependencies [8fcc221]
|
|
225
|
+
- @pnpm/types@1000.2.0
|
|
226
|
+
|
|
227
|
+
## 1000.0.2
|
|
228
|
+
|
|
229
|
+
### Patch Changes
|
|
230
|
+
|
|
231
|
+
- Updated dependencies [9a44e6c]
|
|
232
|
+
- @pnpm/constants@1001.1.0
|
|
233
|
+
- @pnpm/error@1000.0.2
|
|
234
|
+
|
|
235
|
+
## 1000.0.1
|
|
236
|
+
|
|
237
|
+
### Patch Changes
|
|
238
|
+
|
|
239
|
+
- Updated dependencies [d2e83b0]
|
|
240
|
+
- Updated dependencies [a76da0c]
|
|
241
|
+
- @pnpm/constants@1001.0.0
|
|
242
|
+
- @pnpm/error@1000.0.1
|
|
243
|
+
|
|
244
|
+
## 2.2.2
|
|
245
|
+
|
|
246
|
+
### Patch Changes
|
|
247
|
+
|
|
248
|
+
- Updated dependencies [19d5b51]
|
|
249
|
+
- Updated dependencies [8108680]
|
|
250
|
+
- Updated dependencies [c4f5231]
|
|
251
|
+
- @pnpm/constants@10.0.0
|
|
252
|
+
- @pnpm/error@6.0.3
|
|
253
|
+
|
|
254
|
+
## 2.2.1
|
|
255
|
+
|
|
256
|
+
### Patch Changes
|
|
257
|
+
|
|
258
|
+
- Updated dependencies [83681da]
|
|
259
|
+
- @pnpm/constants@9.0.0
|
|
260
|
+
- @pnpm/error@6.0.2
|
|
261
|
+
|
|
262
|
+
## 2.2.0
|
|
263
|
+
|
|
264
|
+
### Minor Changes
|
|
265
|
+
|
|
266
|
+
- 9c63679: The `readWorkspaceManifest` function now parses and validates [pnpm catalogs](https://github.com/pnpm/rfcs/pull/1) configs if present.
|
|
267
|
+
|
|
268
|
+
## 2.1.0
|
|
269
|
+
|
|
270
|
+
### Minor Changes
|
|
271
|
+
|
|
272
|
+
- 5d1ed94: The type definition for the `packages` field of the `WorkspaceManifest` is now non-null. The `readWorkspaceManifest` function expects this field to be present and throws an error otherwise.
|
|
273
|
+
|
|
274
|
+
## 2.0.1
|
|
275
|
+
|
|
276
|
+
### Patch Changes
|
|
277
|
+
|
|
278
|
+
- Updated dependencies [a7aef51]
|
|
279
|
+
- @pnpm/error@6.0.1
|
|
280
|
+
|
|
281
|
+
## 2.0.0
|
|
282
|
+
|
|
283
|
+
### Major Changes
|
|
284
|
+
|
|
285
|
+
- 43cdd87: Node.js v16 support dropped. Use at least Node.js v18.12.
|
|
286
|
+
|
|
287
|
+
### Patch Changes
|
|
288
|
+
|
|
289
|
+
- Updated dependencies [3ded840]
|
|
290
|
+
- Updated dependencies [c692f80]
|
|
291
|
+
- Updated dependencies [43cdd87]
|
|
292
|
+
- Updated dependencies [d381a60]
|
|
293
|
+
- @pnpm/error@6.0.0
|
|
294
|
+
- @pnpm/constants@8.0.0
|
|
295
|
+
|
|
296
|
+
## 1.0.2
|
|
297
|
+
|
|
298
|
+
### Patch Changes
|
|
299
|
+
|
|
300
|
+
- e8926e920: Minor refactors to improve the type safety of the workspace manifest validation logic in the `readWorkspaceManifest` function.
|
|
301
|
+
|
|
302
|
+
## 1.0.1
|
|
303
|
+
|
|
304
|
+
### Patch Changes
|
|
305
|
+
|
|
306
|
+
- e2a0c7272: Don't fail on an empty `pnpm-workspace.yaml` file [#7307](https://github.com/pnpm/pnpm/issues/7307).
|
|
307
|
+
|
|
308
|
+
## 1.0.0
|
|
309
|
+
|
|
310
|
+
### Major Changes
|
|
311
|
+
|
|
312
|
+
- 3f7e65e10: Initial release.
|
package/lib/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { WORKSPACE_MANIFEST_FILENAME } from '@pnpm/constants';
|
|
|
4
4
|
import { readYamlFile } from 'read-yaml-file';
|
|
5
5
|
import { assertValidWorkspaceManifestCatalog, assertValidWorkspaceManifestCatalogs, } from './catalogs.js';
|
|
6
6
|
import { InvalidWorkspaceManifestError } from './errors/InvalidWorkspaceManifestError.js';
|
|
7
|
+
import { assertValidWorkspaceManifestVersioning } from './versioning.js';
|
|
7
8
|
export async function readWorkspaceManifest(dir, cfgFileName = WORKSPACE_MANIFEST_FILENAME) {
|
|
8
9
|
const manifest = await readManifestRaw(dir, cfgFileName);
|
|
9
10
|
validateWorkspaceManifest(manifest);
|
|
@@ -40,6 +41,7 @@ export function validateWorkspaceManifest(manifest) {
|
|
|
40
41
|
assertValidWorkspaceManifestPackages(manifest);
|
|
41
42
|
assertValidWorkspaceManifestCatalog(manifest);
|
|
42
43
|
assertValidWorkspaceManifestCatalogs(manifest);
|
|
44
|
+
assertValidWorkspaceManifestVersioning(manifest);
|
|
43
45
|
checkWorkspaceManifestAssignability(manifest);
|
|
44
46
|
}
|
|
45
47
|
function assertValidWorkspaceManifestPackages(manifest) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/workspace.workspace-manifest-reader",
|
|
3
|
-
"version": "1100.
|
|
3
|
+
"version": "1100.1.1",
|
|
4
4
|
"description": "Reads a workspace manifest file",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"!*.map"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"
|
|
30
|
+
"@pnpm/constants": "1100.0.0",
|
|
31
31
|
"@pnpm/error": "1100.0.1",
|
|
32
|
-
"@pnpm/types": "1101.
|
|
33
|
-
"
|
|
32
|
+
"@pnpm/types": "1101.5.0",
|
|
33
|
+
"read-yaml-file": "^3.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@jest/globals": "30.4.1",
|
|
37
|
-
"@pnpm/workspace.workspace-manifest-reader": "1100.
|
|
37
|
+
"@pnpm/workspace.workspace-manifest-reader": "1100.1.1"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=22.13"
|
package/lib/catalogs.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface WorkspaceNamedCatalogs {
|
|
2
|
-
[catalogName: string]: WorkspaceCatalog;
|
|
3
|
-
}
|
|
4
|
-
export interface WorkspaceCatalog {
|
|
5
|
-
[dependencyName: string]: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function assertValidWorkspaceManifestCatalog(manifest: {
|
|
8
|
-
packages?: readonly string[];
|
|
9
|
-
catalog?: unknown;
|
|
10
|
-
}): asserts manifest is {
|
|
11
|
-
catalog?: WorkspaceCatalog;
|
|
12
|
-
};
|
|
13
|
-
export declare function assertValidWorkspaceManifestCatalogs(manifest: {
|
|
14
|
-
packages?: readonly string[];
|
|
15
|
-
catalogs?: unknown;
|
|
16
|
-
}): asserts manifest is {
|
|
17
|
-
catalogs?: WorkspaceNamedCatalogs;
|
|
18
|
-
};
|
package/lib/catalogs.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { InvalidWorkspaceManifestError } from './errors/InvalidWorkspaceManifestError.js';
|
|
2
|
-
export function assertValidWorkspaceManifestCatalog(manifest) {
|
|
3
|
-
if (manifest.catalog == null) {
|
|
4
|
-
return;
|
|
5
|
-
}
|
|
6
|
-
if (Array.isArray(manifest.catalog)) {
|
|
7
|
-
throw new InvalidWorkspaceManifestError('Expected catalog field to be an object, but found - array');
|
|
8
|
-
}
|
|
9
|
-
if (typeof manifest.catalog !== 'object') {
|
|
10
|
-
throw new InvalidWorkspaceManifestError(`Expected catalog field to be an object, but found - ${typeof manifest.catalog}`);
|
|
11
|
-
}
|
|
12
|
-
for (const [alias, specifier] of Object.entries(manifest.catalog)) {
|
|
13
|
-
if (typeof specifier !== 'string') {
|
|
14
|
-
throw new InvalidWorkspaceManifestError(`Invalid catalog entry for ${alias}. Expected string, but found: ${typeof specifier}`);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export function assertValidWorkspaceManifestCatalogs(manifest) {
|
|
19
|
-
if (manifest.catalogs == null) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
if (Array.isArray(manifest.catalogs)) {
|
|
23
|
-
throw new InvalidWorkspaceManifestError('Expected catalogs field to be an object, but found - array');
|
|
24
|
-
}
|
|
25
|
-
if (typeof manifest.catalogs !== 'object') {
|
|
26
|
-
throw new InvalidWorkspaceManifestError(`Expected catalogs field to be an object, but found - ${typeof manifest.catalogs}`);
|
|
27
|
-
}
|
|
28
|
-
for (const [catalogName, catalog] of Object.entries(manifest.catalogs)) {
|
|
29
|
-
if (Array.isArray(catalog)) {
|
|
30
|
-
throw new InvalidWorkspaceManifestError(`Expected named catalog ${catalogName} to be an object, but found - array`);
|
|
31
|
-
}
|
|
32
|
-
if (catalog === null) {
|
|
33
|
-
throw new InvalidWorkspaceManifestError(`Expected named catalog ${catalogName} to be an object, but found - null`);
|
|
34
|
-
}
|
|
35
|
-
if (typeof catalog !== 'object') {
|
|
36
|
-
throw new InvalidWorkspaceManifestError(`Expected named catalog ${catalogName} to be an object, but found - ${typeof catalog}`);
|
|
37
|
-
}
|
|
38
|
-
for (const [alias, specifier] of Object.entries(catalog)) {
|
|
39
|
-
if (typeof specifier !== 'string') {
|
|
40
|
-
throw new InvalidWorkspaceManifestError(`Catalog '${catalogName}' has invalid entry '${alias}'. Expected string specifier, but found: ${typeof specifier}`);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=catalogs.js.map
|
package/lib/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type GLOBAL_CONFIG_YAML_FILENAME, WORKSPACE_MANIFEST_FILENAME } from '@pnpm/constants';
|
|
2
|
-
import type { PnpmSettings } from '@pnpm/types';
|
|
3
|
-
import { type WorkspaceCatalog, type WorkspaceNamedCatalogs } from './catalogs.js';
|
|
4
|
-
export type ConfigFileName = typeof GLOBAL_CONFIG_YAML_FILENAME | typeof WORKSPACE_MANIFEST_FILENAME;
|
|
5
|
-
export interface WorkspaceManifest extends PnpmSettings {
|
|
6
|
-
packages: string[];
|
|
7
|
-
/**
|
|
8
|
-
* The default catalog. Package manifests may refer to dependencies in this
|
|
9
|
-
* definition through the `catalog:default` specifier or the `catalog:`
|
|
10
|
-
* shorthand.
|
|
11
|
-
*/
|
|
12
|
-
catalog?: WorkspaceCatalog;
|
|
13
|
-
/**
|
|
14
|
-
* A dictionary of named catalogs. Package manifests may refer to dependencies
|
|
15
|
-
* in this definition through the `catalog:<name>` specifier.
|
|
16
|
-
*/
|
|
17
|
-
catalogs?: WorkspaceNamedCatalogs;
|
|
18
|
-
}
|
|
19
|
-
export declare function readWorkspaceManifest(dir: string, cfgFileName?: ConfigFileName): Promise<WorkspaceManifest | undefined>;
|
|
20
|
-
export declare function validateWorkspaceManifest(manifest: unknown): asserts manifest is WorkspaceManifest | undefined;
|