@ngrs/nx 0.2.0 → 0.3.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/generators.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrs/nx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "First-class Nx Monorepo plugin, executors, and generators for @ngrs (Angular build, Vite dev-server, Vitest unit-test, and APF library compilation)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"executors": "./executors.json",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"src"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ngrs/build": "0.
|
|
39
|
-
"@ngrs/compiler": "0.
|
|
40
|
-
"@ngrs/vite": "0.
|
|
38
|
+
"@ngrs/build": "0.3.0",
|
|
39
|
+
"@ngrs/compiler": "0.3.0",
|
|
40
|
+
"@ngrs/vite": "0.3.0",
|
|
41
41
|
"happy-dom": "^20.0.0",
|
|
42
42
|
"jsonc-parser": "^3.3.1",
|
|
43
43
|
"picomatch": "^4.0.2"
|
|
@@ -9,7 +9,7 @@ import * as vite from 'vite';
|
|
|
9
9
|
import { toArchitectContext } from '../context-adapter.mjs';
|
|
10
10
|
|
|
11
11
|
const localRequire = createRequire(import.meta.url);
|
|
12
|
-
const {
|
|
12
|
+
const { NgrsProgram } = localRequire('@ngrs/compiler');
|
|
13
13
|
const isRolldownVite = 'rolldownVersion' in vite && Boolean(vite.rolldownVersion);
|
|
14
14
|
|
|
15
15
|
function slugifyPackageName(pkgName) {
|
|
@@ -19,7 +19,7 @@ function slugifyPackageName(pkgName) {
|
|
|
19
19
|
/**
|
|
20
20
|
* `@ngrs/nx:package` executor — builds publishable/buildable Nx Angular libraries (`ng-package.json`
|
|
21
21
|
* or `libs/<name>/package.json`) into Angular Package Format (APF) FESM2022 + `.d.ts` declarations
|
|
22
|
-
* using native Rust `
|
|
22
|
+
* using native Rust `NgrsProgram` (`compilationMode: 'partial'`).
|
|
23
23
|
*/
|
|
24
24
|
export async function packageExecutor(options = {}, context = {}) {
|
|
25
25
|
const startTime = performance.now();
|
|
@@ -93,7 +93,7 @@ export async function packageExecutor(options = {}, context = {}) {
|
|
|
93
93
|
await mkdir(fesmDir, { recursive: true });
|
|
94
94
|
|
|
95
95
|
const compilationMode = options.compilationMode || 'partial';
|
|
96
|
-
const compiler =
|
|
96
|
+
const compiler = NgrsProgram.open(tsconfigPath, {
|
|
97
97
|
compilationMode,
|
|
98
98
|
emitDts: true,
|
|
99
99
|
hmr: false,
|
|
@@ -149,7 +149,7 @@ export async function packageExecutor(options = {}, context = {}) {
|
|
|
149
149
|
},
|
|
150
150
|
});
|
|
151
151
|
|
|
152
|
-
// Emit `.d.ts` files generated by `
|
|
152
|
+
// Emit `.d.ts` files generated by `NgrsProgram` (`emitDts: true`)
|
|
153
153
|
const sourceBaseDir = path.resolve(path.dirname(entryFile));
|
|
154
154
|
for (const emitted of compiler.getAllEmittedFiles()) {
|
|
155
155
|
if (!emitted.dts) continue;
|