fork-ts-checker-webpack-plugin 9.2.0 → 10.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -13
- package/lib/formatter/basic-formatter.js +2 -2
- package/lib/formatter/code-frame-formatter.d.ts +3 -2
- package/lib/formatter/code-frame-formatter.js +13 -3
- package/lib/formatter/formatter-config.js +2 -1
- package/lib/formatter/formatter-options.d.ts +1 -1
- package/lib/formatter/stats-formatter.js +3 -3
- package/lib/formatter/webpack-formatter.js +5 -9
- package/lib/hooks/report-issues.d.ts +8 -0
- package/lib/hooks/report-issues.js +22 -0
- package/lib/hooks/tap-after-compile-to-add-dependencies.js +3 -12
- package/lib/hooks/tap-after-compile-to-get-issues.js +6 -27
- package/lib/hooks/tap-done-to-async-get-issues.js +12 -32
- package/lib/hooks/tap-error-to-log-message.js +5 -7
- package/lib/hooks/tap-start-to-run-workers.js +12 -22
- package/lib/issue/issue-webpack-error.js +4 -11
- package/lib/plugin-options.json +4 -8
- package/lib/plugin-state.d.ts +0 -1
- package/lib/plugin.js +23 -23
- package/lib/rpc/expose-rpc.js +5 -14
- package/lib/rpc/rpc-error.js +2 -0
- package/lib/rpc/rpc-worker.d.ts +1 -1
- package/lib/rpc/rpc-worker.js +7 -7
- package/lib/rpc/wrap-rpc.js +3 -12
- package/lib/typescript/type-script-package.d.ts +4 -0
- package/lib/typescript/type-script-package.js +88 -0
- package/lib/typescript/type-script-support.js +8 -18
- package/lib/typescript/type-script-worker-config.d.ts +2 -3
- package/lib/typescript/type-script-worker-config.js +23 -2
- package/lib/typescript/type-script-worker-options.d.ts +4 -3
- package/lib/typescript/type-script-worker-options.js +4 -0
- package/lib/typescript/worker/get-dependencies-worker.js +15 -4
- package/lib/typescript/worker/get-issues-worker.d.ts +1 -1
- package/lib/typescript/worker/get-issues-worker.js +52 -64
- package/lib/typescript/worker/lib/api.d.ts +13 -0
- package/lib/typescript/worker/lib/api.js +62 -0
- package/lib/typescript/worker/lib/config.d.ts +13 -9
- package/lib/typescript/worker/lib/config.js +63 -63
- package/lib/typescript/worker/lib/dependencies.d.ts +6 -1
- package/lib/typescript/worker/lib/dependencies.js +168 -43
- package/lib/typescript/worker/lib/diagnostics.d.ts +5 -4
- package/lib/typescript/worker/lib/diagnostics.js +44 -50
- package/lib/typescript/worker/lib/in-memory-file-system.d.ts +14 -0
- package/lib/typescript/worker/lib/in-memory-file-system.js +140 -0
- package/lib/typescript/worker/lib/performance.d.ts +1 -2
- package/lib/typescript/worker/lib/performance.js +12 -19
- package/lib/typescript/worker/lib/program/program.d.ts +6 -2
- package/lib/typescript/worker/lib/program/program.js +135 -24
- package/lib/typescript/worker/lib/program/solution-builder.d.ts +3 -1
- package/lib/typescript/worker/lib/program/solution-builder.js +41 -24
- package/lib/typescript/worker/lib/typescript.d.ts +4 -2
- package/lib/typescript/worker/lib/typescript.js +69 -3
- package/lib/utils/async/abort-error.d.ts +0 -1
- package/lib/utils/async/abort-error.js +1 -1
- package/lib/utils/async/pool.d.ts +0 -1
- package/lib/utils/async/pool.js +12 -23
- package/lib/utils/deep-merge.d.ts +5 -0
- package/lib/utils/deep-merge.js +56 -0
- package/lib/utils/path/format-file-path.d.ts +3 -0
- package/lib/utils/path/format-file-path.js +15 -0
- package/lib/watch/inclusive-node-watch-file-system.d.ts +3 -0
- package/lib/watch/inclusive-node-watch-file-system.js +119 -111
- package/package.json +30 -38
- package/lib/formatter/types/babel__code-frame.d.ts +0 -21
- package/lib/formatter/types/babel__code-frame.js +0 -7
- package/lib/typescript/worker/lib/artifacts.d.ts +0 -4
- package/lib/typescript/worker/lib/artifacts.js +0 -103
- package/lib/typescript/worker/lib/emit.d.ts +0 -2
- package/lib/typescript/worker/lib/emit.js +0 -12
- package/lib/typescript/worker/lib/file-system/file-system.d.ts +0 -17
- package/lib/typescript/worker/lib/file-system/file-system.js +0 -2
- package/lib/typescript/worker/lib/file-system/mem-file-system.d.ts +0 -5
- package/lib/typescript/worker/lib/file-system/mem-file-system.js +0 -79
- package/lib/typescript/worker/lib/file-system/passive-file-system.d.ts +0 -5
- package/lib/typescript/worker/lib/file-system/passive-file-system.js +0 -65
- package/lib/typescript/worker/lib/file-system/real-file-system.d.ts +0 -5
- package/lib/typescript/worker/lib/file-system/real-file-system.js +0 -201
- package/lib/typescript/worker/lib/host/compiler-host.d.ts +0 -2
- package/lib/typescript/worker/lib/host/compiler-host.js +0 -9
- package/lib/typescript/worker/lib/host/watch-compiler-host.d.ts +0 -2
- package/lib/typescript/worker/lib/host/watch-compiler-host.js +0 -19
- package/lib/typescript/worker/lib/host/watch-solution-builder-host.d.ts +0 -2
- package/lib/typescript/worker/lib/host/watch-solution-builder-host.js +0 -46
- package/lib/typescript/worker/lib/program/watch-program.d.ts +0 -3
- package/lib/typescript/worker/lib/program/watch-program.js +0 -50
- package/lib/typescript/worker/lib/system.d.ts +0 -19
- package/lib/typescript/worker/lib/system.js +0 -232
- package/lib/typescript/worker/lib/tracing.d.ts +0 -4
- package/lib/typescript/worker/lib/tracing.js +0 -28
- package/lib/typescript/worker/lib/tsbuildinfo.d.ts +0 -4
- package/lib/typescript/worker/lib/tsbuildinfo.js +0 -105
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.passiveFileSystem = void 0;
|
|
4
|
-
const mem_file_system_1 = require("./mem-file-system");
|
|
5
|
-
const real_file_system_1 = require("./real-file-system");
|
|
6
|
-
/**
|
|
7
|
-
* It's an implementation of FileSystem interface which reads from the real file system, but write to the in-memory file system.
|
|
8
|
-
*/
|
|
9
|
-
exports.passiveFileSystem = Object.assign(Object.assign({}, mem_file_system_1.memFileSystem), { exists(path) {
|
|
10
|
-
return exists(real_file_system_1.realFileSystem.realPath(path));
|
|
11
|
-
},
|
|
12
|
-
readFile(path, encoding) {
|
|
13
|
-
return readFile(real_file_system_1.realFileSystem.realPath(path), encoding);
|
|
14
|
-
},
|
|
15
|
-
readDir(path) {
|
|
16
|
-
return readDir(real_file_system_1.realFileSystem.realPath(path));
|
|
17
|
-
},
|
|
18
|
-
readStats(path) {
|
|
19
|
-
return readStats(real_file_system_1.realFileSystem.realPath(path));
|
|
20
|
-
},
|
|
21
|
-
realPath(path) {
|
|
22
|
-
return real_file_system_1.realFileSystem.realPath(path);
|
|
23
|
-
},
|
|
24
|
-
clearCache() {
|
|
25
|
-
real_file_system_1.realFileSystem.clearCache();
|
|
26
|
-
} });
|
|
27
|
-
function exists(path) {
|
|
28
|
-
return real_file_system_1.realFileSystem.exists(path) || mem_file_system_1.memFileSystem.exists(path);
|
|
29
|
-
}
|
|
30
|
-
function readFile(path, encoding) {
|
|
31
|
-
const fsStats = real_file_system_1.realFileSystem.readStats(path);
|
|
32
|
-
const memStats = mem_file_system_1.memFileSystem.readStats(path);
|
|
33
|
-
if (fsStats && memStats) {
|
|
34
|
-
return fsStats.mtimeMs > memStats.mtimeMs
|
|
35
|
-
? real_file_system_1.realFileSystem.readFile(path, encoding)
|
|
36
|
-
: mem_file_system_1.memFileSystem.readFile(path, encoding);
|
|
37
|
-
}
|
|
38
|
-
else if (fsStats) {
|
|
39
|
-
return real_file_system_1.realFileSystem.readFile(path, encoding);
|
|
40
|
-
}
|
|
41
|
-
else if (memStats) {
|
|
42
|
-
return mem_file_system_1.memFileSystem.readFile(path, encoding);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function readDir(path) {
|
|
46
|
-
const fsDirents = real_file_system_1.realFileSystem.readDir(path);
|
|
47
|
-
const memDirents = mem_file_system_1.memFileSystem.readDir(path);
|
|
48
|
-
// merge list of dirents from fs and mem
|
|
49
|
-
return fsDirents
|
|
50
|
-
.filter((fsDirent) => !memDirents.some((memDirent) => memDirent.name === fsDirent.name))
|
|
51
|
-
.concat(memDirents);
|
|
52
|
-
}
|
|
53
|
-
function readStats(path) {
|
|
54
|
-
const fsStats = real_file_system_1.realFileSystem.readStats(path);
|
|
55
|
-
const memStats = mem_file_system_1.memFileSystem.readStats(path);
|
|
56
|
-
if (fsStats && memStats) {
|
|
57
|
-
return fsStats.mtimeMs > memStats.mtimeMs ? fsStats : memStats;
|
|
58
|
-
}
|
|
59
|
-
else if (fsStats) {
|
|
60
|
-
return fsStats;
|
|
61
|
-
}
|
|
62
|
-
else if (memStats) {
|
|
63
|
-
return memStats;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.realFileSystem = void 0;
|
|
37
|
-
const path_1 = require("path");
|
|
38
|
-
const fs = __importStar(require("fs-extra"));
|
|
39
|
-
const existsCache = new Map();
|
|
40
|
-
const readStatsCache = new Map();
|
|
41
|
-
const readFileCache = new Map();
|
|
42
|
-
const readDirCache = new Map();
|
|
43
|
-
const realPathCache = new Map();
|
|
44
|
-
/**
|
|
45
|
-
* It's an implementation of the FileSystem interface which reads and writes directly to the real file system.
|
|
46
|
-
*/
|
|
47
|
-
exports.realFileSystem = {
|
|
48
|
-
exists(path) {
|
|
49
|
-
return exists(getRealPath(path));
|
|
50
|
-
},
|
|
51
|
-
readFile(path, encoding) {
|
|
52
|
-
return readFile(getRealPath(path), encoding);
|
|
53
|
-
},
|
|
54
|
-
readDir(path) {
|
|
55
|
-
return readDir(getRealPath(path));
|
|
56
|
-
},
|
|
57
|
-
readStats(path) {
|
|
58
|
-
return readStats(getRealPath(path));
|
|
59
|
-
},
|
|
60
|
-
realPath(path) {
|
|
61
|
-
return getRealPath(path);
|
|
62
|
-
},
|
|
63
|
-
normalizePath(path) {
|
|
64
|
-
return (0, path_1.normalize)(path);
|
|
65
|
-
},
|
|
66
|
-
writeFile(path, data) {
|
|
67
|
-
writeFile(getRealPath(path), data);
|
|
68
|
-
},
|
|
69
|
-
deleteFile(path) {
|
|
70
|
-
deleteFile(getRealPath(path));
|
|
71
|
-
},
|
|
72
|
-
createDir(path) {
|
|
73
|
-
createDir(getRealPath(path));
|
|
74
|
-
},
|
|
75
|
-
updateTimes(path, atime, mtime) {
|
|
76
|
-
updateTimes(getRealPath(path), atime, mtime);
|
|
77
|
-
},
|
|
78
|
-
clearCache() {
|
|
79
|
-
existsCache.clear();
|
|
80
|
-
readStatsCache.clear();
|
|
81
|
-
readFileCache.clear();
|
|
82
|
-
readDirCache.clear();
|
|
83
|
-
realPathCache.clear();
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
// read methods
|
|
87
|
-
function exists(path) {
|
|
88
|
-
const normalizedPath = (0, path_1.normalize)(path);
|
|
89
|
-
if (!existsCache.has(normalizedPath)) {
|
|
90
|
-
existsCache.set(normalizedPath, fs.existsSync(normalizedPath));
|
|
91
|
-
}
|
|
92
|
-
return !!existsCache.get(normalizedPath);
|
|
93
|
-
}
|
|
94
|
-
function readStats(path) {
|
|
95
|
-
const normalizedPath = (0, path_1.normalize)(path);
|
|
96
|
-
if (!readStatsCache.has(normalizedPath)) {
|
|
97
|
-
if (exists(normalizedPath)) {
|
|
98
|
-
readStatsCache.set(normalizedPath, fs.statSync(normalizedPath));
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
return readStatsCache.get(normalizedPath);
|
|
102
|
-
}
|
|
103
|
-
function readFile(path, encoding) {
|
|
104
|
-
const normalizedPath = (0, path_1.normalize)(path);
|
|
105
|
-
if (!readFileCache.has(normalizedPath)) {
|
|
106
|
-
const stats = readStats(normalizedPath);
|
|
107
|
-
if (stats && stats.isFile()) {
|
|
108
|
-
readFileCache.set(normalizedPath, fs.readFileSync(normalizedPath, { encoding: encoding }).toString());
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
readFileCache.set(normalizedPath, undefined);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return readFileCache.get(normalizedPath);
|
|
115
|
-
}
|
|
116
|
-
function readDir(path) {
|
|
117
|
-
const normalizedPath = (0, path_1.normalize)(path);
|
|
118
|
-
if (!readDirCache.has(normalizedPath)) {
|
|
119
|
-
const stats = readStats(normalizedPath);
|
|
120
|
-
if (stats && stats.isDirectory()) {
|
|
121
|
-
readDirCache.set(normalizedPath, fs.readdirSync(normalizedPath, { withFileTypes: true }));
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
readDirCache.set(normalizedPath, []);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return readDirCache.get(normalizedPath) || [];
|
|
128
|
-
}
|
|
129
|
-
function getRealPath(path) {
|
|
130
|
-
const normalizedPath = (0, path_1.normalize)(path);
|
|
131
|
-
if (!realPathCache.has(normalizedPath)) {
|
|
132
|
-
let base = normalizedPath;
|
|
133
|
-
let nested = '';
|
|
134
|
-
while (base !== (0, path_1.dirname)(base)) {
|
|
135
|
-
if (exists(base)) {
|
|
136
|
-
realPathCache.set(normalizedPath, (0, path_1.normalize)((0, path_1.join)(fs.realpathSync(base), nested)));
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
nested = (0, path_1.join)((0, path_1.basename)(base), nested);
|
|
140
|
-
base = (0, path_1.dirname)(base);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
return realPathCache.get(normalizedPath) || normalizedPath;
|
|
144
|
-
}
|
|
145
|
-
function createDir(path) {
|
|
146
|
-
const normalizedPath = (0, path_1.normalize)(path);
|
|
147
|
-
fs.mkdirSync(normalizedPath, { recursive: true });
|
|
148
|
-
// update cache
|
|
149
|
-
existsCache.set(normalizedPath, true);
|
|
150
|
-
if (readDirCache.has((0, path_1.dirname)(normalizedPath))) {
|
|
151
|
-
readDirCache.delete((0, path_1.dirname)(normalizedPath));
|
|
152
|
-
}
|
|
153
|
-
if (readStatsCache.has(normalizedPath)) {
|
|
154
|
-
readStatsCache.delete(normalizedPath);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
function writeFile(path, data) {
|
|
158
|
-
const normalizedPath = (0, path_1.normalize)(path);
|
|
159
|
-
if (!exists((0, path_1.dirname)(normalizedPath))) {
|
|
160
|
-
createDir((0, path_1.dirname)(normalizedPath));
|
|
161
|
-
}
|
|
162
|
-
fs.writeFileSync(normalizedPath, data);
|
|
163
|
-
// update cache
|
|
164
|
-
existsCache.set(normalizedPath, true);
|
|
165
|
-
if (readDirCache.has((0, path_1.dirname)(normalizedPath))) {
|
|
166
|
-
readDirCache.delete((0, path_1.dirname)(normalizedPath));
|
|
167
|
-
}
|
|
168
|
-
if (readStatsCache.has(normalizedPath)) {
|
|
169
|
-
readStatsCache.delete(normalizedPath);
|
|
170
|
-
}
|
|
171
|
-
if (readFileCache.has(normalizedPath)) {
|
|
172
|
-
readFileCache.delete(normalizedPath);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
function deleteFile(path) {
|
|
176
|
-
if (exists(path)) {
|
|
177
|
-
const normalizedPath = (0, path_1.normalize)(path);
|
|
178
|
-
fs.unlinkSync(normalizedPath);
|
|
179
|
-
// update cache
|
|
180
|
-
existsCache.set(normalizedPath, false);
|
|
181
|
-
if (readDirCache.has((0, path_1.dirname)(normalizedPath))) {
|
|
182
|
-
readDirCache.delete((0, path_1.dirname)(normalizedPath));
|
|
183
|
-
}
|
|
184
|
-
if (readStatsCache.has(normalizedPath)) {
|
|
185
|
-
readStatsCache.delete(normalizedPath);
|
|
186
|
-
}
|
|
187
|
-
if (readFileCache.has(normalizedPath)) {
|
|
188
|
-
readFileCache.delete(normalizedPath);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
function updateTimes(path, atime, mtime) {
|
|
193
|
-
if (exists(path)) {
|
|
194
|
-
const normalizedPath = (0, path_1.normalize)(path);
|
|
195
|
-
fs.utimesSync((0, path_1.normalize)(path), atime, mtime);
|
|
196
|
-
// update cache
|
|
197
|
-
if (readStatsCache.has(normalizedPath)) {
|
|
198
|
-
readStatsCache.delete(normalizedPath);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createCompilerHost = createCompilerHost;
|
|
4
|
-
const system_1 = require("../system");
|
|
5
|
-
const typescript_1 = require("../typescript");
|
|
6
|
-
function createCompilerHost(parsedConfig) {
|
|
7
|
-
const baseCompilerHost = typescript_1.typescript.createCompilerHost(parsedConfig.options);
|
|
8
|
-
return Object.assign(Object.assign({}, baseCompilerHost), { fileExists: system_1.system.fileExists, readFile: system_1.system.readFile, directoryExists: system_1.system.directoryExists, getDirectories: system_1.system.getDirectories, realpath: system_1.system.realpath });
|
|
9
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type * as ts from 'typescript';
|
|
2
|
-
export declare function createWatchCompilerHost<TProgram extends ts.BuilderProgram>(parsedConfig: ts.ParsedCommandLine, createProgram?: ts.CreateProgram<TProgram>, reportDiagnostic?: ts.DiagnosticReporter, reportWatchStatus?: ts.WatchStatusReporter, afterProgramCreate?: (program: TProgram) => void): ts.WatchCompilerHostOfFilesAndCompilerOptions<TProgram>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createWatchCompilerHost = createWatchCompilerHost;
|
|
4
|
-
const system_1 = require("../system");
|
|
5
|
-
const typescript_1 = require("../typescript");
|
|
6
|
-
function createWatchCompilerHost(parsedConfig, createProgram, reportDiagnostic, reportWatchStatus, afterProgramCreate) {
|
|
7
|
-
const baseWatchCompilerHost = typescript_1.typescript.createWatchCompilerHost(parsedConfig.fileNames, parsedConfig.options, system_1.system, createProgram, reportDiagnostic, reportWatchStatus, parsedConfig.projectReferences);
|
|
8
|
-
return Object.assign(Object.assign({}, baseWatchCompilerHost), { createProgram(rootNames, options, compilerHost, oldProgram, configFileParsingDiagnostics, projectReferences) {
|
|
9
|
-
return baseWatchCompilerHost.createProgram(rootNames, options, compilerHost, oldProgram, configFileParsingDiagnostics, projectReferences);
|
|
10
|
-
},
|
|
11
|
-
afterProgramCreate(program) {
|
|
12
|
-
if (afterProgramCreate) {
|
|
13
|
-
afterProgramCreate(program);
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
onWatchStatusChange() {
|
|
17
|
-
// do nothing
|
|
18
|
-
}, watchFile: system_1.system.watchFile, watchDirectory: system_1.system.watchDirectory, setTimeout: system_1.system.setTimeout, clearTimeout: system_1.system.clearTimeout, fileExists: system_1.system.fileExists, readFile: system_1.system.readFile, directoryExists: system_1.system.directoryExists, getDirectories: system_1.system.getDirectories, realpath: system_1.system.realpath });
|
|
19
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type * as ts from 'typescript';
|
|
2
|
-
export declare function createWatchSolutionBuilderHost<TProgram extends ts.BuilderProgram>(parsedConfig: ts.ParsedCommandLine, createProgram?: ts.CreateProgram<TProgram>, reportDiagnostic?: ts.DiagnosticReporter, reportWatchStatus?: ts.WatchStatusReporter, reportSolutionBuilderStatus?: (diagnostic: ts.Diagnostic) => void, afterProgramCreate?: (program: TProgram) => void, afterProgramEmitAndDiagnostics?: (program: TProgram) => void): ts.SolutionBuilderWithWatchHost<TProgram>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createWatchSolutionBuilderHost = createWatchSolutionBuilderHost;
|
|
4
|
-
const system_1 = require("../system");
|
|
5
|
-
const typescript_1 = require("../typescript");
|
|
6
|
-
const watch_compiler_host_1 = require("./watch-compiler-host");
|
|
7
|
-
function createWatchSolutionBuilderHost(parsedConfig, createProgram, reportDiagnostic, reportWatchStatus, reportSolutionBuilderStatus, afterProgramCreate, afterProgramEmitAndDiagnostics) {
|
|
8
|
-
const controlledWatchCompilerHost = (0, watch_compiler_host_1.createWatchCompilerHost)(parsedConfig, createProgram, reportDiagnostic, reportWatchStatus, afterProgramCreate);
|
|
9
|
-
return Object.assign(Object.assign({}, controlledWatchCompilerHost), { reportDiagnostic(diagnostic) {
|
|
10
|
-
if (reportDiagnostic) {
|
|
11
|
-
reportDiagnostic(diagnostic);
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
reportSolutionBuilderStatus(diagnostic) {
|
|
15
|
-
if (reportSolutionBuilderStatus) {
|
|
16
|
-
reportSolutionBuilderStatus(diagnostic);
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
afterProgramEmitAndDiagnostics(program) {
|
|
20
|
-
if (afterProgramEmitAndDiagnostics) {
|
|
21
|
-
afterProgramEmitAndDiagnostics(program);
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
createDirectory(path) {
|
|
25
|
-
system_1.system.createDirectory(path);
|
|
26
|
-
},
|
|
27
|
-
writeFile(path, data) {
|
|
28
|
-
system_1.system.writeFile(path, data);
|
|
29
|
-
},
|
|
30
|
-
getModifiedTime(fileName) {
|
|
31
|
-
return system_1.system.getModifiedTime(fileName);
|
|
32
|
-
},
|
|
33
|
-
setModifiedTime(fileName, date) {
|
|
34
|
-
system_1.system.setModifiedTime(fileName, date);
|
|
35
|
-
},
|
|
36
|
-
deleteFile(fileName) {
|
|
37
|
-
system_1.system.deleteFile(fileName);
|
|
38
|
-
},
|
|
39
|
-
getParsedCommandLine(fileName) {
|
|
40
|
-
return typescript_1.typescript.getParsedCommandLineOfConfigFile(fileName, { skipLibCheck: true }, Object.assign(Object.assign({}, system_1.system), { onUnRecoverableConfigFileDiagnostic: (diagnostic) => {
|
|
41
|
-
if (reportDiagnostic) {
|
|
42
|
-
reportDiagnostic(diagnostic);
|
|
43
|
-
}
|
|
44
|
-
} }));
|
|
45
|
-
} });
|
|
46
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useWatchProgram = useWatchProgram;
|
|
4
|
-
exports.invalidateWatchProgram = invalidateWatchProgram;
|
|
5
|
-
exports.invalidateWatchProgramRootFileNames = invalidateWatchProgramRootFileNames;
|
|
6
|
-
const config_1 = require("../config");
|
|
7
|
-
const dependencies_1 = require("../dependencies");
|
|
8
|
-
const diagnostics_1 = require("../diagnostics");
|
|
9
|
-
const emit_1 = require("../emit");
|
|
10
|
-
const watch_compiler_host_1 = require("../host/watch-compiler-host");
|
|
11
|
-
const tracing_1 = require("../tracing");
|
|
12
|
-
const tsbuildinfo_1 = require("../tsbuildinfo");
|
|
13
|
-
const typescript_1 = require("../typescript");
|
|
14
|
-
let watchCompilerHost;
|
|
15
|
-
let watchProgram;
|
|
16
|
-
let shouldUpdateRootFiles = false;
|
|
17
|
-
function useWatchProgram() {
|
|
18
|
-
if (!watchCompilerHost) {
|
|
19
|
-
const parsedConfig = (0, config_1.getParsedConfig)();
|
|
20
|
-
watchCompilerHost = (0, watch_compiler_host_1.createWatchCompilerHost)(parsedConfig, (rootNames, compilerOptions, host, oldProgram, configFileParsingDiagnostics, projectReferences) => {
|
|
21
|
-
if (compilerOptions) {
|
|
22
|
-
(0, tracing_1.startTracingIfNeeded)(compilerOptions);
|
|
23
|
-
}
|
|
24
|
-
return typescript_1.typescript.createSemanticDiagnosticsBuilderProgram(rootNames, compilerOptions, host, oldProgram, configFileParsingDiagnostics, projectReferences);
|
|
25
|
-
}, undefined, undefined, (builderProgram) => {
|
|
26
|
-
(0, diagnostics_1.updateDiagnostics)((0, config_1.getConfigFilePathFromBuilderProgram)(builderProgram), (0, diagnostics_1.getDiagnosticsOfProgram)(builderProgram));
|
|
27
|
-
(0, emit_1.emitDtsIfNeeded)(builderProgram);
|
|
28
|
-
(0, tsbuildinfo_1.emitTsBuildInfoIfNeeded)(builderProgram);
|
|
29
|
-
(0, tracing_1.stopTracingIfNeeded)(builderProgram);
|
|
30
|
-
});
|
|
31
|
-
watchProgram = undefined;
|
|
32
|
-
}
|
|
33
|
-
if (!watchProgram) {
|
|
34
|
-
watchProgram = typescript_1.typescript.createWatchProgram(watchCompilerHost);
|
|
35
|
-
}
|
|
36
|
-
if (shouldUpdateRootFiles) {
|
|
37
|
-
// we have to update root files manually as don't use config file as a program input
|
|
38
|
-
watchProgram.updateRootFileNames((0, dependencies_1.getDependencies)().files);
|
|
39
|
-
shouldUpdateRootFiles = false;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
function invalidateWatchProgram(withHost = false) {
|
|
43
|
-
if (withHost) {
|
|
44
|
-
watchCompilerHost = undefined;
|
|
45
|
-
}
|
|
46
|
-
watchProgram = undefined;
|
|
47
|
-
}
|
|
48
|
-
function invalidateWatchProgramRootFileNames() {
|
|
49
|
-
shouldUpdateRootFiles = true;
|
|
50
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type * as ts from 'typescript';
|
|
2
|
-
import type { FilesMatch } from '../../../files-match';
|
|
3
|
-
export interface ControlledTypeScriptSystem extends ts.System {
|
|
4
|
-
invokeFileCreated(path: string): void;
|
|
5
|
-
invokeFileChanged(path: string): void;
|
|
6
|
-
invokeFileDeleted(path: string): void;
|
|
7
|
-
invalidateCache(): void;
|
|
8
|
-
getFileSize(path: string): number;
|
|
9
|
-
watchFile(path: string, callback: ts.FileWatcherCallback, pollingInterval?: number, options?: ts.WatchOptions): ts.FileWatcher;
|
|
10
|
-
watchDirectory(path: string, callback: ts.DirectoryWatcherCallback, recursive?: boolean, options?: ts.WatchOptions): ts.FileWatcher;
|
|
11
|
-
getModifiedTime(path: string): Date | undefined;
|
|
12
|
-
setModifiedTime(path: string, time: Date): void;
|
|
13
|
-
deleteFile(path: string): void;
|
|
14
|
-
setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): any;
|
|
15
|
-
clearTimeout(timeoutId: any): void;
|
|
16
|
-
waitForQueued(): Promise<void>;
|
|
17
|
-
setArtifacts(artifacts: FilesMatch): void;
|
|
18
|
-
}
|
|
19
|
-
export declare const system: ControlledTypeScriptSystem;
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.system = void 0;
|
|
13
|
-
const path_1 = require("path");
|
|
14
|
-
const forward_slash_1 = require("../../../utils/path/forward-slash");
|
|
15
|
-
const mem_file_system_1 = require("./file-system/mem-file-system");
|
|
16
|
-
const passive_file_system_1 = require("./file-system/passive-file-system");
|
|
17
|
-
const real_file_system_1 = require("./file-system/real-file-system");
|
|
18
|
-
const typescript_1 = require("./typescript");
|
|
19
|
-
const worker_config_1 = require("./worker-config");
|
|
20
|
-
const mode = worker_config_1.config.mode;
|
|
21
|
-
let artifacts = {
|
|
22
|
-
files: [],
|
|
23
|
-
dirs: [],
|
|
24
|
-
excluded: [],
|
|
25
|
-
extensions: [],
|
|
26
|
-
};
|
|
27
|
-
let isInitialRun = true;
|
|
28
|
-
// watchers
|
|
29
|
-
const fileWatcherCallbacksMap = new Map();
|
|
30
|
-
const directoryWatcherCallbacksMap = new Map();
|
|
31
|
-
const recursiveDirectoryWatcherCallbacksMap = new Map();
|
|
32
|
-
const deletedFiles = new Map();
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
-
const timeoutCallbacks = new Set();
|
|
35
|
-
// based on the ts.ignorePaths
|
|
36
|
-
const ignoredPaths = ['/node_modules/.', '/.git', '/.#'];
|
|
37
|
-
exports.system = Object.assign(Object.assign({}, typescript_1.typescript.sys), { useCaseSensitiveFileNames: true, realpath(path) {
|
|
38
|
-
return getReadFileSystem(path).realPath(path);
|
|
39
|
-
},
|
|
40
|
-
fileExists(path) {
|
|
41
|
-
const stats = getReadFileSystem(path).readStats(path);
|
|
42
|
-
return !!stats && stats.isFile();
|
|
43
|
-
},
|
|
44
|
-
readFile(path, encoding) {
|
|
45
|
-
return getReadFileSystem(path).readFile(path, encoding);
|
|
46
|
-
},
|
|
47
|
-
getFileSize(path) {
|
|
48
|
-
const stats = getReadFileSystem(path).readStats(path);
|
|
49
|
-
return stats ? stats.size : 0;
|
|
50
|
-
},
|
|
51
|
-
writeFile(path, data) {
|
|
52
|
-
getWriteFileSystem(path).writeFile(path, data);
|
|
53
|
-
exports.system.invokeFileChanged(path);
|
|
54
|
-
},
|
|
55
|
-
deleteFile(path) {
|
|
56
|
-
getWriteFileSystem(path).deleteFile(path);
|
|
57
|
-
exports.system.invokeFileDeleted(path);
|
|
58
|
-
},
|
|
59
|
-
directoryExists(path) {
|
|
60
|
-
var _a;
|
|
61
|
-
return Boolean((_a = getReadFileSystem(path).readStats(path)) === null || _a === void 0 ? void 0 : _a.isDirectory());
|
|
62
|
-
},
|
|
63
|
-
createDirectory(path) {
|
|
64
|
-
getWriteFileSystem(path).createDir(path);
|
|
65
|
-
invokeDirectoryWatchers(path);
|
|
66
|
-
},
|
|
67
|
-
getDirectories(path) {
|
|
68
|
-
const dirents = getReadFileSystem(path).readDir(path);
|
|
69
|
-
return dirents
|
|
70
|
-
.filter((dirent) => dirent.isDirectory() ||
|
|
71
|
-
(dirent.isSymbolicLink() && exports.system.directoryExists((0, path_1.join)(path, dirent.name))))
|
|
72
|
-
.map((dirent) => dirent.name);
|
|
73
|
-
},
|
|
74
|
-
getModifiedTime(path) {
|
|
75
|
-
const stats = getReadFileSystem(path).readStats(path);
|
|
76
|
-
if (stats) {
|
|
77
|
-
return stats.mtime;
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
setModifiedTime(path, date) {
|
|
81
|
-
getWriteFileSystem(path).updateTimes(path, date, date);
|
|
82
|
-
invokeDirectoryWatchers(path);
|
|
83
|
-
invokeFileWatchers(path, typescript_1.typescript.FileWatcherEventKind.Changed);
|
|
84
|
-
},
|
|
85
|
-
watchFile(path, callback) {
|
|
86
|
-
return createWatcher(fileWatcherCallbacksMap, path, callback);
|
|
87
|
-
},
|
|
88
|
-
watchDirectory(path, callback, recursive = false) {
|
|
89
|
-
return createWatcher(recursive ? recursiveDirectoryWatcherCallbacksMap : directoryWatcherCallbacksMap, path, callback);
|
|
90
|
-
},
|
|
91
|
-
// use immediate instead of timeout to avoid waiting 250ms for batching files changes
|
|
92
|
-
setTimeout: (callback, timeout, ...args) => {
|
|
93
|
-
const timeoutId = setImmediate(() => {
|
|
94
|
-
callback(...args);
|
|
95
|
-
timeoutCallbacks.delete(timeoutId);
|
|
96
|
-
});
|
|
97
|
-
timeoutCallbacks.add(timeoutId);
|
|
98
|
-
return timeoutId;
|
|
99
|
-
}, clearTimeout: (timeoutId) => {
|
|
100
|
-
clearImmediate(timeoutId);
|
|
101
|
-
timeoutCallbacks.delete(timeoutId);
|
|
102
|
-
}, waitForQueued() {
|
|
103
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
while (timeoutCallbacks.size > 0) {
|
|
105
|
-
yield new Promise((resolve) => setImmediate(resolve));
|
|
106
|
-
}
|
|
107
|
-
isInitialRun = false;
|
|
108
|
-
});
|
|
109
|
-
},
|
|
110
|
-
invokeFileCreated(path) {
|
|
111
|
-
const normalizedPath = normalizeAndResolvePath(path);
|
|
112
|
-
invokeFileWatchers(path, typescript_1.typescript.FileWatcherEventKind.Created);
|
|
113
|
-
invokeDirectoryWatchers(normalizedPath);
|
|
114
|
-
deletedFiles.set(normalizedPath, false);
|
|
115
|
-
},
|
|
116
|
-
invokeFileChanged(path) {
|
|
117
|
-
const normalizedPath = normalizeAndResolvePath(path);
|
|
118
|
-
if (deletedFiles.get(normalizedPath) || !fileWatcherCallbacksMap.has(normalizedPath)) {
|
|
119
|
-
invokeFileWatchers(path, typescript_1.typescript.FileWatcherEventKind.Created);
|
|
120
|
-
invokeDirectoryWatchers(normalizedPath);
|
|
121
|
-
deletedFiles.set(normalizedPath, false);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
invokeFileWatchers(path, typescript_1.typescript.FileWatcherEventKind.Changed);
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
invokeFileDeleted(path) {
|
|
128
|
-
const normalizedPath = normalizeAndResolvePath(path);
|
|
129
|
-
if (!deletedFiles.get(normalizedPath)) {
|
|
130
|
-
invokeFileWatchers(path, typescript_1.typescript.FileWatcherEventKind.Deleted);
|
|
131
|
-
invokeDirectoryWatchers(path);
|
|
132
|
-
deletedFiles.set(normalizedPath, true);
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
invalidateCache() {
|
|
136
|
-
real_file_system_1.realFileSystem.clearCache();
|
|
137
|
-
mem_file_system_1.memFileSystem.clearCache();
|
|
138
|
-
passive_file_system_1.passiveFileSystem.clearCache();
|
|
139
|
-
},
|
|
140
|
-
setArtifacts(nextArtifacts) {
|
|
141
|
-
artifacts = nextArtifacts;
|
|
142
|
-
} });
|
|
143
|
-
function createWatcher(watchersMap, path, callback) {
|
|
144
|
-
const normalizedPath = normalizeAndResolvePath(path);
|
|
145
|
-
const watchers = watchersMap.get(normalizedPath) || [];
|
|
146
|
-
const nextWatchers = [...watchers, callback];
|
|
147
|
-
watchersMap.set(normalizedPath, nextWatchers);
|
|
148
|
-
return {
|
|
149
|
-
close: () => {
|
|
150
|
-
const watchers = watchersMap.get(normalizedPath) || [];
|
|
151
|
-
const nextWatchers = watchers.filter((watcher) => watcher !== callback);
|
|
152
|
-
if (nextWatchers.length > 0) {
|
|
153
|
-
watchersMap.set(normalizedPath, nextWatchers);
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
watchersMap.delete(normalizedPath);
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
function invokeFileWatchers(path, event) {
|
|
162
|
-
const normalizedPath = normalizeAndResolvePath(path);
|
|
163
|
-
if (normalizedPath.endsWith('.js')) {
|
|
164
|
-
// trigger relevant .d.ts file watcher - handles the case, when we have webpack watcher
|
|
165
|
-
// that points to a symlinked package
|
|
166
|
-
invokeFileWatchers(normalizedPath.slice(0, -3) + '.d.ts', event);
|
|
167
|
-
}
|
|
168
|
-
const fileWatcherCallbacks = fileWatcherCallbacksMap.get(normalizedPath);
|
|
169
|
-
if (fileWatcherCallbacks) {
|
|
170
|
-
// typescript expects normalized paths with posix forward slash
|
|
171
|
-
fileWatcherCallbacks.forEach((fileWatcherCallback) => fileWatcherCallback((0, forward_slash_1.forwardSlash)(normalizedPath), event));
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
function invokeDirectoryWatchers(path) {
|
|
175
|
-
const normalizedPath = normalizeAndResolvePath(path);
|
|
176
|
-
const directory = (0, path_1.dirname)(normalizedPath);
|
|
177
|
-
if (ignoredPaths.some((ignoredPath) => (0, forward_slash_1.forwardSlash)(normalizedPath).includes(ignoredPath))) {
|
|
178
|
-
return;
|
|
179
|
-
}
|
|
180
|
-
const directoryWatcherCallbacks = directoryWatcherCallbacksMap.get(directory);
|
|
181
|
-
if (directoryWatcherCallbacks) {
|
|
182
|
-
directoryWatcherCallbacks.forEach((directoryWatcherCallback) => directoryWatcherCallback((0, forward_slash_1.forwardSlash)(normalizedPath)));
|
|
183
|
-
}
|
|
184
|
-
recursiveDirectoryWatcherCallbacksMap.forEach((recursiveDirectoryWatcherCallbacks, watchedDirectory) => {
|
|
185
|
-
if (watchedDirectory === directory ||
|
|
186
|
-
(directory.startsWith(watchedDirectory) &&
|
|
187
|
-
(0, forward_slash_1.forwardSlash)(directory)[watchedDirectory.length] === '/')) {
|
|
188
|
-
recursiveDirectoryWatcherCallbacks.forEach((recursiveDirectoryWatcherCallback) => recursiveDirectoryWatcherCallback((0, forward_slash_1.forwardSlash)(normalizedPath)));
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
function normalizeAndResolvePath(path) {
|
|
193
|
-
let normalizedPath = real_file_system_1.realFileSystem.normalizePath(path);
|
|
194
|
-
try {
|
|
195
|
-
normalizedPath = real_file_system_1.realFileSystem.realPath(normalizedPath);
|
|
196
|
-
}
|
|
197
|
-
catch (error) {
|
|
198
|
-
// ignore error - maybe file doesn't exist
|
|
199
|
-
}
|
|
200
|
-
return normalizedPath;
|
|
201
|
-
}
|
|
202
|
-
function isArtifact(path) {
|
|
203
|
-
return ((artifacts.dirs.some((dir) => path.includes(dir)) ||
|
|
204
|
-
artifacts.files.some((file) => path === file)) &&
|
|
205
|
-
artifacts.extensions.some((extension) => path.endsWith(extension)));
|
|
206
|
-
}
|
|
207
|
-
function getReadFileSystem(path) {
|
|
208
|
-
if ((mode === 'readonly' || mode === 'write-tsbuildinfo') && isArtifact(path)) {
|
|
209
|
-
if (isInitialRun && !mem_file_system_1.memFileSystem.exists(path) && passive_file_system_1.passiveFileSystem.exists(path)) {
|
|
210
|
-
// copy file to memory on initial run
|
|
211
|
-
const stats = passive_file_system_1.passiveFileSystem.readStats(path);
|
|
212
|
-
if (stats === null || stats === void 0 ? void 0 : stats.isFile()) {
|
|
213
|
-
const content = passive_file_system_1.passiveFileSystem.readFile(path);
|
|
214
|
-
if (content) {
|
|
215
|
-
mem_file_system_1.memFileSystem.writeFile(path, content);
|
|
216
|
-
mem_file_system_1.memFileSystem.updateTimes(path, stats.atime, stats.mtime);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
return mem_file_system_1.memFileSystem;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
return passive_file_system_1.passiveFileSystem;
|
|
223
|
-
}
|
|
224
|
-
function getWriteFileSystem(path) {
|
|
225
|
-
if (mode === 'write-references' ||
|
|
226
|
-
(mode === 'write-tsbuildinfo' && path.endsWith('.tsbuildinfo')) ||
|
|
227
|
-
(mode === 'write-dts' &&
|
|
228
|
-
['.tsbuildinfo', '.d.ts', '.d.ts.map'].some((suffix) => path.endsWith(suffix)))) {
|
|
229
|
-
return real_file_system_1.realFileSystem;
|
|
230
|
-
}
|
|
231
|
-
return passive_file_system_1.passiveFileSystem;
|
|
232
|
-
}
|