@angular/compiler-cli 13.0.0-rc.1 → 13.1.0-next.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/bundles/chunk-5VGHS4A4.js +68 -0
- package/bundles/chunk-5VGHS4A4.js.map +6 -0
- package/bundles/chunk-AMD3PZ5E.js +5094 -0
- package/bundles/chunk-AMD3PZ5E.js.map +6 -0
- package/bundles/chunk-BPCUCINV.js +29 -0
- package/bundles/chunk-BPCUCINV.js.map +6 -0
- package/bundles/chunk-CRTDZEUV.js +678 -0
- package/bundles/chunk-CRTDZEUV.js.map +6 -0
- package/bundles/chunk-DDB2HQYR.js +5663 -0
- package/bundles/chunk-DDB2HQYR.js.map +6 -0
- package/bundles/chunk-DLQQUCPJ.js +448 -0
- package/bundles/chunk-DLQQUCPJ.js.map +6 -0
- package/bundles/chunk-E64KJMKN.js +968 -0
- package/bundles/chunk-E64KJMKN.js.map +6 -0
- package/bundles/chunk-GKA4YGOR.js +43 -0
- package/bundles/chunk-GKA4YGOR.js.map +6 -0
- package/bundles/chunk-IG72ZKR7.js +424 -0
- package/bundles/chunk-IG72ZKR7.js.map +6 -0
- package/bundles/chunk-J6CW3T62.js +206 -0
- package/bundles/chunk-J6CW3T62.js.map +6 -0
- package/bundles/chunk-JTYUTYS2.js +56 -0
- package/bundles/chunk-JTYUTYS2.js.map +6 -0
- package/bundles/chunk-M7P4HAA4.js +358 -0
- package/bundles/chunk-M7P4HAA4.js.map +6 -0
- package/bundles/chunk-QKLPWCHI.js +1261 -0
- package/bundles/chunk-QKLPWCHI.js.map +6 -0
- package/bundles/chunk-QLSZVEIC.js +11992 -0
- package/bundles/chunk-QLSZVEIC.js.map +6 -0
- package/bundles/chunk-WOCQ7IIB.js +2175 -0
- package/bundles/chunk-WOCQ7IIB.js.map +6 -0
- package/bundles/chunk-XKKOHZ3B.js +116 -0
- package/bundles/chunk-XKKOHZ3B.js.map +6 -0
- package/bundles/chunk-XPUO7JIT.js +380 -0
- package/bundles/chunk-XPUO7JIT.js.map +6 -0
- package/bundles/index.js +96 -20254
- package/bundles/index.js.map +2 -2
- package/bundles/linker/babel/index.js +24 -1987
- package/bundles/linker/babel/index.js.map +2 -2
- package/bundles/linker/index.js +12 -1833
- package/bundles/linker/index.js.map +2 -2
- package/bundles/ngcc/index.js +27 -16027
- package/bundles/ngcc/index.js.map +2 -2
- package/bundles/ngcc/main-ngcc.js +19 -16111
- package/bundles/ngcc/main-ngcc.js.map +2 -2
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +32 -13784
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +2 -2
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +11 -310
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js.map +2 -2
- package/bundles/private/bazel.js +4 -81
- package/bundles/private/bazel.js.map +2 -2
- package/bundles/private/localize.js +27 -870
- package/bundles/private/localize.js.map +2 -2
- package/bundles/private/migrations.js +13 -2156
- package/bundles/private/migrations.js.map +2 -2
- package/bundles/private/tooling.js +8 -931
- package/bundles/private/tooling.js.map +2 -2
- package/bundles/src/bin/ng_xi18n.js +22 -20424
- package/bundles/src/bin/ng_xi18n.js.map +2 -2
- package/bundles/src/bin/ngc.js +16 -20437
- package/bundles/src/bin/ngc.js.map +2 -2
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/src/ng_module.d.ts +1 -2
- package/src/ngtsc/diagnostics/index.d.ts +4 -2
- package/src/ngtsc/diagnostics/src/docs.d.ts +14 -0
- package/src/ngtsc/diagnostics/src/error_details_base_url.d.ts +16 -0
- package/src/ngtsc/diagnostics/src/util.d.ts +2 -0
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
|
|
2
|
+
import {createRequire as __cjsCompatRequire} from 'module';
|
|
3
|
+
const require = __cjsCompatRequire(import.meta.url);
|
|
4
|
+
const __ESM_IMPORT_META_URL__ = import.meta.url;
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
__require
|
|
8
|
+
} from "./chunk-5VGHS4A4.js";
|
|
9
|
+
|
|
10
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
|
|
11
|
+
var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
|
|
12
|
+
function normalizeSeparators(path) {
|
|
13
|
+
return path.replace(/\\/g, "/");
|
|
14
|
+
}
|
|
15
|
+
function stripExtension(path) {
|
|
16
|
+
return path.replace(TS_DTS_JS_EXTENSION, "");
|
|
17
|
+
}
|
|
18
|
+
function getSourceFileOrError(program, fileName) {
|
|
19
|
+
const sf = program.getSourceFile(fileName);
|
|
20
|
+
if (sf === void 0) {
|
|
21
|
+
throw new Error(`Program does not contain "${fileName}" - available files are ${program.getSourceFiles().map((sf2) => sf2.fileName).join(", ")}`);
|
|
22
|
+
}
|
|
23
|
+
return sf;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
27
|
+
var InvalidFileSystem = class {
|
|
28
|
+
exists(path) {
|
|
29
|
+
throw makeError();
|
|
30
|
+
}
|
|
31
|
+
readFile(path) {
|
|
32
|
+
throw makeError();
|
|
33
|
+
}
|
|
34
|
+
readFileBuffer(path) {
|
|
35
|
+
throw makeError();
|
|
36
|
+
}
|
|
37
|
+
writeFile(path, data, exclusive) {
|
|
38
|
+
throw makeError();
|
|
39
|
+
}
|
|
40
|
+
removeFile(path) {
|
|
41
|
+
throw makeError();
|
|
42
|
+
}
|
|
43
|
+
symlink(target, path) {
|
|
44
|
+
throw makeError();
|
|
45
|
+
}
|
|
46
|
+
readdir(path) {
|
|
47
|
+
throw makeError();
|
|
48
|
+
}
|
|
49
|
+
lstat(path) {
|
|
50
|
+
throw makeError();
|
|
51
|
+
}
|
|
52
|
+
stat(path) {
|
|
53
|
+
throw makeError();
|
|
54
|
+
}
|
|
55
|
+
pwd() {
|
|
56
|
+
throw makeError();
|
|
57
|
+
}
|
|
58
|
+
chdir(path) {
|
|
59
|
+
throw makeError();
|
|
60
|
+
}
|
|
61
|
+
extname(path) {
|
|
62
|
+
throw makeError();
|
|
63
|
+
}
|
|
64
|
+
copyFile(from, to) {
|
|
65
|
+
throw makeError();
|
|
66
|
+
}
|
|
67
|
+
moveFile(from, to) {
|
|
68
|
+
throw makeError();
|
|
69
|
+
}
|
|
70
|
+
ensureDir(path) {
|
|
71
|
+
throw makeError();
|
|
72
|
+
}
|
|
73
|
+
removeDeep(path) {
|
|
74
|
+
throw makeError();
|
|
75
|
+
}
|
|
76
|
+
isCaseSensitive() {
|
|
77
|
+
throw makeError();
|
|
78
|
+
}
|
|
79
|
+
resolve(...paths) {
|
|
80
|
+
throw makeError();
|
|
81
|
+
}
|
|
82
|
+
dirname(file) {
|
|
83
|
+
throw makeError();
|
|
84
|
+
}
|
|
85
|
+
join(basePath, ...paths) {
|
|
86
|
+
throw makeError();
|
|
87
|
+
}
|
|
88
|
+
isRoot(path) {
|
|
89
|
+
throw makeError();
|
|
90
|
+
}
|
|
91
|
+
isRooted(path) {
|
|
92
|
+
throw makeError();
|
|
93
|
+
}
|
|
94
|
+
relative(from, to) {
|
|
95
|
+
throw makeError();
|
|
96
|
+
}
|
|
97
|
+
basename(filePath, extension) {
|
|
98
|
+
throw makeError();
|
|
99
|
+
}
|
|
100
|
+
realpath(filePath) {
|
|
101
|
+
throw makeError();
|
|
102
|
+
}
|
|
103
|
+
getDefaultLibLocation() {
|
|
104
|
+
throw makeError();
|
|
105
|
+
}
|
|
106
|
+
normalize(path) {
|
|
107
|
+
throw makeError();
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
function makeError() {
|
|
111
|
+
return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
|
|
115
|
+
var fs = new InvalidFileSystem();
|
|
116
|
+
function getFileSystem() {
|
|
117
|
+
return fs;
|
|
118
|
+
}
|
|
119
|
+
function setFileSystem(fileSystem) {
|
|
120
|
+
fs = fileSystem;
|
|
121
|
+
}
|
|
122
|
+
function absoluteFrom(path) {
|
|
123
|
+
if (!fs.isRooted(path)) {
|
|
124
|
+
throw new Error(`Internal Error: absoluteFrom(${path}): path is not absolute`);
|
|
125
|
+
}
|
|
126
|
+
return fs.resolve(path);
|
|
127
|
+
}
|
|
128
|
+
var ABSOLUTE_PATH = Symbol("AbsolutePath");
|
|
129
|
+
function absoluteFromSourceFile(sf) {
|
|
130
|
+
const sfWithPatch = sf;
|
|
131
|
+
if (sfWithPatch[ABSOLUTE_PATH] === void 0) {
|
|
132
|
+
sfWithPatch[ABSOLUTE_PATH] = fs.resolve(sfWithPatch.fileName);
|
|
133
|
+
}
|
|
134
|
+
return sfWithPatch[ABSOLUTE_PATH];
|
|
135
|
+
}
|
|
136
|
+
function relativeFrom(path) {
|
|
137
|
+
const normalized = normalizeSeparators(path);
|
|
138
|
+
if (fs.isRooted(normalized)) {
|
|
139
|
+
throw new Error(`Internal Error: relativeFrom(${path}): path is not relative`);
|
|
140
|
+
}
|
|
141
|
+
return normalized;
|
|
142
|
+
}
|
|
143
|
+
function dirname(file) {
|
|
144
|
+
return fs.dirname(file);
|
|
145
|
+
}
|
|
146
|
+
function join(basePath, ...paths) {
|
|
147
|
+
return fs.join(basePath, ...paths);
|
|
148
|
+
}
|
|
149
|
+
function resolve(basePath, ...paths) {
|
|
150
|
+
return fs.resolve(basePath, ...paths);
|
|
151
|
+
}
|
|
152
|
+
function isRoot(path) {
|
|
153
|
+
return fs.isRoot(path);
|
|
154
|
+
}
|
|
155
|
+
function isRooted(path) {
|
|
156
|
+
return fs.isRooted(path);
|
|
157
|
+
}
|
|
158
|
+
function relative(from, to) {
|
|
159
|
+
return fs.relative(from, to);
|
|
160
|
+
}
|
|
161
|
+
function basename(filePath, extension) {
|
|
162
|
+
return fs.basename(filePath, extension);
|
|
163
|
+
}
|
|
164
|
+
function isLocalRelativePath(relativePath) {
|
|
165
|
+
return !isRooted(relativePath) && !relativePath.startsWith("..");
|
|
166
|
+
}
|
|
167
|
+
function toRelativeImport(relativePath) {
|
|
168
|
+
return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
|
|
172
|
+
import {
|
|
173
|
+
EOL
|
|
174
|
+
} from "os";
|
|
175
|
+
import ts from "typescript";
|
|
176
|
+
var NgtscCompilerHost = class {
|
|
177
|
+
constructor(fs3, options = {}) {
|
|
178
|
+
this.fs = fs3;
|
|
179
|
+
this.options = options;
|
|
180
|
+
}
|
|
181
|
+
getSourceFile(fileName, languageVersion) {
|
|
182
|
+
const text = this.readFile(fileName);
|
|
183
|
+
return text !== void 0 ? ts.createSourceFile(fileName, text, languageVersion, true) : void 0;
|
|
184
|
+
}
|
|
185
|
+
getDefaultLibFileName(options) {
|
|
186
|
+
return this.fs.join(this.getDefaultLibLocation(), ts.getDefaultLibFileName(options));
|
|
187
|
+
}
|
|
188
|
+
getDefaultLibLocation() {
|
|
189
|
+
return this.fs.getDefaultLibLocation();
|
|
190
|
+
}
|
|
191
|
+
writeFile(fileName, data, writeByteOrderMark, onError, sourceFiles) {
|
|
192
|
+
const path = absoluteFrom(fileName);
|
|
193
|
+
this.fs.ensureDir(this.fs.dirname(path));
|
|
194
|
+
this.fs.writeFile(path, data);
|
|
195
|
+
}
|
|
196
|
+
getCurrentDirectory() {
|
|
197
|
+
return this.fs.pwd();
|
|
198
|
+
}
|
|
199
|
+
getCanonicalFileName(fileName) {
|
|
200
|
+
return this.useCaseSensitiveFileNames() ? fileName : fileName.toLowerCase();
|
|
201
|
+
}
|
|
202
|
+
useCaseSensitiveFileNames() {
|
|
203
|
+
return this.fs.isCaseSensitive();
|
|
204
|
+
}
|
|
205
|
+
getNewLine() {
|
|
206
|
+
switch (this.options.newLine) {
|
|
207
|
+
case ts.NewLineKind.CarriageReturnLineFeed:
|
|
208
|
+
return "\r\n";
|
|
209
|
+
case ts.NewLineKind.LineFeed:
|
|
210
|
+
return "\n";
|
|
211
|
+
default:
|
|
212
|
+
return EOL;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
fileExists(fileName) {
|
|
216
|
+
const absPath = this.fs.resolve(fileName);
|
|
217
|
+
return this.fs.exists(absPath) && this.fs.stat(absPath).isFile();
|
|
218
|
+
}
|
|
219
|
+
readFile(fileName) {
|
|
220
|
+
const absPath = this.fs.resolve(fileName);
|
|
221
|
+
if (!this.fileExists(absPath)) {
|
|
222
|
+
return void 0;
|
|
223
|
+
}
|
|
224
|
+
return this.fs.readFile(absPath);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
|
|
229
|
+
var LogicalProjectPath = {
|
|
230
|
+
relativePathBetween: function(from, to) {
|
|
231
|
+
const relativePath = relative(dirname(resolve(from)), resolve(to));
|
|
232
|
+
return toRelativeImport(relativePath);
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
var LogicalFileSystem = class {
|
|
236
|
+
constructor(rootDirs, compilerHost) {
|
|
237
|
+
this.compilerHost = compilerHost;
|
|
238
|
+
this.cache = new Map();
|
|
239
|
+
this.rootDirs = rootDirs.concat([]).sort((a, b) => b.length - a.length);
|
|
240
|
+
this.canonicalRootDirs = this.rootDirs.map((dir) => this.compilerHost.getCanonicalFileName(dir));
|
|
241
|
+
}
|
|
242
|
+
logicalPathOfSf(sf) {
|
|
243
|
+
return this.logicalPathOfFile(absoluteFrom(sf.fileName));
|
|
244
|
+
}
|
|
245
|
+
logicalPathOfFile(physicalFile) {
|
|
246
|
+
const canonicalFilePath = this.compilerHost.getCanonicalFileName(physicalFile);
|
|
247
|
+
if (!this.cache.has(canonicalFilePath)) {
|
|
248
|
+
let logicalFile = null;
|
|
249
|
+
for (let i = 0; i < this.rootDirs.length; i++) {
|
|
250
|
+
const rootDir = this.rootDirs[i];
|
|
251
|
+
const canonicalRootDir = this.canonicalRootDirs[i];
|
|
252
|
+
if (isWithinBasePath(canonicalRootDir, canonicalFilePath)) {
|
|
253
|
+
logicalFile = this.createLogicalProjectPath(physicalFile, rootDir);
|
|
254
|
+
if (logicalFile.indexOf("/node_modules/") !== -1) {
|
|
255
|
+
logicalFile = null;
|
|
256
|
+
} else {
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
this.cache.set(canonicalFilePath, logicalFile);
|
|
262
|
+
}
|
|
263
|
+
return this.cache.get(canonicalFilePath);
|
|
264
|
+
}
|
|
265
|
+
createLogicalProjectPath(file, rootDir) {
|
|
266
|
+
const logicalPath = stripExtension(file.substr(rootDir.length));
|
|
267
|
+
return logicalPath.startsWith("/") ? logicalPath : "/" + logicalPath;
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
function isWithinBasePath(base, path) {
|
|
271
|
+
return isLocalRelativePath(relative(base, path));
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
|
|
275
|
+
import {
|
|
276
|
+
copyFileSync,
|
|
277
|
+
existsSync,
|
|
278
|
+
lstatSync,
|
|
279
|
+
mkdirSync,
|
|
280
|
+
readFileSync,
|
|
281
|
+
readdirSync,
|
|
282
|
+
realpathSync,
|
|
283
|
+
renameSync,
|
|
284
|
+
rmdirSync,
|
|
285
|
+
statSync,
|
|
286
|
+
symlinkSync,
|
|
287
|
+
unlinkSync,
|
|
288
|
+
writeFileSync
|
|
289
|
+
} from "fs";
|
|
290
|
+
import module from "module";
|
|
291
|
+
import {
|
|
292
|
+
basename as basename2,
|
|
293
|
+
dirname as dirname2,
|
|
294
|
+
extname,
|
|
295
|
+
isAbsolute,
|
|
296
|
+
join as join2,
|
|
297
|
+
relative as relative2,
|
|
298
|
+
resolve as resolve2
|
|
299
|
+
} from "path";
|
|
300
|
+
import { fileURLToPath } from "url";
|
|
301
|
+
var NodeJSPathManipulation = class {
|
|
302
|
+
pwd() {
|
|
303
|
+
return this.normalize(process.cwd());
|
|
304
|
+
}
|
|
305
|
+
chdir(dir) {
|
|
306
|
+
process.chdir(dir);
|
|
307
|
+
}
|
|
308
|
+
resolve(...paths) {
|
|
309
|
+
return this.normalize(resolve2(...paths));
|
|
310
|
+
}
|
|
311
|
+
dirname(file) {
|
|
312
|
+
return this.normalize(dirname2(file));
|
|
313
|
+
}
|
|
314
|
+
join(basePath, ...paths) {
|
|
315
|
+
return this.normalize(join2(basePath, ...paths));
|
|
316
|
+
}
|
|
317
|
+
isRoot(path) {
|
|
318
|
+
return this.dirname(path) === this.normalize(path);
|
|
319
|
+
}
|
|
320
|
+
isRooted(path) {
|
|
321
|
+
return isAbsolute(path);
|
|
322
|
+
}
|
|
323
|
+
relative(from, to) {
|
|
324
|
+
return this.normalize(relative2(from, to));
|
|
325
|
+
}
|
|
326
|
+
basename(filePath, extension) {
|
|
327
|
+
return basename2(filePath, extension);
|
|
328
|
+
}
|
|
329
|
+
extname(path) {
|
|
330
|
+
return extname(path);
|
|
331
|
+
}
|
|
332
|
+
normalize(path) {
|
|
333
|
+
return path.replace(/\\/g, "/");
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
var isCommonJS = typeof __filename !== "undefined";
|
|
337
|
+
var currentFileUrl = isCommonJS ? null : __ESM_IMPORT_META_URL__;
|
|
338
|
+
var currentFileName = isCommonJS ? __filename : fileURLToPath(currentFileUrl);
|
|
339
|
+
var NodeJSReadonlyFileSystem = class extends NodeJSPathManipulation {
|
|
340
|
+
constructor() {
|
|
341
|
+
super(...arguments);
|
|
342
|
+
this._caseSensitive = void 0;
|
|
343
|
+
}
|
|
344
|
+
isCaseSensitive() {
|
|
345
|
+
if (this._caseSensitive === void 0) {
|
|
346
|
+
this._caseSensitive = !existsSync(this.normalize(toggleCase(currentFileName)));
|
|
347
|
+
}
|
|
348
|
+
return this._caseSensitive;
|
|
349
|
+
}
|
|
350
|
+
exists(path) {
|
|
351
|
+
return existsSync(path);
|
|
352
|
+
}
|
|
353
|
+
readFile(path) {
|
|
354
|
+
return readFileSync(path, "utf8");
|
|
355
|
+
}
|
|
356
|
+
readFileBuffer(path) {
|
|
357
|
+
return readFileSync(path);
|
|
358
|
+
}
|
|
359
|
+
readdir(path) {
|
|
360
|
+
return readdirSync(path);
|
|
361
|
+
}
|
|
362
|
+
lstat(path) {
|
|
363
|
+
return lstatSync(path);
|
|
364
|
+
}
|
|
365
|
+
stat(path) {
|
|
366
|
+
return statSync(path);
|
|
367
|
+
}
|
|
368
|
+
realpath(path) {
|
|
369
|
+
return this.resolve(realpathSync(path));
|
|
370
|
+
}
|
|
371
|
+
getDefaultLibLocation() {
|
|
372
|
+
const requireFn = isCommonJS ? __require : module.createRequire(currentFileUrl);
|
|
373
|
+
return this.resolve(requireFn.resolve("typescript"), "..");
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
var NodeJSFileSystem = class extends NodeJSReadonlyFileSystem {
|
|
377
|
+
writeFile(path, data, exclusive = false) {
|
|
378
|
+
writeFileSync(path, data, exclusive ? { flag: "wx" } : void 0);
|
|
379
|
+
}
|
|
380
|
+
removeFile(path) {
|
|
381
|
+
unlinkSync(path);
|
|
382
|
+
}
|
|
383
|
+
symlink(target, path) {
|
|
384
|
+
symlinkSync(target, path);
|
|
385
|
+
}
|
|
386
|
+
copyFile(from, to) {
|
|
387
|
+
copyFileSync(from, to);
|
|
388
|
+
}
|
|
389
|
+
moveFile(from, to) {
|
|
390
|
+
renameSync(from, to);
|
|
391
|
+
}
|
|
392
|
+
ensureDir(path) {
|
|
393
|
+
const parents = [];
|
|
394
|
+
while (!this.isRoot(path) && !this.exists(path)) {
|
|
395
|
+
parents.push(path);
|
|
396
|
+
path = this.dirname(path);
|
|
397
|
+
}
|
|
398
|
+
while (parents.length) {
|
|
399
|
+
this.safeMkdir(parents.pop());
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
removeDeep(path) {
|
|
403
|
+
rmdirSync(path, { recursive: true });
|
|
404
|
+
}
|
|
405
|
+
safeMkdir(path) {
|
|
406
|
+
try {
|
|
407
|
+
mkdirSync(path);
|
|
408
|
+
} catch (err) {
|
|
409
|
+
if (!this.exists(path) || !this.stat(path).isDirectory()) {
|
|
410
|
+
throw err;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
function toggleCase(str) {
|
|
416
|
+
return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export {
|
|
420
|
+
stripExtension,
|
|
421
|
+
getSourceFileOrError,
|
|
422
|
+
getFileSystem,
|
|
423
|
+
setFileSystem,
|
|
424
|
+
absoluteFrom,
|
|
425
|
+
absoluteFromSourceFile,
|
|
426
|
+
relativeFrom,
|
|
427
|
+
dirname,
|
|
428
|
+
join,
|
|
429
|
+
resolve,
|
|
430
|
+
isRoot,
|
|
431
|
+
isRooted,
|
|
432
|
+
relative,
|
|
433
|
+
basename,
|
|
434
|
+
isLocalRelativePath,
|
|
435
|
+
toRelativeImport,
|
|
436
|
+
NgtscCompilerHost,
|
|
437
|
+
LogicalProjectPath,
|
|
438
|
+
LogicalFileSystem,
|
|
439
|
+
NodeJSFileSystem
|
|
440
|
+
};
|
|
441
|
+
/**
|
|
442
|
+
* @license
|
|
443
|
+
* Copyright Google LLC All Rights Reserved.
|
|
444
|
+
*
|
|
445
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
446
|
+
* found in the LICENSE file at https://angular.io/license
|
|
447
|
+
*/
|
|
448
|
+
//# sourceMappingURL=chunk-DLQQUCPJ.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../packages/compiler-cli/src/ngtsc/file_system/src/util.ts", "../../../../../../packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.ts", "../../../../../../packages/compiler-cli/src/ngtsc/file_system/src/helpers.ts", "../../../../../../packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.ts", "../../../../../../packages/compiler-cli/src/ngtsc/file_system/src/logical.ts", "../../../../../../packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.ts", "../../../../../../packages/compiler-cli/src/ngtsc/file_system/index.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;AAUA,IAAM,sBAAsB;AAKtB,6BAA8B,MAAY;AAE9C,SAAO,KAAK,QAAQ,OAAO;;AAMvB,wBAA+C,MAAO;AAC1D,SAAO,KAAK,QAAQ,qBAAqB;;AAGrC,8BAA+B,SAAqB,UAAwB;AAChF,QAAM,KAAK,QAAQ,cAAc;AACjC,MAAI,OAAO,QAAW;AACpB,UAAM,IAAI,MAAM,6BAA6B,mCACzC,QAAQ,iBAAiB,IAAI,SAAM,IAAG,UAAU,KAAK;;AAE3D,SAAO;;;;AChBH,8BAAwB;EAC5B,OAAO,MAAoB;AACzB,UAAM;;EAER,SAAS,MAAoB;AAC3B,UAAM;;EAER,eAAe,MAAoB;AACjC,UAAM;;EAER,UAAU,MAAsB,MAAyB,WAAmB;AAC1E,UAAM;;EAER,WAAW,MAAoB;AAC7B,UAAM;;EAER,QAAQ,QAAwB,MAAoB;AAClD,UAAM;;EAER,QAAQ,MAAoB;AAC1B,UAAM;;EAER,MAAM,MAAoB;AACxB,UAAM;;EAER,KAAK,MAAoB;AACvB,UAAM;;EAER,MAAG;AACD,UAAM;;EAER,MAAM,MAAo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