@pnpm/prepare 0.0.0-20230605-20230605142810

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 ADDED
@@ -0,0 +1,500 @@
1
+ # @pnpm/prepare
2
+
3
+ ## 0.0.0-20230605-20230605142810
4
+
5
+ ### Patch Changes
6
+
7
+ - @pnpm/assert-project@0.0.0-20230605-20230605142810
8
+
9
+ ## 0.0.68
10
+
11
+ ### Patch Changes
12
+
13
+ - @pnpm/assert-project@2.3.25
14
+
15
+ ## 0.0.67
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [a9e0b7cbf]
20
+ - @pnpm/types@9.1.0
21
+ - @pnpm/assert-project@2.3.24
22
+
23
+ ## 0.0.66
24
+
25
+ ### Patch Changes
26
+
27
+ - @pnpm/assert-project@2.3.23
28
+
29
+ ## 0.0.65
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [eceaa8b8b]
34
+ - @pnpm/types@9.0.0
35
+ - @pnpm/assert-project@2.3.22
36
+
37
+ ## 0.0.64
38
+
39
+ ### Patch Changes
40
+
41
+ - @pnpm/assert-project@2.3.21
42
+
43
+ ## 0.0.63
44
+
45
+ ### Patch Changes
46
+
47
+ - b71c6ed74: Fix version number replacing for namespaced workspace packages. `workspace:@foo/bar@*` should be replaced with `npm:@foo/bar@<version>` on publish [#6052](https://github.com/pnpm/pnpm/pull/6052).
48
+ - @pnpm/assert-project@2.3.20
49
+
50
+ ## 0.0.62
51
+
52
+ ### Patch Changes
53
+
54
+ - @pnpm/assert-project@2.3.19
55
+
56
+ ## 0.0.61
57
+
58
+ ### Patch Changes
59
+
60
+ - @pnpm/assert-project@2.3.18
61
+
62
+ ## 0.0.60
63
+
64
+ ### Patch Changes
65
+
66
+ - @pnpm/assert-project@2.3.17
67
+
68
+ ## 0.0.59
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies [b77651d14]
73
+ - @pnpm/types@8.10.0
74
+ - @pnpm/assert-project@2.3.16
75
+
76
+ ## 0.0.58
77
+
78
+ ### Patch Changes
79
+
80
+ - @pnpm/assert-project@2.3.15
81
+
82
+ ## 0.0.57
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [702e847c1]
87
+ - @pnpm/types@8.9.0
88
+ - @pnpm/assert-project@2.3.14
89
+
90
+ ## 0.0.56
91
+
92
+ ### Patch Changes
93
+
94
+ - Updated dependencies [844e82f3a]
95
+ - @pnpm/types@8.8.0
96
+ - @pnpm/assert-project@2.3.13
97
+
98
+ ## 0.0.55
99
+
100
+ ### Patch Changes
101
+
102
+ - @pnpm/assert-project@2.3.12
103
+
104
+ ## 0.0.54
105
+
106
+ ### Patch Changes
107
+
108
+ - Updated dependencies [d665f3ff7]
109
+ - @pnpm/types@8.7.0
110
+ - @pnpm/assert-project@2.3.11
111
+
112
+ ## 0.0.53
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies [156cc1ef6]
117
+ - @pnpm/types@8.6.0
118
+ - @pnpm/assert-project@2.3.10
119
+
120
+ ## 0.0.52
121
+
122
+ ### Patch Changes
123
+
124
+ - @pnpm/assert-project@2.3.9
125
+
126
+ ## 0.0.51
127
+
128
+ ### Patch Changes
129
+
130
+ - @pnpm/assert-project@2.3.8
131
+
132
+ ## 0.0.50
133
+
134
+ ### Patch Changes
135
+
136
+ - @pnpm/assert-project@2.3.7
137
+
138
+ ## 0.0.49
139
+
140
+ ### Patch Changes
141
+
142
+ - @pnpm/assert-project@2.3.6
143
+
144
+ ## 0.0.48
145
+
146
+ ### Patch Changes
147
+
148
+ - @pnpm/assert-project@2.3.5
149
+
150
+ ## 0.0.47
151
+
152
+ ### Patch Changes
153
+
154
+ - Updated dependencies [c90798461]
155
+ - @pnpm/types@8.5.0
156
+ - @pnpm/assert-project@2.3.4
157
+
158
+ ## 0.0.46
159
+
160
+ ### Patch Changes
161
+
162
+ - @pnpm/assert-project@2.3.3
163
+
164
+ ## 0.0.45
165
+
166
+ ### Patch Changes
167
+
168
+ - Updated dependencies [8e5b77ef6]
169
+ - @pnpm/types@8.4.0
170
+ - @pnpm/assert-project@2.3.2
171
+
172
+ ## 0.0.44
173
+
174
+ ### Patch Changes
175
+
176
+ - Updated dependencies [2a34b21ce]
177
+ - @pnpm/types@8.3.0
178
+ - @pnpm/assert-project@2.3.1
179
+
180
+ ## 0.0.43
181
+
182
+ ### Patch Changes
183
+
184
+ - Updated dependencies [fb5bbfd7a]
185
+ - Updated dependencies [56cf04cb3]
186
+ - @pnpm/types@8.2.0
187
+ - @pnpm/assert-project@2.3.0
188
+
189
+ ## 0.0.42
190
+
191
+ ### Patch Changes
192
+
193
+ - Updated dependencies [4d39e4a0c]
194
+ - @pnpm/types@8.1.0
195
+ - @pnpm/assert-project@2.2.23
196
+
197
+ ## 0.0.41
198
+
199
+ ### Patch Changes
200
+
201
+ - @pnpm/assert-project@2.2.22
202
+
203
+ ## 0.0.40
204
+
205
+ ### Patch Changes
206
+
207
+ - @pnpm/assert-project@2.2.21
208
+
209
+ ## 0.0.39
210
+
211
+ ### Patch Changes
212
+
213
+ - Updated dependencies [18ba5e2c0]
214
+ - @pnpm/types@8.0.1
215
+ - @pnpm/assert-project@2.2.20
216
+
217
+ ## 0.0.38
218
+
219
+ ### Patch Changes
220
+
221
+ - @pnpm/assert-project@2.2.19
222
+
223
+ ## 0.0.37
224
+
225
+ ### Patch Changes
226
+
227
+ - Updated dependencies [d504dc380]
228
+ - Updated dependencies [542014839]
229
+ - @pnpm/types@8.0.0
230
+ - @pnpm/assert-project@2.2.18
231
+
232
+ ## 0.0.36
233
+
234
+ ### Patch Changes
235
+
236
+ - @pnpm/assert-project@2.2.17
237
+
238
+ ## 0.0.35
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [b138d048c]
243
+ - @pnpm/types@7.10.0
244
+ - @pnpm/assert-project@2.2.16
245
+
246
+ ## 0.0.34
247
+
248
+ ### Patch Changes
249
+
250
+ - @pnpm/assert-project@2.2.15
251
+
252
+ ## 0.0.33
253
+
254
+ ### Patch Changes
255
+
256
+ - Updated dependencies [26cd01b88]
257
+ - @pnpm/types@7.9.0
258
+ - @pnpm/assert-project@2.2.14
259
+
260
+ ## 0.0.32
261
+
262
+ ### Patch Changes
263
+
264
+ - @pnpm/assert-project@2.2.13
265
+
266
+ ## 0.0.31
267
+
268
+ ### Patch Changes
269
+
270
+ - Updated dependencies [b5734a4a7]
271
+ - @pnpm/types@7.8.0
272
+ - @pnpm/assert-project@2.2.12
273
+
274
+ ## 0.0.30
275
+
276
+ ### Patch Changes
277
+
278
+ - Updated dependencies [6493e0c93]
279
+ - @pnpm/types@7.7.1
280
+ - @pnpm/assert-project@2.2.11
281
+
282
+ ## 0.0.29
283
+
284
+ ### Patch Changes
285
+
286
+ - Updated dependencies [ba9b2eba1]
287
+ - @pnpm/types@7.7.0
288
+ - @pnpm/assert-project@2.2.10
289
+
290
+ ## 0.0.28
291
+
292
+ ### Patch Changes
293
+
294
+ - Updated dependencies [302ae4f6f]
295
+ - @pnpm/types@7.6.0
296
+ - @pnpm/assert-project@2.2.9
297
+
298
+ ## 0.0.27
299
+
300
+ ### Patch Changes
301
+
302
+ - Updated dependencies [4ab87844a]
303
+ - @pnpm/types@7.5.0
304
+ - @pnpm/assert-project@2.2.8
305
+
306
+ ## 0.0.26
307
+
308
+ ### Patch Changes
309
+
310
+ - Updated dependencies [b734b45ea]
311
+ - @pnpm/types@7.4.0
312
+ - @pnpm/assert-project@2.2.7
313
+
314
+ ## 0.0.25
315
+
316
+ ### Patch Changes
317
+
318
+ - Updated dependencies [8e76690f4]
319
+ - @pnpm/types@7.3.0
320
+ - @pnpm/assert-project@2.2.6
321
+
322
+ ## 0.0.24
323
+
324
+ ### Patch Changes
325
+
326
+ - Updated dependencies [724c5abd8]
327
+ - @pnpm/types@7.2.0
328
+ - @pnpm/assert-project@2.2.5
329
+
330
+ ## 0.0.23
331
+
332
+ ### Patch Changes
333
+
334
+ - @pnpm/assert-project@2.2.4
335
+
336
+ ## 0.0.22
337
+
338
+ ### Patch Changes
339
+
340
+ - @pnpm/assert-project@2.2.3
341
+
342
+ ## 0.0.21
343
+
344
+ ### Patch Changes
345
+
346
+ - Updated dependencies [97c64bae4]
347
+ - @pnpm/types@7.1.0
348
+ - @pnpm/assert-project@2.2.2
349
+
350
+ ## 0.0.20
351
+
352
+ ### Patch Changes
353
+
354
+ - @pnpm/assert-project@2.2.1
355
+
356
+ ## 0.0.19
357
+
358
+ ### Patch Changes
359
+
360
+ - Updated dependencies [97b986fbc]
361
+ - Updated dependencies [735d2ac79]
362
+ - @pnpm/types@7.0.0
363
+ - @pnpm/assert-project@2.2.0
364
+
365
+ ## 0.0.18
366
+
367
+ ### Patch Changes
368
+
369
+ - @pnpm/assert-project@2.1.16
370
+
371
+ ## 0.0.17
372
+
373
+ ### Patch Changes
374
+
375
+ - Updated dependencies [9ad8c27bf]
376
+ - @pnpm/types@6.4.0
377
+ - @pnpm/assert-project@2.1.15
378
+
379
+ ## 0.0.16
380
+
381
+ ### Patch Changes
382
+
383
+ - @pnpm/assert-project@2.1.14
384
+
385
+ ## 0.0.15
386
+
387
+ ### Patch Changes
388
+
389
+ - 09492b7b4: Update write-file-atomic to v3.
390
+ - @pnpm/assert-project@2.1.13
391
+
392
+ ## 0.0.14
393
+
394
+ ### Patch Changes
395
+
396
+ - @pnpm/assert-project@2.1.12
397
+
398
+ ## 0.0.13
399
+
400
+ ### Patch Changes
401
+
402
+ - Updated dependencies [b5d694e7f]
403
+ - @pnpm/types@6.3.1
404
+ - @pnpm/assert-project@2.1.11
405
+
406
+ ## 0.0.12
407
+
408
+ ### Patch Changes
409
+
410
+ - Updated dependencies [d54043ee4]
411
+ - @pnpm/types@6.3.0
412
+ - @pnpm/assert-project@2.1.10
413
+
414
+ ## 0.0.11
415
+
416
+ ### Patch Changes
417
+
418
+ - @pnpm/assert-project@2.1.9
419
+
420
+ ## 0.0.10
421
+
422
+ ### Patch Changes
423
+
424
+ - @pnpm/assert-project@2.1.8
425
+
426
+ ## 0.0.9
427
+
428
+ ### Patch Changes
429
+
430
+ - @pnpm/assert-project@2.1.7
431
+
432
+ ## 0.0.8
433
+
434
+ ### Patch Changes
435
+
436
+ - @pnpm/assert-project@2.1.6
437
+
438
+ ## 0.0.7
439
+
440
+ ### Patch Changes
441
+
442
+ - Updated dependencies [db17f6f7b]
443
+ - @pnpm/types@6.2.0
444
+ - @pnpm/assert-project@2.1.5
445
+
446
+ ## 0.0.6
447
+
448
+ ### Patch Changes
449
+
450
+ - Updated dependencies [71a8c8ce3]
451
+ - @pnpm/types@6.1.0
452
+ - @pnpm/assert-project@2.1.4
453
+
454
+ ## 0.0.5
455
+
456
+ ### Patch Changes
457
+
458
+ - @pnpm/assert-project@2.1.3
459
+
460
+ ## 0.0.4
461
+
462
+ ### Patch Changes
463
+
464
+ - @pnpm/assert-project@2.1.2
465
+
466
+ ## 0.0.3
467
+
468
+ ### Patch Changes
469
+
470
+ - @pnpm/assert-project@2.1.1
471
+
472
+ ## 0.0.2
473
+
474
+ ### Patch Changes
475
+
476
+ - Updated dependencies [3f73eaf0c]
477
+ - Updated dependencies [da091c711]
478
+ - @pnpm/assert-project@2.1.0
479
+ - @pnpm/types@6.0.0
480
+
481
+ ## 0.0.2-alpha.1
482
+
483
+ ### Patch Changes
484
+
485
+ - Updated dependencies [3f73eaf0]
486
+ - Updated dependencies [da091c71]
487
+ - @pnpm/assert-project@2.1.0-alpha.1
488
+ - @pnpm/types@6.0.0-alpha.0
489
+
490
+ ## 0.0.2-alpha.0
491
+
492
+ ### Patch Changes
493
+
494
+ - @pnpm/assert-project@2.0.2-alpha.0
495
+
496
+ ## 0.0.1
497
+
498
+ ### Patch Changes
499
+
500
+ - @pnpm/assert-project@2.0.1
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-2016 Rico Sta. Cruz and other contributors
4
+ Copyright (c) 2016-2023 Zoltan Kochan and other contributors
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/lib/index.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ import { type Modules, type Project } from '@pnpm/assert-project';
2
+ import { type ProjectManifest } from '@pnpm/types';
3
+ export type { Modules, Project };
4
+ export type ManifestFormat = 'JSON' | 'JSON5' | 'YAML';
5
+ export declare function tempDir(chdir?: boolean): string;
6
+ interface LocationAndManifest {
7
+ location: string;
8
+ package: ProjectManifest;
9
+ }
10
+ export declare function preparePackages(pkgs: Array<LocationAndManifest | ProjectManifest>, opts?: {
11
+ manifestFormat?: ManifestFormat;
12
+ tempDir?: string;
13
+ }): {
14
+ [name: string]: Project;
15
+ };
16
+ export declare function prepare(manifest?: ProjectManifest, opts?: {
17
+ manifestFormat?: ManifestFormat;
18
+ tempDir?: string;
19
+ }): Project;
20
+ export declare function prepareEmpty(): Project;
package/lib/index.js ADDED
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.prepareEmpty = exports.prepare = exports.preparePackages = exports.tempDir = void 0;
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const path_1 = __importDefault(require("path"));
9
+ const assert_project_1 = require("@pnpm/assert-project");
10
+ const unique_string_1 = __importDefault(require("unique-string"));
11
+ const write_json5_file_1 = require("write-json5-file");
12
+ const write_yaml_file_1 = require("write-yaml-file");
13
+ const write_pkg_1 = __importDefault(require("write-pkg"));
14
+ // The testing folder should be outside of the project to avoid lookup in the project's node_modules
15
+ // Not using the OS temp directory due to issues on Windows CI.
16
+ const tmpPath = path_1.default.join(__dirname, `../../../../pnpm_tmp/${(0, unique_string_1.default)()}`);
17
+ let dirNumber = 0;
18
+ function tempDir(chdir = true) {
19
+ dirNumber++;
20
+ const dirname = dirNumber.toString();
21
+ const tmpDir = path_1.default.join(tmpPath, dirname);
22
+ fs_1.default.mkdirSync(tmpDir, { recursive: true });
23
+ if (chdir)
24
+ process.chdir(tmpDir);
25
+ return tmpDir;
26
+ }
27
+ exports.tempDir = tempDir;
28
+ function preparePackages(pkgs, opts) {
29
+ const pkgTmpPath = opts?.tempDir ?? path_1.default.join(tempDir(), 'project');
30
+ const manifestFormat = opts?.manifestFormat;
31
+ const dirname = path_1.default.dirname(pkgTmpPath);
32
+ const result = {};
33
+ const cwd = process.cwd();
34
+ for (const aPkg of pkgs) {
35
+ if (typeof aPkg.location === 'string') {
36
+ result[aPkg.package.name] = prepare(aPkg.package, {
37
+ manifestFormat,
38
+ tempDir: path_1.default.join(dirname, aPkg.location),
39
+ });
40
+ }
41
+ else {
42
+ result[aPkg.name] = prepare(aPkg, {
43
+ manifestFormat,
44
+ tempDir: path_1.default.join(dirname, aPkg.name),
45
+ });
46
+ }
47
+ }
48
+ process.chdir(cwd);
49
+ return result;
50
+ }
51
+ exports.preparePackages = preparePackages;
52
+ function prepare(manifest, opts) {
53
+ const dir = opts?.tempDir ?? path_1.default.join(tempDir(), 'project');
54
+ fs_1.default.mkdirSync(dir, { recursive: true });
55
+ switch (opts?.manifestFormat ?? 'JSON') {
56
+ case 'JSON':
57
+ write_pkg_1.default.sync(dir, { name: 'project', version: '0.0.0', ...manifest }); // eslint-disable-line
58
+ break;
59
+ case 'JSON5':
60
+ (0, write_json5_file_1.sync)(path_1.default.join(dir, 'package.json5'), { name: 'project', version: '0.0.0', ...manifest }); // eslint-disable-line
61
+ break;
62
+ case 'YAML':
63
+ (0, write_yaml_file_1.sync)(path_1.default.join(dir, 'package.yaml'), { name: 'project', version: '0.0.0', ...manifest }); // eslint-disable-line
64
+ break;
65
+ }
66
+ process.chdir(dir);
67
+ return (0, assert_project_1.assertProject)(dir);
68
+ }
69
+ exports.prepare = prepare;
70
+ function prepareEmpty() {
71
+ const pkgTmpPath = path_1.default.join(tempDir(), 'project');
72
+ fs_1.default.mkdirSync(pkgTmpPath, { recursive: true });
73
+ process.chdir(pkgTmpPath);
74
+ return (0, assert_project_1.assertProject)(pkgTmpPath);
75
+ }
76
+ exports.prepareEmpty = prepareEmpty;
77
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@pnpm/prepare",
3
+ "version": "0.0.0-20230605-20230605142810",
4
+ "main": "lib/index.js",
5
+ "types": "lib/index.d.ts",
6
+ "dependencies": {
7
+ "unique-string": "^2.0.0",
8
+ "write-json5-file": "^3.1.0",
9
+ "write-pkg": "4.0.0",
10
+ "write-yaml-file": "^5.0.0",
11
+ "@pnpm/types": "9.1.0",
12
+ "@pnpm/assert-project": "0.0.0-20230605-20230605142810"
13
+ },
14
+ "devDependencies": {
15
+ "@types/node": "^14.18.48",
16
+ "@pnpm/prepare": "0.0.0-20230605-20230605142810"
17
+ },
18
+ "scripts": {
19
+ "lint": "eslint src/**/*.ts",
20
+ "test": "pnpm run compile",
21
+ "compile": "rimraf tsconfig.tsbuildinfo lib && tsc --build"
22
+ }
23
+ }
package/src/index.ts ADDED
@@ -0,0 +1,98 @@
1
+ import fs from 'fs'
2
+ import path from 'path'
3
+ import { assertProject, type Modules, type Project } from '@pnpm/assert-project'
4
+ import { type ProjectManifest } from '@pnpm/types'
5
+ import uniqueString from 'unique-string'
6
+ import { sync as writeJson5File } from 'write-json5-file'
7
+ import { sync as writeYamlFile } from 'write-yaml-file'
8
+ import writePkg from 'write-pkg'
9
+
10
+ export type { Modules, Project }
11
+ export type ManifestFormat = 'JSON' | 'JSON5' | 'YAML'
12
+
13
+ // The testing folder should be outside of the project to avoid lookup in the project's node_modules
14
+ // Not using the OS temp directory due to issues on Windows CI.
15
+ const tmpPath = path.join(__dirname, `../../../../pnpm_tmp/${uniqueString()}`)
16
+
17
+ let dirNumber = 0
18
+
19
+ export function tempDir (chdir: boolean = true) {
20
+ dirNumber++
21
+ const dirname = dirNumber.toString()
22
+ const tmpDir = path.join(tmpPath, dirname)
23
+ fs.mkdirSync(tmpDir, { recursive: true })
24
+
25
+ if (chdir) process.chdir(tmpDir)
26
+
27
+ return tmpDir
28
+ }
29
+
30
+ interface LocationAndManifest {
31
+ location: string
32
+ package: ProjectManifest
33
+ }
34
+
35
+ export function preparePackages (
36
+ pkgs: Array<LocationAndManifest | ProjectManifest>,
37
+ opts?: {
38
+ manifestFormat?: ManifestFormat
39
+ tempDir?: string
40
+ }
41
+ ) {
42
+ const pkgTmpPath = opts?.tempDir ?? path.join(tempDir(), 'project')
43
+ const manifestFormat = opts?.manifestFormat
44
+
45
+ const dirname = path.dirname(pkgTmpPath)
46
+ const result: { [name: string]: Project } = {}
47
+ const cwd = process.cwd()
48
+ for (const aPkg of pkgs) {
49
+ if (typeof (aPkg as LocationAndManifest).location === 'string') {
50
+ result[(aPkg as LocationAndManifest).package.name!] = prepare((aPkg as LocationAndManifest).package, {
51
+ manifestFormat,
52
+ tempDir: path.join(dirname, (aPkg as LocationAndManifest).location),
53
+ })
54
+ } else {
55
+ result[(aPkg as ProjectManifest).name!] = prepare(aPkg as ProjectManifest, {
56
+ manifestFormat,
57
+ tempDir: path.join(dirname, (aPkg as ProjectManifest).name!),
58
+ })
59
+ }
60
+ }
61
+ process.chdir(cwd)
62
+ return result
63
+ }
64
+
65
+ export function prepare (
66
+ manifest?: ProjectManifest,
67
+ opts?: {
68
+ manifestFormat?: ManifestFormat
69
+ tempDir?: string
70
+ }
71
+ ) {
72
+ const dir = opts?.tempDir ?? path.join(tempDir(), 'project')
73
+
74
+ fs.mkdirSync(dir, { recursive: true })
75
+ switch (opts?.manifestFormat ?? 'JSON') {
76
+ case 'JSON':
77
+ writePkg.sync(dir, { name: 'project', version: '0.0.0', ...manifest } as any) // eslint-disable-line
78
+ break
79
+ case 'JSON5':
80
+ writeJson5File(path.join(dir, 'package.json5'), { name: 'project', version: '0.0.0', ...manifest } as any) // eslint-disable-line
81
+ break
82
+ case 'YAML':
83
+ writeYamlFile(path.join(dir, 'package.yaml'), { name: 'project', version: '0.0.0', ...manifest } as any) // eslint-disable-line
84
+ break
85
+ }
86
+ process.chdir(dir)
87
+
88
+ return assertProject(dir)
89
+ }
90
+
91
+ export function prepareEmpty () {
92
+ const pkgTmpPath = path.join(tempDir(), 'project')
93
+
94
+ fs.mkdirSync(pkgTmpPath, { recursive: true })
95
+ process.chdir(pkgTmpPath)
96
+
97
+ return assertProject(pkgTmpPath)
98
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "extends": "@pnpm/tsconfig",
3
+ "compilerOptions": {
4
+ "outDir": "lib",
5
+ "rootDir": "src"
6
+ },
7
+ "include": [
8
+ "src/**/*.ts",
9
+ "../../__typings__/**/*.d.ts"
10
+ ],
11
+ "references": [
12
+ {
13
+ "path": "../../packages/types"
14
+ },
15
+ {
16
+ "path": "../assert-project"
17
+ }
18
+ ],
19
+ "composite": true
20
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "include": [
4
+ "src/**/*.ts",
5
+ "test/**/*.ts",
6
+ "../../__typings__/**/*.d.ts"
7
+ ]
8
+ }
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.full.d.ts","../../packages/types/lib/misc.d.ts","../../packages/types/lib/package.d.ts","../../packages/types/lib/options.d.ts","../../packages/types/lib/peerdependencyissues.d.ts","../../packages/types/lib/project.d.ts","../../packages/types/lib/index.d.ts","../../lockfile/lockfile-types/lib/index.d.ts","../../pkg-manager/modules-yaml/lib/index.d.ts","../assert-project/lib/isexecutable.d.ts","../assert-project/lib/index.d.ts","../../node_modules/.pnpm/unique-string@2.0.0/node_modules/unique-string/index.d.ts","../../node_modules/.pnpm/write-json5-file@3.1.0/node_modules/write-json5-file/index.d.ts","../../node_modules/.pnpm/write-yaml-file@5.0.0/node_modules/write-yaml-file/index.d.ts","../../node_modules/.pnpm/type-fest@0.4.1/node_modules/type-fest/source/basic.d.ts","../../node_modules/.pnpm/type-fest@0.4.1/node_modules/type-fest/source/omit.d.ts","../../node_modules/.pnpm/type-fest@0.4.1/node_modules/type-fest/source/mutable.d.ts","../../node_modules/.pnpm/type-fest@0.4.1/node_modules/type-fest/source/merge.d.ts","../../node_modules/.pnpm/type-fest@0.4.1/node_modules/type-fest/source/merge-exclusive.d.ts","../../node_modules/.pnpm/type-fest@0.4.1/node_modules/type-fest/source/require-at-least-one.d.ts","../../node_modules/.pnpm/type-fest@0.4.1/node_modules/type-fest/source/literal-union.d.ts","../../node_modules/.pnpm/type-fest@0.4.1/node_modules/type-fest/source/package-json.d.ts","../../node_modules/.pnpm/type-fest@0.4.1/node_modules/type-fest/index.d.ts","../../node_modules/.pnpm/write-pkg@4.0.0/node_modules/write-pkg/index.d.ts","./src/index.ts","../../__typings__/local.d.ts","../../__typings__/typed.d.ts","../../__typings__/index.d.ts","../../node_modules/.pnpm/@jest+expect-utils@29.5.0/node_modules/@jest/expect-utils/build/index.d.ts","../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../node_modules/.pnpm/@sinclair+typebox@0.25.24/node_modules/@sinclair/typebox/typebox.d.ts","../../node_modules/.pnpm/@jest+schemas@29.4.3/node_modules/@jest/schemas/build/index.d.ts","../../node_modules/.pnpm/pretty-format@29.5.0/node_modules/pretty-format/build/index.d.ts","../../node_modules/.pnpm/jest-diff@29.5.0/node_modules/jest-diff/build/index.d.ts","../../node_modules/.pnpm/jest-matcher-utils@29.5.0/node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/.pnpm/expect@29.5.0/node_modules/expect/build/index.d.ts","../../node_modules/.pnpm/@types+jest@29.5.2/node_modules/@types/jest/index.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/globals.global.d.ts","../../node_modules/.pnpm/@types+node@14.18.48/node_modules/@types/node/index.d.ts","../../node_modules/.pnpm/@types+prettier@2.7.3/node_modules/@types/prettier/index.d.ts"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"c1e8d979afc15d66e2bd5a58c732d5a2ba3ccaae41ac7d5a2c539e6de66a8e51","3425b2985269c529fad3e27125524ff818b12201b060457b276388992d754e9f","084852c5937326b47deb7abac5ade8d080ae51081d55bd10911b01d9484e6e2b","4cb4983530ff93fe0df59422157bf244546cb49d547442447d8f87bb9d7d197b","f3105b4aa511a6d5c5dd1989b8102f5522424464a99c9f45bf886c57fc8a00a0","e32f4196766b5b30df8a4a71daa6ef01885f1c8f61e94040095a8733151b0c25","e4b3af8d821ba8d59cdb52facbdfa001771ab624a66b8bc00814f93a8cf191cc","d778ee852e90f02c9eb4990086a6caae806bfdb0d687b5ef7258b6d581839f93","829af4a5ad4005d80dd60c31d1bcd5f9ceffe556c4ec0e0e9640c460223afd57","dc5f14ce88760ee6f79876e231631527bd910eff8eb7bfab46edfdff649fedfc","4fcf2c2de48dcbe9d16d86bd39f05218a0acb083dcd5afc287cf8da12ef32d3d","773a3e1723f63c863eb08ee3c7078ee09d8313cb1748d0fa599bd0d87ffceab9","3b0621ec1b951b4be0026ea7ee3de4729dbc10df15f4a8d1f4226599e33c8b1e","e11ccfc919b268fab48b66b5f8fa05af6b9eee2fd2aad424a7b120e85692fe4b",{"version":"933245a2572183250aaa79c2a552c4dbe86a5a8a07cd1d6a7e6c9304fc88d4fd","affectsGlobalScope":true},"1bc1d7c114979ab829e1bbbd7b521aa3e08151dbe5ad94943a0e4ef1cf936f82","f6aeb8f3f816ea2e0aa1a3e298b5050f19ae39e4788c7debfd901efcb4839f4c","c2c4016af241fd56f469865f0694d99deaabf7865b1b4c2257d8b96e702e43b4","b065ba1b9a52bc541a638fa4b11115644001bcf82a0a0b984b7c1834451bd2b5","f705a4de6b2b62abf6de9a97e30ac0748b3c24ddd90c7ad4e596f2818cb3c1c9","091af8276fbc70609a00e296840bd284a2fe29df282f0e8dae2de9f0a706685f","fce9e6a73ffe9095b49281a04ae7df7a733b52db1f89e27674c4a080db45cd2d","a2998dedd40ab9cab68afb3c95a49c1ba87132146e00044a0e8006c6896c837b","788254cb1ec00457050630b0189e6d4ca5a70f6487a3bd2fe05848da2f865ea3",{"version":"bd60d9d540e86c1059a601db7a93982ec989a6dea53ddfacd718088cb319075f","signature":"554dba88fd34e8ce8ac7e8964cb0d2cb24c86fa599b5c16e7173600e94431ea5"},"eeec0e50986c970f576aed4a4bbea7a04d9b90d283b19f29b8bb2a46b8de61cb",{"version":"8b179ddeb209b637331eba92dfa41ad3254c8fdbefc58d7a245d514a50c01839","affectsGlobalScope":true},"48da595b85153535634d7750c09a3b2a1672e8c387b9ae8fb8078647d998eb3c","6c1e688f95fcaf53b1e41c0fdadf2c1cfc96fa924eaf7f9fdb60f96deb0a4986","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","db25694be959314fd1e868d72e567746db1db9e2001fae545d12d2a8c1bba1b8","43883cf3635bb1846cbdc6c363787b76227677388c74f7313e3f0edb380840fa","2d47012580f859dae201d2eef898a416bdae719dffc087dfd06aefe3de2f9c8d","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","2cec1a31729b9b01e9294c33fc9425d336eff067282809761ad2e74425d6d2a5",{"version":"240c702fb4b3bd54d83ee167d80fa7f0cd7300fef7eea0b32cef33129740893c","affectsGlobalScope":true},"4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"9c9461d480b1812281abffc647107904970791c170cd0ab97563daa10c6e0171","affectsGlobalScope":true},"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","f87191b7fafe7a0edad375710d99f900e49cef560b66bf309cf3f8e1b7177126","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","17b3ab18375806279770c918b0b97ad48e45b55c93c1703df84ad3e443dd85ed","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"ae064ed4f855716b7ff348639ddcd6a6d354a72fae82f506608a7dc9266aa24c","92f019c55b21c939616f6a48f678e714ac7b109444cbbf23ad69310ce66ecbdc","bba259efdf9ab95e0c7d3cc8e99250f56bb6b31d6129efdf733ca4eb1d01feea","97f837637f01e274ada9de388e99b1a5c5a82ae4184f8c924209fe201f4ffc9e","139fd681eff7771a38d0c025d13c7a11c5474f6aab61e01c41511d71496df173","f614c3f61e46ccc2cb58702d5a158338ea57ee09099fde5db4cfc63ed0ce4d74","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","a504c109b872b0e653549bd258eb06584c148c98d79406c7516995865a6d5089","155865f5f76db0996cd5e20cc5760613ea170ee5ad594c1f3d76fcaa05382161","e92852d673c836fc64e10c38640abcd67c463456e5df55723ac699b8e6ab3a8a","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","aa95cc73ea5315e4f6fc8c6db43d49e3b7de3780cae20a4f1319032809013038","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","6c903bceaf3f3bc04f2d4c7dcd89ce9fb148b3ba0a5f5408d8f6de2b7eecc7ea","504d049d9e550a65466b73ca39da6469ab41786074ea1d16d37c8853f9f6ab2e","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"7d0a3356909df08e5df9af2cfd43e8780f24bb12d07b00daaf7ed2a891fa60e5","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"c6c0bd221bb1e94768e94218f8298e47633495529d60cae7d8da9374247a1cf5","d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e"],"root":[[77,80]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"esModuleInterop":true,"module":1,"noImplicitAny":true,"noImplicitReturns":true,"outDir":"./lib","preserveConstEnums":true,"removeComments":false,"rootDir":"./src","sourceMap":true,"strict":true,"target":8},"fileIdsList":[[78,79],[60,61,62],[59,63,64,65,66,76,103,112],[59],[83],[85,88],[90],[92],[93,98],[94,102,103,110,119],[94,95,102,110],[96,126],[97,98,103,111],[98,119],[99,100,102,110],[100],[101,102],[102],[102,103,104,119,125],[103,104],[102,105,110,119,125],[102,103,105,106,110,119,122,125],[105,107,119,122,125],[90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132],[102,108],[109,125],[100,102,110,119],[111],[112],[92,113],[114,124],[115],[116],[102,117],[117,118,126,128],[102,119],[120],[121],[110,119,122],[123],[110,124],[105,116,125],[126],[119,127],[128],[129],[102,104,119,125,128,130],[119,131],[81,87],[85],[82,86],[84],[67,68,69,70,71,72,73,74],[67],[68],[75],[54,55,56,57,58],[54,55],[55],[59,63]],"referencedMap":[[80,1],[63,2],[77,3],[60,4],[84,5],[89,6],[90,7],[92,8],[93,9],[94,10],[95,11],[96,12],[97,13],[98,14],[99,15],[100,16],[101,17],[102,18],[103,19],[104,20],[105,21],[106,22],[107,23],[133,24],[108,25],[109,26],[110,27],[111,28],[112,29],[113,30],[114,31],[115,32],[116,33],[117,34],[118,35],[119,36],[120,37],[121,38],[122,39],[123,40],[124,41],[125,42],[126,43],[127,44],[128,45],[129,46],[130,47],[131,48],[88,49],[86,50],[87,51],[85,52],[75,53],[73,54],[70,55],[74,56],[72,55],[76,56],[59,57],[56,58],[58,59],[61,4]],"exportedModulesMap":[[80,1],[63,2],[77,60],[60,4],[84,5],[89,6],[90,7],[92,8],[93,9],[94,10],[95,11],[96,12],[97,13],[98,14],[99,15],[100,16],[101,17],[102,18],[103,19],[104,20],[105,21],[106,22],[107,23],[133,24],[108,25],[109,26],[110,27],[111,28],[112,29],[113,30],[114,31],[115,32],[116,33],[117,34],[118,35],[119,36],[120,37],[121,38],[122,39],[123,40],[124,41],[125,42],[126,43],[127,44],[128,45],[129,46],[130,47],[131,48],[88,49],[86,50],[87,51],[85,52],[75,53],[73,54],[70,55],[74,56],[72,55],[76,56],[59,57],[56,58],[58,59],[61,4]],"semanticDiagnosticsPerFile":[80,78,79,63,62,77,60,81,84,83,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,91,132,105,106,107,133,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,134,82,88,86,87,85,75,67,73,71,70,69,68,74,72,51,52,9,10,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,53,49,46,47,48,1,50,12,11,64,65,76,66,59,54,56,55,57,58,61],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"5.1.3"}