@artel/artc 0.6.25193 → 0.6.25196
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/build/Cli.js +3 -3
- package/build/api/Api.js +2 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1 -1
- package/build/{chunk-BSUNNGVO.js → chunk-CSDWKT2L.js} +1 -1
- package/build/{chunk-BGALJGSZ.js → chunk-GBQBRQEY.js} +17 -10
- package/build/{chunk-3SICRIJF.js → chunk-YHBAU6BF.js} +1000 -279
- package/build/types/executor/NodeCompiler.d.ts +2 -1
- package/package.json +1 -1
package/build/Cli.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import {
|
3
3
|
CommandLineCompiler
|
4
|
-
} from "./chunk-
|
5
|
-
import "./chunk-
|
4
|
+
} from "./chunk-GBQBRQEY.js";
|
5
|
+
import "./chunk-CSDWKT2L.js";
|
6
6
|
import {
|
7
7
|
__async
|
8
|
-
} from "./chunk-
|
8
|
+
} from "./chunk-YHBAU6BF.js";
|
9
9
|
|
10
10
|
// source/Cli.ts
|
11
11
|
function main() {
|
package/build/api/Api.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
Compiler
|
3
|
-
} from "../chunk-
|
3
|
+
} from "../chunk-CSDWKT2L.js";
|
4
4
|
import {
|
5
5
|
AccessKind,
|
6
6
|
AccessedMethodValueParameter,
|
@@ -330,7 +330,7 @@ import {
|
|
330
330
|
visitChildrenRecursively,
|
331
331
|
withoutQuotes,
|
332
332
|
yieldExecution
|
333
|
-
} from "../chunk-
|
333
|
+
} from "../chunk-YHBAU6BF.js";
|
334
334
|
export {
|
335
335
|
AccessKind,
|
336
336
|
AccessedMethodValueParameter,
|
package/build/api/ApiNodeJS.js
CHANGED
@@ -6,9 +6,9 @@ import {
|
|
6
6
|
PhysicalFileSystem,
|
7
7
|
PhysicalTypeScriptLibrariesProvider,
|
8
8
|
PrintingDiagnosticAcceptor
|
9
|
-
} from "../chunk-
|
10
|
-
import "../chunk-
|
11
|
-
import "../chunk-
|
9
|
+
} from "../chunk-GBQBRQEY.js";
|
10
|
+
import "../chunk-CSDWKT2L.js";
|
11
|
+
import "../chunk-YHBAU6BF.js";
|
12
12
|
export {
|
13
13
|
CommandLineCompiler,
|
14
14
|
FileSystemUri,
|
package/build/api/ApiServices.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
Compiler
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-CSDWKT2L.js";
|
4
4
|
import {
|
5
5
|
ArtelVersion,
|
6
6
|
Cached,
|
@@ -14,7 +14,7 @@ import {
|
|
14
14
|
__async,
|
15
15
|
performanceMeasurementStageNames,
|
16
16
|
performanceMeasurementStages
|
17
|
-
} from "./chunk-
|
17
|
+
} from "./chunk-YHBAU6BF.js";
|
18
18
|
|
19
19
|
// source/executor/FileSystemUri.ts
|
20
20
|
import { platform } from "os";
|
@@ -314,11 +314,12 @@ var NodeCompiler = class {
|
|
314
314
|
}
|
315
315
|
};
|
316
316
|
var PrintingDiagnosticAcceptor = class {
|
317
|
-
constructor(basePath) {
|
317
|
+
constructor(noWarnings, basePath) {
|
318
|
+
this.noWarnings = noWarnings;
|
318
319
|
this._formatter = new NodeDiagnosticFormatter(basePath);
|
319
320
|
}
|
320
321
|
addDiagnostic(diagnostic) {
|
321
|
-
if (diagnostic.data.kind === 0 /* Error */ || diagnostic.data.kind === 1 /* Warning */) {
|
322
|
+
if (diagnostic.data.kind === 0 /* Error */ || diagnostic.data.kind === 1 /* Warning */ && !this.noWarnings) {
|
322
323
|
const diagnosticText = this._formatter.format(diagnostic);
|
323
324
|
console.log(diagnosticText);
|
324
325
|
}
|
@@ -378,7 +379,7 @@ var CommandLineCompiler = class {
|
|
378
379
|
PerformanceMeasurement.isEnabled = true;
|
379
380
|
}
|
380
381
|
try {
|
381
|
-
const diagnostics = new PrintingDiagnosticAcceptor();
|
382
|
+
const diagnostics = new PrintingDiagnosticAcceptor(parsedArguments.noWarnings);
|
382
383
|
const compilerTask = {
|
383
384
|
nodeModulesWithTypeScriptSearchPaths: [
|
384
385
|
parsedArguments.projectPath,
|
@@ -460,6 +461,7 @@ var ArgumentsParser = class {
|
|
460
461
|
command: void 0,
|
461
462
|
projectPath: void 0,
|
462
463
|
outputPath: void 0,
|
464
|
+
noWarnings: false,
|
463
465
|
measurePerformance: false,
|
464
466
|
defaultTsLibraryPath: void 0,
|
465
467
|
workspacePath: void 0,
|
@@ -543,11 +545,6 @@ var ArgumentsParser = class {
|
|
543
545
|
}
|
544
546
|
break;
|
545
547
|
}
|
546
|
-
case "--\u0437\u0430\u043C\u0435\u0440\u0438\u0442\u044C-\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C":
|
547
|
-
case "--measure-performance": {
|
548
|
-
result.measurePerformance = true;
|
549
|
-
break;
|
550
|
-
}
|
551
548
|
case "--workspace":
|
552
549
|
case "--\u0440\u0430\u0431\u043E\u0447\u0430\u044F-\u043E\u0431\u043B\u0430\u0441\u0442\u044C": {
|
553
550
|
const path = this.tryParseStringArgument(index + 1, args);
|
@@ -566,6 +563,16 @@ var ArgumentsParser = class {
|
|
566
563
|
}
|
567
564
|
break;
|
568
565
|
}
|
566
|
+
case "--\u0431\u0435\u0437-\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0439":
|
567
|
+
case "--no-warnings": {
|
568
|
+
result.noWarnings = true;
|
569
|
+
break;
|
570
|
+
}
|
571
|
+
case "--\u0437\u0430\u043C\u0435\u0440\u0438\u0442\u044C-\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C":
|
572
|
+
case "--measure-performance": {
|
573
|
+
result.measurePerformance = true;
|
574
|
+
break;
|
575
|
+
}
|
569
576
|
}
|
570
577
|
}
|
571
578
|
}
|