@wtf/release-npm 3.0.0 → 3.1.0
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 +27 -12
- package/dist/check.d.ts +0 -1
- package/dist/check.d.ts.map +1 -1
- package/dist/check.js.map +1 -1
- package/dist/ecosystem.d.ts +0 -1
- package/dist/ecosystem.d.ts.map +1 -1
- package/dist/ecosystem.js.map +1 -1
- package/dist/errors.d.ts +11 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +12 -2
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/manifests.d.ts +0 -1
- package/dist/manifests.d.ts.map +1 -1
- package/dist/manifests.js.map +1 -1
- package/dist/placeholder.d.ts +168 -0
- package/dist/placeholder.d.ts.map +1 -0
- package/dist/placeholder.js +355 -0
- package/dist/placeholder.js.map +1 -0
- package/dist/prepare.d.ts.map +1 -1
- package/dist/prepare.js +0 -1
- package/dist/prepare.js.map +1 -1
- package/dist/publishers.d.ts.map +1 -1
- package/dist/publishers.js +4 -1
- package/dist/publishers.js.map +1 -1
- package/dist/registry.d.ts +283 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +314 -0
- package/dist/registry.js.map +1 -0
- package/dist/release.d.ts.map +1 -1
- package/dist/release.js +0 -1
- package/dist/release.js.map +1 -1
- package/dist/smoke.d.ts +14 -1
- package/dist/smoke.d.ts.map +1 -1
- package/dist/smoke.js +9 -1
- package/dist/smoke.js.map +1 -1
- package/dist/trust.d.ts +246 -0
- package/dist/trust.d.ts.map +1 -0
- package/dist/trust.js +343 -0
- package/dist/trust.js.map +1 -0
- package/dist/workspace.d.ts +0 -1
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js.map +1 -1
- package/package.json +21 -7
package/dist/trust.js
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { NpmError } from "./errors.js";
|
|
2
|
+
import { PLACEHOLDER_VERSION } from "./placeholder.js";
|
|
3
|
+
import { failureOf, npmCommandOf, onTerminal, readFailureOf, readNpm, requireNpm, waitForPackage, writeFailureOf } from "./registry.js";
|
|
4
|
+
/** How many trusted publishers npm's registry holds of a package at once. */
|
|
5
|
+
export const TRUST_LIMIT = 10;
|
|
6
|
+
/** The permission of a trusted publisher to publish, as npm lists it. */
|
|
7
|
+
export const PUBLISH_PERMISSION = 'createPackage';
|
|
8
|
+
/**
|
|
9
|
+
* The trusted publishers of the output of `npm trust list --json`: a JSON object of each, pretty,
|
|
10
|
+
* one after another, and nothing of a package of none.
|
|
11
|
+
*
|
|
12
|
+
* @param text - What npm wrote.
|
|
13
|
+
* @returns The publishers, in order.
|
|
14
|
+
*/
|
|
15
|
+
export function parseTrustList(text) {
|
|
16
|
+
const trimmed = text.trim();
|
|
17
|
+
if (trimmed === '')
|
|
18
|
+
return [];
|
|
19
|
+
// An object ends `}` at the start of its line, and the next starts `{` at the start of its own.
|
|
20
|
+
const list = JSON.parse(`[${trimmed.replace(/\}\s*\n\s*\{/g, '},{')}]`);
|
|
21
|
+
return list.flatMap((each) => {
|
|
22
|
+
if (typeof each !== 'object' || each === null)
|
|
23
|
+
return [];
|
|
24
|
+
const record = each;
|
|
25
|
+
const field = (key) => (typeof record[key] === 'string' ? record[key] : undefined);
|
|
26
|
+
const id = field('id');
|
|
27
|
+
const type = field('type');
|
|
28
|
+
if (id === undefined || type === undefined)
|
|
29
|
+
return [];
|
|
30
|
+
const permissions = Array.isArray(record['permissions'])
|
|
31
|
+
? record['permissions'].filter((one) => typeof one === 'string')
|
|
32
|
+
: undefined;
|
|
33
|
+
return [
|
|
34
|
+
{
|
|
35
|
+
id,
|
|
36
|
+
type,
|
|
37
|
+
file: field('file'),
|
|
38
|
+
project: field('project'),
|
|
39
|
+
repository: field('repository'),
|
|
40
|
+
environment: field('environment'),
|
|
41
|
+
permissions
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The trusted publishers of the package `name`, by `npm trust list <name> --json`, read and not
|
|
48
|
+
* shown: `undefined` of a package npm's registry does not hold. Throws the error of a question of
|
|
49
|
+
* npm that failed, as `ENPMLOGIN` of no login: npm lists them to an owner of the package alone.
|
|
50
|
+
*
|
|
51
|
+
* @param name - The name of the package.
|
|
52
|
+
* @param context - The platform npm runs by.
|
|
53
|
+
* @returns The publishers, or `undefined`.
|
|
54
|
+
*/
|
|
55
|
+
export async function trustsOf(name, context) {
|
|
56
|
+
const read = await readNpm(name, ['trust', 'list', name, '--json'], context);
|
|
57
|
+
if (read.notFound)
|
|
58
|
+
return undefined;
|
|
59
|
+
if (read.code !== 0)
|
|
60
|
+
throw readFailureOf(`npm trust list ${name}`, read);
|
|
61
|
+
try {
|
|
62
|
+
return parseTrustList(read.stdout);
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
throw new NpmError('ENPMREAD', `npm trust list ${name} gave no JSON: ${read.stdout.trim().split('\n').slice(0, 5).join(' ')}`, 'Run it by hand to see why, fix it, and run this again.');
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/** The project or the repository of a publisher, as npm names either, lower-cased to compare. */
|
|
69
|
+
const repoKey = (type, repo) => `${type}\0${(repo ?? '').toLowerCase()}`;
|
|
70
|
+
/** The key of a repo, of its provider and its project or repository. */
|
|
71
|
+
const keyOfRepo = (repo) => repo.provider === 'gitlab' ? repoKey('gitlab', repo.project) : repoKey('github', repo.repository);
|
|
72
|
+
/** The key of a trusted publisher npm lists, of its type and its project or repository. */
|
|
73
|
+
const keyOfTrust = (trust) => repoKey(trust.type, trust.type === 'gitlab' ? trust.project : trust.repository);
|
|
74
|
+
/**
|
|
75
|
+
* Whether the trusted publisher `trust` npm lists is `publisher`: of the same type, project or
|
|
76
|
+
* repository, file and environment, or both of none.
|
|
77
|
+
*
|
|
78
|
+
* @param trust - The publisher npm lists.
|
|
79
|
+
* @param publisher - The publisher to compare.
|
|
80
|
+
* @returns Whether they are the same.
|
|
81
|
+
*/
|
|
82
|
+
export function isSameTrust(trust, publisher) {
|
|
83
|
+
return (keyOfTrust(trust) === keyOfRepo(publisher) &&
|
|
84
|
+
trust.file === publisher.file &&
|
|
85
|
+
(trust.environment ?? '') === (publisher.environment ?? ''));
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Whether the trusted publisher `trust` npm lists is of one of `repos`: of its provider, and its
|
|
89
|
+
* project or repository, of any file or environment.
|
|
90
|
+
*
|
|
91
|
+
* @param trust - The publisher npm lists.
|
|
92
|
+
* @param repos - The repos, as of the repo a command runs in.
|
|
93
|
+
* @returns Whether it is of one of them.
|
|
94
|
+
*/
|
|
95
|
+
export const isRepoTrust = (trust, repos) => repos.some((repo) => keyOfRepo(repo) === keyOfTrust(trust));
|
|
96
|
+
/**
|
|
97
|
+
* The arguments of `npm trust` that add `publisher` to the package `name`, allowed to publish, of
|
|
98
|
+
* no question: `npm trust gitlab <name> --file <file> --project <project>` or
|
|
99
|
+
* `npm trust github <name> --file <file> --repository <repository>`, and `--environment` of one.
|
|
100
|
+
*
|
|
101
|
+
* @param name - The name of the package.
|
|
102
|
+
* @param publisher - The publisher.
|
|
103
|
+
* @returns The arguments of npm.
|
|
104
|
+
*/
|
|
105
|
+
export function trustArgs(name, publisher) {
|
|
106
|
+
return [
|
|
107
|
+
'trust',
|
|
108
|
+
publisher.provider,
|
|
109
|
+
name,
|
|
110
|
+
'--file',
|
|
111
|
+
publisher.file,
|
|
112
|
+
...(publisher.provider === 'gitlab'
|
|
113
|
+
? ['--project', publisher.project]
|
|
114
|
+
: ['--repository', publisher.repository]),
|
|
115
|
+
...(publisher.environment === undefined ? [] : ['--environment', publisher.environment]),
|
|
116
|
+
'--allow-publish',
|
|
117
|
+
'--yes'
|
|
118
|
+
];
|
|
119
|
+
}
|
|
120
|
+
/** The failure of a package npm does not hold, which takes a placeholder first. */
|
|
121
|
+
const notOnNpm = (name) => ({
|
|
122
|
+
code: 'ENOTONNPM',
|
|
123
|
+
message: `npm holds no package ${name}, and sets a trusted publisher on a package it holds alone.`,
|
|
124
|
+
details: `Publish its placeholder first (\`placeholder add ${name}\`), then this again; of a package published a moment ago, which npm may not show for a few minutes, wait for it (\`--wait 300\`).`
|
|
125
|
+
});
|
|
126
|
+
/**
|
|
127
|
+
* The publishers of `publishers` that differ, the first of each that is the same, as of a publisher
|
|
128
|
+
* named twice.
|
|
129
|
+
*/
|
|
130
|
+
const distinct = (publishers) => publishers.filter((publisher, index) => publishers.findIndex((other) => keyOfRepo(other) === keyOfRepo(publisher) &&
|
|
131
|
+
other.file === publisher.file &&
|
|
132
|
+
(other.environment ?? '') === (publisher.environment ?? '')) === index);
|
|
133
|
+
/**
|
|
134
|
+
* Adds each publisher of `options` to each package, allowed to publish, by
|
|
135
|
+
* `npm trust gitlab|github … --allow-publish --yes` on the terminal of the context, which asks for
|
|
136
|
+
* two-factor authentication there: each once, as each try may ask again. A publisher the package
|
|
137
|
+
* has, of the same type, project or repository, file and environment, is `exists`; another
|
|
138
|
+
* publisher of the package is kept, and the new one added beside it, up to {@link TRUST_LIMIT} of
|
|
139
|
+
* them, past which each is `ETRUSTLIMIT`. A package npm does not hold is `ENOTONNPM`, as it takes a
|
|
140
|
+
* placeholder first; `wait` waits for one npm does not show yet. A dry run adds nothing, and gives
|
|
141
|
+
* the command of each. Throws `ENPMVERSION` of an npm older than `TRUST_NPM` of `./registry`, before any
|
|
142
|
+
* package.
|
|
143
|
+
*
|
|
144
|
+
* @param targets - The packages, as `targetsOf` of `./registry` gives them.
|
|
145
|
+
* @param options - The publishers, the wait for a package, and the limit of npm.
|
|
146
|
+
* @param context - The folder of the repo, the platform, the terminal, and whether it is a dry run.
|
|
147
|
+
* @returns A record of each package, in order.
|
|
148
|
+
*/
|
|
149
|
+
export async function* addTrust(targets, options, context) {
|
|
150
|
+
await requireNpm(context);
|
|
151
|
+
const publishers = distinct(options.publishers);
|
|
152
|
+
const limit = options.limit ?? TRUST_LIMIT;
|
|
153
|
+
for await (const target of targets) {
|
|
154
|
+
if (target.status !== 'ready') {
|
|
155
|
+
yield target.status === 'failed' ? { ...target, publishers: [] } : target;
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
const { name } = target;
|
|
159
|
+
let trusts;
|
|
160
|
+
let placeholder = false;
|
|
161
|
+
try {
|
|
162
|
+
const view = await waitForPackage(name, options.wait ?? 0, context);
|
|
163
|
+
placeholder = view?.versions.includes(PLACEHOLDER_VERSION) ?? false;
|
|
164
|
+
trusts = view === undefined ? undefined : await trustsOf(name, context);
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
yield { name, status: 'failed', error: failureOf(error), publishers: [] };
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
if (trusts === undefined) {
|
|
171
|
+
yield { name, status: 'failed', error: notOnNpm(name), publishers: [] };
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
const held = trusts;
|
|
175
|
+
let room = limit - held.length;
|
|
176
|
+
const outcomes = [];
|
|
177
|
+
for (const publisher of publishers) {
|
|
178
|
+
const there = held.find((trust) => isSameTrust(trust, publisher));
|
|
179
|
+
if (there !== undefined) {
|
|
180
|
+
outcomes.push({ publisher, status: 'exists', id: there.id });
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
if (room <= 0) {
|
|
184
|
+
outcomes.push({
|
|
185
|
+
publisher,
|
|
186
|
+
status: 'failed',
|
|
187
|
+
error: {
|
|
188
|
+
code: 'ETRUSTLIMIT',
|
|
189
|
+
message: `${name} would have more than ${limit} trusted publishers, the most npm holds of a package: it has ${held.length}.`,
|
|
190
|
+
details: `Remove one it needs no more first (\`trust remove ${name} --id <id>\`; \`trust list ${name}\` lists their ids), then this again.`
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
room--;
|
|
196
|
+
const args = trustArgs(name, publisher);
|
|
197
|
+
if (context.dryRun) {
|
|
198
|
+
outcomes.push({ publisher, status: 'dry-run', command: npmCommandOf(name, args) });
|
|
199
|
+
continue;
|
|
200
|
+
}
|
|
201
|
+
try {
|
|
202
|
+
// oxlint-disable-next-line no-await-in-loop -- one publisher after another, each asked once
|
|
203
|
+
const code = await onTerminal(name, args, context);
|
|
204
|
+
if (code !== 0)
|
|
205
|
+
throw writeFailureOf(`npm trust ${publisher.provider} ${name}`, code);
|
|
206
|
+
outcomes.push({ publisher, status: 'added' });
|
|
207
|
+
}
|
|
208
|
+
catch (error) {
|
|
209
|
+
outcomes.push({ publisher, status: 'failed', error: failureOf(error) });
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
const failed = outcomes.find((outcome) => outcome.status === 'failed');
|
|
213
|
+
if (failed?.error !== undefined)
|
|
214
|
+
yield { name, status: 'failed', error: failed.error, publishers: outcomes };
|
|
215
|
+
else
|
|
216
|
+
yield {
|
|
217
|
+
name,
|
|
218
|
+
status: outcomes.some((outcome) => outcome.status === 'added')
|
|
219
|
+
? 'added'
|
|
220
|
+
: outcomes.some((outcome) => outcome.status === 'dry-run')
|
|
221
|
+
? 'dry-run'
|
|
222
|
+
: 'exists',
|
|
223
|
+
publishers: outcomes,
|
|
224
|
+
placeholder
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* The trusted publishers of each package, as `npm trust list --json` lists them, each marked as of
|
|
230
|
+
* one of `repos`, the repo's, or not. A package npm does not hold is `absent`. Throws
|
|
231
|
+
* `ENPMVERSION` of an npm older than `TRUST_NPM` of `./registry`, before any package.
|
|
232
|
+
*
|
|
233
|
+
* @param targets - The packages, as `targetsOf` of `./registry` gives them.
|
|
234
|
+
* @param repos - The repos whose publishers are the repo's.
|
|
235
|
+
* @param context - The platform npm runs by.
|
|
236
|
+
* @returns A record of each package, in order.
|
|
237
|
+
*/
|
|
238
|
+
export async function* listTrust(targets, repos, context) {
|
|
239
|
+
await requireNpm(context);
|
|
240
|
+
for await (const target of targets) {
|
|
241
|
+
if (target.status !== 'ready') {
|
|
242
|
+
yield target;
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
const { name } = target;
|
|
246
|
+
try {
|
|
247
|
+
const trusts = await trustsOf(name, context);
|
|
248
|
+
yield trusts === undefined
|
|
249
|
+
? { name, status: 'absent' }
|
|
250
|
+
: {
|
|
251
|
+
name,
|
|
252
|
+
status: 'listed',
|
|
253
|
+
publishers: trusts.map((trust) => Object.assign({}, trust, { ours: isRepoTrust(trust, repos) }))
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
catch (error) {
|
|
257
|
+
yield { name, status: 'failed', error: failureOf(error) };
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Removes the trusted publishers of each package of one of the repos of `options`, the repo's, or,
|
|
263
|
+
* of `ids`, exactly those, by `npm trust revoke --id <id> <name>` on the terminal of the context,
|
|
264
|
+
* which asks for two-factor authentication there; no other. An id the package does not list fails
|
|
265
|
+
* it, `ETRUSTID`, and removes nothing of it. A package of none to remove is `none`. A dry run
|
|
266
|
+
* removes nothing, and gives the command of each. Throws `ENPMVERSION` of an npm older than
|
|
267
|
+
* `TRUST_NPM` of `./registry`, before any package.
|
|
268
|
+
*
|
|
269
|
+
* @param targets - The packages, as `targetsOf` of `./registry` gives them.
|
|
270
|
+
* @param options - The repos whose publishers to remove, or the ids of those to remove.
|
|
271
|
+
* @param context - The folder of the repo, the platform, the terminal, and whether it is a dry run.
|
|
272
|
+
* @returns A record of each package, in order.
|
|
273
|
+
*/
|
|
274
|
+
export async function* removeTrust(targets, options, context) {
|
|
275
|
+
await requireNpm(context);
|
|
276
|
+
const { ids, repos } = options;
|
|
277
|
+
for await (const target of targets) {
|
|
278
|
+
if (target.status !== 'ready') {
|
|
279
|
+
yield target.status === 'failed' ? { ...target, publishers: [] } : target;
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
const { name } = target;
|
|
283
|
+
let trusts;
|
|
284
|
+
try {
|
|
285
|
+
trusts = await trustsOf(name, context);
|
|
286
|
+
}
|
|
287
|
+
catch (error) {
|
|
288
|
+
yield { name, status: 'failed', error: failureOf(error), publishers: [] };
|
|
289
|
+
continue;
|
|
290
|
+
}
|
|
291
|
+
if (trusts === undefined) {
|
|
292
|
+
yield { name, status: 'none', held: false };
|
|
293
|
+
continue;
|
|
294
|
+
}
|
|
295
|
+
const held = trusts;
|
|
296
|
+
const unknown = (ids ?? []).filter((id) => !held.some((trust) => trust.id === id));
|
|
297
|
+
if (unknown.length > 0) {
|
|
298
|
+
yield {
|
|
299
|
+
name,
|
|
300
|
+
status: 'failed',
|
|
301
|
+
error: {
|
|
302
|
+
code: 'ETRUSTID',
|
|
303
|
+
message: `${name} has no trusted publisher of the id ${unknown.join(', ')}; nothing of it was removed.`,
|
|
304
|
+
details: held.length === 0
|
|
305
|
+
? `${name} has no trusted publisher.`
|
|
306
|
+
: `Name an id it lists: ${held.map((trust) => trust.id).join(', ')}.`
|
|
307
|
+
},
|
|
308
|
+
publishers: []
|
|
309
|
+
};
|
|
310
|
+
continue;
|
|
311
|
+
}
|
|
312
|
+
const removing = ids === undefined || ids.length === 0
|
|
313
|
+
? held.filter((trust) => isRepoTrust(trust, repos))
|
|
314
|
+
: held.filter((trust) => ids.includes(trust.id));
|
|
315
|
+
if (removing.length === 0) {
|
|
316
|
+
yield { name, status: 'none', held: true };
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
319
|
+
const outcomes = [];
|
|
320
|
+
for (const trust of removing) {
|
|
321
|
+
const args = ['trust', 'revoke', '--id', trust.id, name];
|
|
322
|
+
if (context.dryRun) {
|
|
323
|
+
outcomes.push({ trust, status: 'dry-run', command: npmCommandOf(name, args) });
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
try {
|
|
327
|
+
// oxlint-disable-next-line no-await-in-loop -- one publisher after another, each asked once
|
|
328
|
+
const code = await onTerminal(name, args, context);
|
|
329
|
+
if (code !== 0)
|
|
330
|
+
throw writeFailureOf(`npm trust revoke --id ${trust.id} ${name}`, code);
|
|
331
|
+
outcomes.push({ trust, status: 'removed' });
|
|
332
|
+
}
|
|
333
|
+
catch (error) {
|
|
334
|
+
outcomes.push({ trust, status: 'failed', error: failureOf(error) });
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
const failed = outcomes.find((outcome) => outcome.status === 'failed');
|
|
338
|
+
yield failed?.error === undefined
|
|
339
|
+
? { name, status: context.dryRun ? 'dry-run' : 'removed', publishers: outcomes }
|
|
340
|
+
: { name, status: 'failed', error: failed.error, publishers: outcomes };
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
//# sourceMappingURL=trust.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trust.js","sourceRoot":"","sources":["../src/trust.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAGL,SAAS,EACT,YAAY,EACZ,UAAU,EACV,aAAa,EACb,OAAO,EAEP,UAAU,EAGV,cAAc,EACd,cAAc,EACf,MAAM,eAAe,CAAA;AAEtB,6EAA6E;AAC7E,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAA;AAE7B,yEAAyE;AACzE,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAA;AAyBjD;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAA;IAC3B,IAAI,OAAO,KAAK,EAAE;QAAE,OAAO,EAAE,CAAA;IAC7B,gGAAgG;IAChG,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,eAA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AAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;YAChF,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAA;IAC3E,CAAC;AACH,CAAC"}
|
package/dist/workspace.d.ts
CHANGED
package/dist/workspace.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAOjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C,6FAA6F;AAC7F,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IACnC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CACpC;AAID;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAmBzD;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAsBrC;AAWD;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CA6BzF;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAkBxF;AAED;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,UAAU,SAAS,QAAQ,EAAE,KAAG,QAAQ,EACb,CAAA"}
|
package/dist/workspace.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,SAAS,MAAM,WAAW,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAUtC,MAAM,OAAO,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAA;AAE/E;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IACjC,MAAM,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAChE,IAAI,EAAE,KAAK,CAAC,CAAC;QAAE,OAAO,EAAE,CAAA;IACxB,MAAM,MAAM,GAAG,sCAAsC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAA;IAC3E,IAAI,MAAM,KAAK,IAAI;QACjB,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;aACrB,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,OAAO,CAAC;aACZ,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,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,IAAI,CAAC,MAAM,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,CAAA;IAC/F,CAAC,CAAC,CACH,CAAA;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,QAA6B,EAAc,EAAE,CACzE,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wtf/release-npm",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "The npm packages of a monorepo released in trains, of no release tool: the ecosystem of npm, as the trains read it, its default export (., ./ecosystem); the package.json files of the repo, their fields and ranges (./manifests); the packages of a workspace by its globs (./workspace); and every package of a release train published, in the order of their dependencies, by a Publisher of your choice, npm's by default, each made ready at its version, its workspace: ranges resolved, checked and packed before the first publish, each already on the registry skipped, under the dist-tag of its channel, with provenance by an ID token: what a publisher is (.), the publishers (./publishers), what a package is made before it publishes (./prepare), the guard of a release (./check), the manifests of a release resolved, its packages packed and published (./release), the packages packed tried as a consumer installs them (./smoke), and the codes of its errors (./errors).",
|
|
3
|
+
"version": "3.1.0",
|
|
4
|
+
"description": "The npm packages of a monorepo released in trains, of no release tool: the ecosystem of npm, as the trains read it, its default export (., ./ecosystem); the package.json files of the repo, their fields and ranges (./manifests); the packages of a workspace by its globs (./workspace); and every package of a release train published, in the order of their dependencies, by a Publisher of your choice, npm's by default, each made ready at its version, its workspace: ranges resolved, checked and packed before the first publish, each already on the registry skipped, under the dist-tag of its channel, with provenance by an ID token: what a publisher is (.), the publishers (./publishers), what a package is made before it publishes (./prepare), the guard of a release (./check), the manifests of a release resolved, its packages packed and published (./release), the packages packed tried as a consumer installs them (./smoke); and a new package bootstrapped on npm's registry by hand, of no release: npm asked and changed on a maintainer's terminal (./registry), a placeholder published and removed (./placeholder), and its trusted publishers added, listed and removed, several at once (./trust); and the codes of its errors (./errors).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ecosystem",
|
|
7
7
|
"monorepo",
|
|
8
8
|
"npm",
|
|
9
|
+
"oidc",
|
|
9
10
|
"provenance",
|
|
10
11
|
"publish",
|
|
11
12
|
"release",
|
|
12
|
-
"release-train"
|
|
13
|
+
"release-train",
|
|
14
|
+
"trusted-publishing"
|
|
13
15
|
],
|
|
14
16
|
"homepage": "https://gitlab.com/wetryfun/release/release/-/tree/main/packages/release-npm",
|
|
15
17
|
"bugs": {
|
|
@@ -66,6 +68,18 @@
|
|
|
66
68
|
"types": "./dist/smoke.d.ts",
|
|
67
69
|
"default": "./dist/smoke.js"
|
|
68
70
|
},
|
|
71
|
+
"./registry": {
|
|
72
|
+
"types": "./dist/registry.d.ts",
|
|
73
|
+
"default": "./dist/registry.js"
|
|
74
|
+
},
|
|
75
|
+
"./placeholder": {
|
|
76
|
+
"types": "./dist/placeholder.d.ts",
|
|
77
|
+
"default": "./dist/placeholder.js"
|
|
78
|
+
},
|
|
79
|
+
"./trust": {
|
|
80
|
+
"types": "./dist/trust.d.ts",
|
|
81
|
+
"default": "./dist/trust.js"
|
|
82
|
+
},
|
|
69
83
|
"./errors": {
|
|
70
84
|
"types": "./dist/errors.d.ts",
|
|
71
85
|
"default": "./dist/errors.js"
|
|
@@ -79,9 +93,9 @@
|
|
|
79
93
|
"build": "tsc -b"
|
|
80
94
|
},
|
|
81
95
|
"dependencies": {
|
|
82
|
-
"@wtf/platform": "^
|
|
83
|
-
"@wtf/platform-fs": "^1.1.
|
|
84
|
-
"@wtf/release": "^2.
|
|
96
|
+
"@wtf/platform": "^3.0.0",
|
|
97
|
+
"@wtf/platform-fs": "^1.1.1",
|
|
98
|
+
"@wtf/release": "^2.2.0",
|
|
85
99
|
"picomatch": "^4.0.3",
|
|
86
100
|
"semver": "^7.7.0"
|
|
87
101
|
},
|
|
@@ -89,7 +103,7 @@
|
|
|
89
103
|
"@types/node": "^24.10.0",
|
|
90
104
|
"@types/picomatch": "^4.0.3",
|
|
91
105
|
"@types/semver": "^7.7.0",
|
|
92
|
-
"@wtf/release-trains": "^10.0.
|
|
106
|
+
"@wtf/release-trains": "^10.0.2",
|
|
93
107
|
"vitest": "^5.0.5"
|
|
94
108
|
},
|
|
95
109
|
"engines": {
|