@artel/artc 0.6.25193 → 0.6.25194

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 CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CommandLineCompiler
4
- } from "./chunk-BGALJGSZ.js";
5
- import "./chunk-BSUNNGVO.js";
4
+ } from "./chunk-B6PKPG7C.js";
5
+ import "./chunk-RPDTJCFR.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-3SICRIJF.js";
8
+ } from "./chunk-WQWY7PVA.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-BSUNNGVO.js";
3
+ } from "../chunk-RPDTJCFR.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-3SICRIJF.js";
333
+ } from "../chunk-WQWY7PVA.js";
334
334
  export {
335
335
  AccessKind,
336
336
  AccessedMethodValueParameter,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-BGALJGSZ.js";
10
- import "../chunk-BSUNNGVO.js";
11
- import "../chunk-3SICRIJF.js";
9
+ } from "../chunk-B6PKPG7C.js";
10
+ import "../chunk-RPDTJCFR.js";
11
+ import "../chunk-WQWY7PVA.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -182,7 +182,7 @@ import {
182
182
  unwrapParenthesizedExpressions,
183
183
  visitChildren,
184
184
  yieldExecution
185
- } from "../chunk-3SICRIJF.js";
185
+ } from "../chunk-WQWY7PVA.js";
186
186
 
187
187
  // source/services/CustomCommand.ts
188
188
  import * as ls from "vscode-languageserver";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "./chunk-BSUNNGVO.js";
3
+ } from "./chunk-RPDTJCFR.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-3SICRIJF.js";
17
+ } from "./chunk-WQWY7PVA.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
  }
@@ -10,7 +10,7 @@ import {
10
10
  WellKnownDeclarationsLoadError,
11
11
  __async,
12
12
  createTsInteropInputsForCompilation
13
- } from "./chunk-3SICRIJF.js";
13
+ } from "./chunk-WQWY7PVA.js";
14
14
 
15
15
  // source/executor/Compiler.ts
16
16
  var Compiler = class {