@ngrs/vite 0.1.0 → 0.2.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ngrs/vite",
3
- "version": "0.1.0",
4
- "description": "Native Rust Angular compiler & Ivy linker plugins for Vite, powered by @ngrs/napi",
3
+ "version": "0.2.0",
4
+ "description": "Native Rust Angular compiler & Ivy linker plugins for Vite, powered by @ngrs/compiler",
5
5
  "type": "module",
6
6
  "main": "./src/index.cjs",
7
7
  "module": "./src/index.mjs",
@@ -23,7 +23,7 @@
23
23
  "src"
24
24
  ],
25
25
  "dependencies": {
26
- "@ngrs/napi": "0.1.0"
26
+ "@ngrs/compiler": "0.2.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "happy-dom": ">=15.0.0 || ^20.0.0",
package/src/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { NapiDiagnostic, NapiFileReplacement } from '@ngrs/napi';
1
+ import type { NapiDiagnostic, NapiFileReplacement } from '@ngrs/compiler';
2
2
  import type { Plugin } from 'vite';
3
3
 
4
4
  export interface AngularStylePreprocessorOptions {
package/src/index.mjs CHANGED
@@ -6,7 +6,7 @@ import { fileURLToPath } from 'node:url';
6
6
  import * as viteNamespace from 'vite';
7
7
 
8
8
  const require = createRequire(import.meta.url);
9
- const napi = require('@ngrs/napi');
9
+ const napi = require('@ngrs/compiler');
10
10
 
11
11
  const {
12
12
  NapiProjectCompiler,
@@ -293,11 +293,11 @@ async function compileSassResource(filePath, includePaths, sassOptions, workspac
293
293
  }
294
294
 
295
295
  /**
296
- * Formats an array of `@ngrs/napi` diagnostics into human-readable compiler messages.
296
+ * Formats an array of `@ngrs/compiler` diagnostics into human-readable compiler messages.
297
297
  *
298
- * @param {import('@ngrs/napi').NapiDiagnostic[]} diagnostics
298
+ * @param {import('@ngrs/compiler').NapiDiagnostic[]} diagnostics
299
299
  * @param {string} [rootDir]
300
- * @returns {{ warnings: string[], errors: string[], firstError?: import('@ngrs/napi').NapiDiagnostic }}
300
+ * @returns {{ warnings: string[], errors: string[], firstError?: import('@ngrs/compiler').NapiDiagnostic }}
301
301
  */
302
302
  export function formatDiagnostics(diagnostics, rootDir = process.cwd()) {
303
303
  const warnings = [];
@@ -338,7 +338,7 @@ export function formatDiagnostics(diagnostics, rootDir = process.cwd()) {
338
338
 
339
339
  /**
340
340
  * Creates a native Rolldown plugin for Vite 8+ `optimizeDeps.rolldownOptions.plugins` that runs
341
- * the native Rust Angular Ivy Linker (`@ngrs/napi` `needsLinking` + `linkFile`) on partially
341
+ * the native Rust Angular Ivy Linker (`@ngrs/compiler` `needsLinking` + `linkFile`) on partially
342
342
  * compiled Angular packages inside `node_modules`.
343
343
  *
344
344
  * @param {import('./index.js').AngularLinkerOptions} [options]
@@ -389,7 +389,7 @@ export function createRolldownLinkerPlugin(options = {}) {
389
389
 
390
390
  /**
391
391
  * Creates a legacy esbuild plugin for Vite 6/7 `optimizeDeps.esbuildOptions.plugins` fallback that
392
- * runs the native Rust Angular Ivy Linker (`@ngrs/napi` `needsLinking` + `linkFile`) on partially
392
+ * runs the native Rust Angular Ivy Linker (`@ngrs/compiler` `needsLinking` + `linkFile`) on partially
393
393
  * compiled Angular packages inside `node_modules`.
394
394
  *
395
395
  * @param {import('./index.js').AngularLinkerOptions} [options]
@@ -443,7 +443,7 @@ export function createEsbuildLinkerPlugin(options = {}) {
443
443
  * Plugin 1: `ngrs:angular-compiler`
444
444
  *
445
445
  * Stateful incremental Angular TypeScript + Ivy template/style compiler backed by
446
- * `NapiProjectCompiler` (`@ngrs/napi`).
446
+ * `NapiProjectCompiler` (`@ngrs/compiler`).
447
447
  *
448
448
  * @param {import('./index.js').AngularVitePluginOptions} [options]
449
449
  * @returns {import('vite').Plugin}
@@ -1301,7 +1301,7 @@ export function angularCompilerPlugin(options = {}) {
1301
1301
  /**
1302
1302
  * Plugin 2: `ngrs:ivy-linker`
1303
1303
  *
1304
- * 100% native Rust Angular Ivy Linker (`@ngrs/napi` `needsLinking` + `linkFile` — zero `@babel/core`)
1304
+ * 100% native Rust Angular Ivy Linker (`@ngrs/compiler` `needsLinking` + `linkFile` — zero `@babel/core`)
1305
1305
  * running both during Vite dependency pre-bundling (`optimizeDeps.rolldownOptions.plugins` on Vite 8
1306
1306
  * Rolldown, with `optimizeDeps.esbuildOptions.plugins` fallback on Vite 6/7) and on any un-prebundled
1307
1307
  * `node_modules` `.js`/`.mjs` modules during `vite serve` and `vite build`.