@analogjs/vite-plugin-angular 3.0.0-beta.14 → 3.0.0-beta.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@analogjs/vite-plugin-angular",
3
- "version": "3.0.0-beta.14",
3
+ "version": "3.0.0-beta.15",
4
4
  "description": "Vite Plugin for Angular",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -5,6 +5,7 @@ import { type DebugOption } from "./utils/debug.js";
5
5
  import { FileReplacement } from "./plugins/file-replacements.plugin.js";
6
6
  import { AnalogStylesheetRegistry } from "./stylesheet-registry.js";
7
7
  export { DiagnosticModes, injectViteIgnoreForHmrMetadata, isIgnoredHmrFile, toAngularCompilationFileReplacements, mapTemplateUpdatesToFiles, refreshStylesheetRegistryForFile, describeStylesheetContent, isTestWatchMode, getBrowserModeCliOverride } from "./utils/compilation-shared.js";
8
+ import type { TypeCheckerOption } from "./utils/lsp-type-checker.js";
8
9
  export interface PluginOptions {
9
10
  /**
10
11
  * Path to the tsconfig used for compilation, or a function returning it.
@@ -45,10 +46,16 @@ export interface PluginOptions {
45
46
  /**
46
47
  * Skip semantic and Angular template diagnostics during compilation.
47
48
  * Defaults to `true`, or `false` with `compilation: 'ngp'`, which requires
48
- * `@typescript/native-preview`.
49
+ * a TypeScript 7 type checker (see `typeChecker`).
49
50
  */
50
51
  disableTypeChecking?: boolean;
51
52
  /**
53
+ * TypeScript 7 type checker used with `compilation: 'ngp'`: `'tsgo'`
54
+ * (default), `'tsrs'`, or a command serving the TypeScript 7 language
55
+ * server over stdio (`args` defaults to `['--lsp', '--stdio']`).
56
+ */
57
+ typeChecker?: TypeCheckerOption;
58
+ /**
52
59
  * Replace source files at build time, like `fileReplacements` in
53
60
  * `angular.json`.
54
61
  */
@@ -747,7 +747,8 @@ function angular(options) {
747
747
  isTest,
748
748
  isAstroIntegration,
749
749
  fastCompileMode: pluginOptions.fastCompileMode,
750
- disableTypeChecking: pluginOptions.disableTypeChecking
750
+ disableTypeChecking: pluginOptions.disableTypeChecking,
751
+ typeChecker: options?.typeChecker
751
752
  }) : angularPlugin();
752
753
  return [
753
754
  cssExtensionStyleResolverPlugin(),