@pnpm/prepare 0.0.40

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,300 @@
1
+ # @pnpm/prepare
2
+
3
+ ## 0.0.40
4
+
5
+ ### Patch Changes
6
+
7
+ - @pnpm/assert-project@2.2.21
8
+
9
+ ## 0.0.39
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [18ba5e2c0]
14
+ - @pnpm/types@8.0.1
15
+ - @pnpm/assert-project@2.2.20
16
+
17
+ ## 0.0.38
18
+
19
+ ### Patch Changes
20
+
21
+ - @pnpm/assert-project@2.2.19
22
+
23
+ ## 0.0.37
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [d504dc380]
28
+ - Updated dependencies [542014839]
29
+ - @pnpm/types@8.0.0
30
+ - @pnpm/assert-project@2.2.18
31
+
32
+ ## 0.0.36
33
+
34
+ ### Patch Changes
35
+
36
+ - @pnpm/assert-project@2.2.17
37
+
38
+ ## 0.0.35
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [b138d048c]
43
+ - @pnpm/types@7.10.0
44
+ - @pnpm/assert-project@2.2.16
45
+
46
+ ## 0.0.34
47
+
48
+ ### Patch Changes
49
+
50
+ - @pnpm/assert-project@2.2.15
51
+
52
+ ## 0.0.33
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [26cd01b88]
57
+ - @pnpm/types@7.9.0
58
+ - @pnpm/assert-project@2.2.14
59
+
60
+ ## 0.0.32
61
+
62
+ ### Patch Changes
63
+
64
+ - @pnpm/assert-project@2.2.13
65
+
66
+ ## 0.0.31
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [b5734a4a7]
71
+ - @pnpm/types@7.8.0
72
+ - @pnpm/assert-project@2.2.12
73
+
74
+ ## 0.0.30
75
+
76
+ ### Patch Changes
77
+
78
+ - Updated dependencies [6493e0c93]
79
+ - @pnpm/types@7.7.1
80
+ - @pnpm/assert-project@2.2.11
81
+
82
+ ## 0.0.29
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [ba9b2eba1]
87
+ - @pnpm/types@7.7.0
88
+ - @pnpm/assert-project@2.2.10
89
+
90
+ ## 0.0.28
91
+
92
+ ### Patch Changes
93
+
94
+ - Updated dependencies [302ae4f6f]
95
+ - @pnpm/types@7.6.0
96
+ - @pnpm/assert-project@2.2.9
97
+
98
+ ## 0.0.27
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies [4ab87844a]
103
+ - @pnpm/types@7.5.0
104
+ - @pnpm/assert-project@2.2.8
105
+
106
+ ## 0.0.26
107
+
108
+ ### Patch Changes
109
+
110
+ - Updated dependencies [b734b45ea]
111
+ - @pnpm/types@7.4.0
112
+ - @pnpm/assert-project@2.2.7
113
+
114
+ ## 0.0.25
115
+
116
+ ### Patch Changes
117
+
118
+ - Updated dependencies [8e76690f4]
119
+ - @pnpm/types@7.3.0
120
+ - @pnpm/assert-project@2.2.6
121
+
122
+ ## 0.0.24
123
+
124
+ ### Patch Changes
125
+
126
+ - Updated dependencies [724c5abd8]
127
+ - @pnpm/types@7.2.0
128
+ - @pnpm/assert-project@2.2.5
129
+
130
+ ## 0.0.23
131
+
132
+ ### Patch Changes
133
+
134
+ - @pnpm/assert-project@2.2.4
135
+
136
+ ## 0.0.22
137
+
138
+ ### Patch Changes
139
+
140
+ - @pnpm/assert-project@2.2.3
141
+
142
+ ## 0.0.21
143
+
144
+ ### Patch Changes
145
+
146
+ - Updated dependencies [97c64bae4]
147
+ - @pnpm/types@7.1.0
148
+ - @pnpm/assert-project@2.2.2
149
+
150
+ ## 0.0.20
151
+
152
+ ### Patch Changes
153
+
154
+ - @pnpm/assert-project@2.2.1
155
+
156
+ ## 0.0.19
157
+
158
+ ### Patch Changes
159
+
160
+ - Updated dependencies [97b986fbc]
161
+ - Updated dependencies [735d2ac79]
162
+ - @pnpm/types@7.0.0
163
+ - @pnpm/assert-project@2.2.0
164
+
165
+ ## 0.0.18
166
+
167
+ ### Patch Changes
168
+
169
+ - @pnpm/assert-project@2.1.16
170
+
171
+ ## 0.0.17
172
+
173
+ ### Patch Changes
174
+
175
+ - Updated dependencies [9ad8c27bf]
176
+ - @pnpm/types@6.4.0
177
+ - @pnpm/assert-project@2.1.15
178
+
179
+ ## 0.0.16
180
+
181
+ ### Patch Changes
182
+
183
+ - @pnpm/assert-project@2.1.14
184
+
185
+ ## 0.0.15
186
+
187
+ ### Patch Changes
188
+
189
+ - 09492b7b4: Update write-file-atomic to v3.
190
+ - @pnpm/assert-project@2.1.13
191
+
192
+ ## 0.0.14
193
+
194
+ ### Patch Changes
195
+
196
+ - @pnpm/assert-project@2.1.12
197
+
198
+ ## 0.0.13
199
+
200
+ ### Patch Changes
201
+
202
+ - Updated dependencies [b5d694e7f]
203
+ - @pnpm/types@6.3.1
204
+ - @pnpm/assert-project@2.1.11
205
+
206
+ ## 0.0.12
207
+
208
+ ### Patch Changes
209
+
210
+ - Updated dependencies [d54043ee4]
211
+ - @pnpm/types@6.3.0
212
+ - @pnpm/assert-project@2.1.10
213
+
214
+ ## 0.0.11
215
+
216
+ ### Patch Changes
217
+
218
+ - @pnpm/assert-project@2.1.9
219
+
220
+ ## 0.0.10
221
+
222
+ ### Patch Changes
223
+
224
+ - @pnpm/assert-project@2.1.8
225
+
226
+ ## 0.0.9
227
+
228
+ ### Patch Changes
229
+
230
+ - @pnpm/assert-project@2.1.7
231
+
232
+ ## 0.0.8
233
+
234
+ ### Patch Changes
235
+
236
+ - @pnpm/assert-project@2.1.6
237
+
238
+ ## 0.0.7
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [db17f6f7b]
243
+ - @pnpm/types@6.2.0
244
+ - @pnpm/assert-project@2.1.5
245
+
246
+ ## 0.0.6
247
+
248
+ ### Patch Changes
249
+
250
+ - Updated dependencies [71a8c8ce3]
251
+ - @pnpm/types@6.1.0
252
+ - @pnpm/assert-project@2.1.4
253
+
254
+ ## 0.0.5
255
+
256
+ ### Patch Changes
257
+
258
+ - @pnpm/assert-project@2.1.3
259
+
260
+ ## 0.0.4
261
+
262
+ ### Patch Changes
263
+
264
+ - @pnpm/assert-project@2.1.2
265
+
266
+ ## 0.0.3
267
+
268
+ ### Patch Changes
269
+
270
+ - @pnpm/assert-project@2.1.1
271
+
272
+ ## 0.0.2
273
+
274
+ ### Patch Changes
275
+
276
+ - Updated dependencies [3f73eaf0c]
277
+ - Updated dependencies [da091c711]
278
+ - @pnpm/assert-project@2.1.0
279
+ - @pnpm/types@6.0.0
280
+
281
+ ## 0.0.2-alpha.1
282
+
283
+ ### Patch Changes
284
+
285
+ - Updated dependencies [3f73eaf0]
286
+ - Updated dependencies [da091c71]
287
+ - @pnpm/assert-project@2.1.0-alpha.1
288
+ - @pnpm/types@6.0.0-alpha.0
289
+
290
+ ## 0.0.2-alpha.0
291
+
292
+ ### Patch Changes
293
+
294
+ - @pnpm/assert-project@2.0.2-alpha.0
295
+
296
+ ## 0.0.1
297
+
298
+ ### Patch Changes
299
+
300
+ - @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-2022 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,19 @@
1
+ import { Modules, Project } from '@pnpm/assert-project';
2
+ import { ProjectManifest } from '@pnpm/types';
3
+ export { Modules, Project };
4
+ export declare type ManifestFormat = 'JSON' | 'JSON5' | 'YAML';
5
+ export declare function tempDir(chdir?: boolean): string;
6
+ export declare function preparePackages(pkgs: Array<{
7
+ location: string;
8
+ package: ProjectManifest;
9
+ } | ProjectManifest>, opts?: {
10
+ manifestFormat?: ManifestFormat;
11
+ tempDir?: string;
12
+ }): {
13
+ [name: string]: Project;
14
+ };
15
+ export default function prepare(manifest?: ProjectManifest, opts?: {
16
+ manifestFormat?: ManifestFormat;
17
+ tempDir?: string;
18
+ }): Project;
19
+ export declare function prepareEmpty(): Project;
package/lib/index.js ADDED
@@ -0,0 +1,76 @@
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.preparePackages = exports.tempDir = void 0;
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const path_1 = __importDefault(require("path"));
9
+ const assert_project_1 = __importDefault(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
+ for (const aPkg of pkgs) {
34
+ if (typeof aPkg['location'] === 'string') {
35
+ result[aPkg['package']['name']] = prepare(aPkg['package'], {
36
+ manifestFormat,
37
+ tempDir: path_1.default.join(dirname, aPkg['location']),
38
+ });
39
+ }
40
+ else {
41
+ result[aPkg['name']] = prepare(aPkg, {
42
+ manifestFormat,
43
+ tempDir: path_1.default.join(dirname, aPkg['name']),
44
+ });
45
+ }
46
+ }
47
+ process.chdir('..');
48
+ return result;
49
+ }
50
+ exports.preparePackages = preparePackages;
51
+ function prepare(manifest, opts) {
52
+ const dir = opts?.tempDir ?? path_1.default.join(tempDir(), 'project');
53
+ fs_1.default.mkdirSync(dir, { recursive: true });
54
+ switch (opts?.manifestFormat ?? 'JSON') {
55
+ case 'JSON':
56
+ write_pkg_1.default.sync(dir, { name: 'project', version: '0.0.0', ...manifest }); // eslint-disable-line
57
+ break;
58
+ case 'JSON5':
59
+ (0, write_json5_file_1.sync)(path_1.default.join(dir, 'package.json5'), { name: 'project', version: '0.0.0', ...manifest }); // eslint-disable-line
60
+ break;
61
+ case 'YAML':
62
+ (0, write_yaml_file_1.sync)(path_1.default.join(dir, 'package.yaml'), { name: 'project', version: '0.0.0', ...manifest }); // eslint-disable-line
63
+ break;
64
+ }
65
+ process.chdir(dir);
66
+ return (0, assert_project_1.default)(dir);
67
+ }
68
+ exports.default = prepare;
69
+ function prepareEmpty() {
70
+ const pkgTmpPath = path_1.default.join(tempDir(), 'project');
71
+ fs_1.default.mkdirSync(pkgTmpPath, { recursive: true });
72
+ process.chdir(pkgTmpPath);
73
+ return (0, assert_project_1.default)(pkgTmpPath);
74
+ }
75
+ exports.prepareEmpty = prepareEmpty;
76
+ //# 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.40",
4
+ "main": "lib/index.js",
5
+ "types": "lib/index.d.ts",
6
+ "dependencies": {
7
+ "@pnpm/assert-project": "2.2.21",
8
+ "@pnpm/types": "8.0.1",
9
+ "unique-string": "^2.0.0",
10
+ "write-json5-file": "^3.1.0",
11
+ "write-pkg": "4.0.0",
12
+ "write-yaml-file": "^4.2.0"
13
+ },
14
+ "devDependencies": {
15
+ "@pnpm/prepare": "0.0.40",
16
+ "@types/node": "^14.17.32"
17
+ },
18
+ "scripts": {
19
+ "lint": "tslint -c ../../tslint.json --project .",
20
+ "test": "pnpm run compile",
21
+ "compile": "rimraf tsconfig.tsbuildinfo lib && tsc --build"
22
+ }
23
+ }
package/src/index.ts ADDED
@@ -0,0 +1,92 @@
1
+ import fs from 'fs'
2
+ import path from 'path'
3
+ import assertProject, { Modules, Project } from '@pnpm/assert-project'
4
+ import { 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 { 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
+ export function preparePackages (
31
+ pkgs: Array<{ location: string, package: ProjectManifest } | ProjectManifest>,
32
+ opts?: {
33
+ manifestFormat?: ManifestFormat
34
+ tempDir?: string
35
+ }
36
+ ) {
37
+ const pkgTmpPath = opts?.tempDir ?? path.join(tempDir(), 'project')
38
+ const manifestFormat = opts?.manifestFormat
39
+
40
+ const dirname = path.dirname(pkgTmpPath)
41
+ const result: { [name: string]: Project } = {}
42
+ for (const aPkg of pkgs) {
43
+ if (typeof aPkg['location'] === 'string') {
44
+ result[aPkg['package']['name']] = prepare(aPkg['package'], {
45
+ manifestFormat,
46
+ tempDir: path.join(dirname, aPkg['location']),
47
+ })
48
+ } else {
49
+ result[aPkg['name']] = prepare(aPkg as ProjectManifest, {
50
+ manifestFormat,
51
+ tempDir: path.join(dirname, aPkg['name']),
52
+ })
53
+ }
54
+ }
55
+ process.chdir('..')
56
+ return result
57
+ }
58
+
59
+ export default function prepare (
60
+ manifest?: ProjectManifest,
61
+ opts?: {
62
+ manifestFormat?: ManifestFormat
63
+ tempDir?: string
64
+ }
65
+ ) {
66
+ const dir = opts?.tempDir ?? path.join(tempDir(), 'project')
67
+
68
+ fs.mkdirSync(dir, { recursive: true })
69
+ switch (opts?.manifestFormat ?? 'JSON') {
70
+ case 'JSON':
71
+ writePkg.sync(dir, { name: 'project', version: '0.0.0', ...manifest } as any) // eslint-disable-line
72
+ break
73
+ case 'JSON5':
74
+ writeJson5File(path.join(dir, 'package.json5'), { name: 'project', version: '0.0.0', ...manifest } as any) // eslint-disable-line
75
+ break
76
+ case 'YAML':
77
+ writeYamlFile(path.join(dir, 'package.yaml'), { name: 'project', version: '0.0.0', ...manifest } as any) // eslint-disable-line
78
+ break
79
+ }
80
+ process.chdir(dir)
81
+
82
+ return assertProject(dir)
83
+ }
84
+
85
+ export function prepareEmpty () {
86
+ const pkgTmpPath = path.join(tempDir(), 'project')
87
+
88
+ fs.mkdirSync(pkgTmpPath, { recursive: true })
89
+ process.chdir(pkgTmpPath)
90
+
91
+ return assertProject(pkgTmpPath)
92
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,19 @@
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
+ }
@@ -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@4.6.4/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.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","../../packages/lockfile-types/lib/index.d.ts","../../packages/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@4.2.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/@types+node@14.18.16/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/globals.global.d.ts","../../node_modules/.pnpm/@types+node@14.18.16/node_modules/@types/node/index.d.ts","../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/types.d.ts","../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/types.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/diffLines.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/printDiffs.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/index.d.ts","../../node_modules/.pnpm/jest-matcher-utils@27.5.1/node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/.pnpm/@types+jest@27.5.0/node_modules/@types/jest/index.d.ts","../../node_modules/.pnpm/@types+prettier@2.6.0/node_modules/@types/prettier/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"dbb73d4d99be496175cb432c74c2615f78c76f4272f1d83cba11ee0ed6dbddf0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"f58c6d0669d1ee04b2fcb0e87fb949b6828602f3f29c7bf6c76a214f16fd50d5","103be60920f6343103a9842c6eec769b577cd8ddc2e0a3e7ff7ca86adf32ce77","45a92499a4b33937697afd9c4e1f714f20b7e89d8bff83736a00b19fca63de13","fe0b95e70e95b6da3c7d366f8af021859fa453d6a443410087eb127d174fae8c","81d4834f1eef8c3057ea3594a5262c4425e5e2d0e56c344bf82d93f360bd48b5","f12c47a423f97fa985caebf23bd09b2ea7cb458d37c5ef150af751c1c319ab6e","e4b3af8d821ba8d59cdb52facbdfa001771ab624a66b8bc00814f93a8cf191cc","de49cc2fabb5543da1d53d2d946664e1a162b4cd89d5fac3d6359546a368f6c0","213038d85b1296e0aa1073ca08bbd0542d686d4709f351c81ad4d88bd13b6bd8","dc5f14ce88760ee6f79876e231631527bd910eff8eb7bfab46edfdff649fedfc","edbe9e0d1e300f6154f623bc17f3d4623b998c818a787132823b0cd0173a1cf1","773a3e1723f63c863eb08ee3c7078ee09d8313cb1748d0fa599bd0d87ffceab9","3b0621ec1b951b4be0026ea7ee3de4729dbc10df15f4a8d1f4226599e33c8b1e","e11ccfc919b268fab48b66b5f8fa05af6b9eee2fd2aad424a7b120e85692fe4b",{"version":"933245a2572183250aaa79c2a552c4dbe86a5a8a07cd1d6a7e6c9304fc88d4fd","affectsGlobalScope":true},"1bc1d7c114979ab829e1bbbd7b521aa3e08151dbe5ad94943a0e4ef1cf936f82","f6aeb8f3f816ea2e0aa1a3e298b5050f19ae39e4788c7debfd901efcb4839f4c","c2c4016af241fd56f469865f0694d99deaabf7865b1b4c2257d8b96e702e43b4","b065ba1b9a52bc541a638fa4b11115644001bcf82a0a0b984b7c1834451bd2b5","f705a4de6b2b62abf6de9a97e30ac0748b3c24ddd90c7ad4e596f2818cb3c1c9","091af8276fbc70609a00e296840bd284a2fe29df282f0e8dae2de9f0a706685f","fce9e6a73ffe9095b49281a04ae7df7a733b52db1f89e27674c4a080db45cd2d","a2998dedd40ab9cab68afb3c95a49c1ba87132146e00044a0e8006c6896c837b","788254cb1ec00457050630b0189e6d4ca5a70f6487a3bd2fe05848da2f865ea3","f14b21df528ae549205bfd01a457fb9dcdd6a8bffa6125651912c98008f699e1","34d72018c3c5b6506effc6a3dfdf780270762c032361cf2dfea09b8a340aeedb",{"version":"839be340b626c4eccb5670dd5eeb6aa60f695cfe0e58578f16107cc6936eff0b","affectsGlobalScope":true},"48da595b85153535634d7750c09a3b2a1672e8c387b9ae8fb8078647d998eb3c","4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"f6e688f3b59d52391c1d6eb8d02e6da472ce2a20e67ea8486109f592d9434fe7","affectsGlobalScope":true},"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","9b2a8f604e7c0482a9061755f00b287cc99bd8718dc82d8207dd74c599b6dc43","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","50ae84dc0183f9f69b4d0933e240fb76cc77fddb2ec223dd070d12420b6ccfa6","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"cc829932ffaf5c49092f878bec18af1fa5d8591b45a45e2b7f757f793cb3b4ed","47db10fdc4e76c4f4598cf7c91ba6bfde6cf6d8082c51860fe751643bf359739","53d2c24a3cbc00a88ebaf8ab8e1b6e206bc3a6647d544f877241684ea3d484e3","ecee890ff04b70d8e8815fb753c20f24f95203426267a577823d375009c1ace7","0ce99c641ea20b0c0c09d093fc28f18f5ab31dc80033707a1ac3154399de2559","7dc9ed91e245cf0c4f8add7f6845d0cb08cceec4408ce3398c51e1f6dd7679ec","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","9878d10740b7a3ab6f0e9a8df3a9660fa3f51eb5e84ab2f8cf7e12a775268b08","1606ea615c0a5ea9f5c1376a33e34c0e1112e8dee31a5b3b8a74ce781893aa6f","9fef9de633d01cb7f01f68195626a890ededd25cf96a1e785617d08c8668230d","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","c3689f70ce7563c2299f2dcb3c72efdf6f87ae510e7456fa6223c767d0ca99fc","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","82e1723b20fa0b15a7da0d1a03fec88348f82f640f7a2f308d6c0fac780cfc7c","605c24042a348b033b30121cff64380eb5d6d82853c5608f1f94ef72385cf5c9","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"eabefc2999c1489cf870e0c85af908900462fa245822d9a4616780a1a129945d","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"79d679a1d56574cc5cef92be1f0e5e8fb4af62fb55933b236670a0e0a23c83f6","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73",{"version":"3ca3179dd4772b596ed81df8bb9c541e1416d86343c582a105013b20925de051","affectsGlobalScope":true},"429b6df7d7b94389bd42cfdf39bccea903acd3628498cec6172302801fbeac89"],"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,"suppressImplicitAnyIndexErrors":true,"target":7},"fileIdsList":[[118,123],[71],[73],[74,79],[75,83,84,91,100],[75,76,83,91],[77,107],[78,79,84,92],[79,100],[80,81,83,91],[81],[82,83],[83],[83,84,85,100,106],[84,85],[86,91,100,106],[83,84,86,87,91,100,103,106],[86,88,100,103,106],[71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113],[83,89],[90,106],[81,83,91,100],[92],[93],[73,94],[95,105],[96],[97],[83,98],[98,99,107,109],[83,100],[101],[102],[91,100,103],[104],[91,105],[97,106],[107],[100,108],[109],[110],[83,85,100,106,109,111],[100,112],[116,119],[116,119,120,121],[118],[115,122],[117],[57,58,59,60,61,62,63,64],[57],[58],[65],[49],[44,45,46,47,48],[44,45],[45],[50,51,52],[49,53,54,55,56,66,84,93],[68,69]],"referencedMap":[[124,1],[71,2],[73,3],[74,4],[75,5],[76,6],[77,7],[78,8],[79,9],[80,10],[81,11],[82,12],[83,13],[84,14],[85,15],[86,16],[87,17],[88,18],[114,19],[89,20],[90,21],[91,22],[92,23],[93,24],[94,25],[95,26],[96,27],[97,28],[98,29],[99,30],[100,31],[101,32],[102,33],[103,34],[104,35],[105,36],[106,37],[107,38],[108,39],[109,40],[110,41],[111,42],[112,43],[120,44],[122,45],[121,44],[119,46],[123,47],[118,48],[65,49],[63,50],[60,51],[64,52],[62,51],[66,52],[50,53],[51,53],[49,54],[46,55],[48,56],[53,57],[67,58],[70,59]],"exportedModulesMap":[[124,1],[71,2],[73,3],[74,4],[75,5],[76,6],[77,7],[78,8],[79,9],[80,10],[81,11],[82,12],[83,13],[84,14],[85,15],[86,16],[87,17],[88,18],[114,19],[89,20],[90,21],[91,22],[92,23],[93,24],[94,25],[95,26],[96,27],[97,28],[98,29],[99,30],[100,31],[101,32],[102,33],[103,34],[104,35],[105,36],[106,37],[107,38],[108,39],[109,40],[110,41],[111,42],[112,43],[120,44],[122,45],[121,44],[119,46],[123,47],[118,48],[65,49],[63,50],[60,51],[64,52],[62,51],[66,52],[50,53],[51,53],[49,54],[46,55],[48,56],[53,57],[67,58],[70,59]],"semanticDiagnosticsPerFile":[124,71,73,74,75,76,77,78,79,80,81,82,83,84,85,72,113,86,87,88,114,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,125,115,116,120,122,121,119,123,118,117,65,57,63,61,60,59,58,64,62,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,43,41,37,38,39,40,1,42,11,10,54,55,66,56,50,51,49,44,46,45,47,48,53,52,67,70,68,69]},"version":"4.6.4"}