@nx/vite 22.3.3 → 22.4.0-beta.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/vite",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.4.0-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for building and testing applications using Vite",
|
|
6
6
|
"repository": {
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"migrations": "./migrations.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nx/devkit": "22.
|
|
33
|
+
"@nx/devkit": "22.4.0-beta.0",
|
|
34
34
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
35
35
|
"enquirer": "~2.3.6",
|
|
36
|
-
"@nx/js": "22.
|
|
37
|
-
"@nx/vitest": "22.
|
|
36
|
+
"@nx/js": "22.4.0-beta.0",
|
|
37
|
+
"@nx/vitest": "22.4.0-beta.0",
|
|
38
38
|
"picomatch": "4.0.2",
|
|
39
39
|
"tsconfig-paths": "^4.1.2",
|
|
40
40
|
"semver": "^7.6.3",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"ajv": "^8.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"nx": "22.
|
|
45
|
+
"nx": "22.4.0-beta.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nx-vite-build-coordination.plugin.d.ts","sourceRoot":"","sources":["../../../../packages/vite/plugins/nx-vite-build-coordination.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,MAAM,CAAC;AASnC,MAAM,WAAW,oCAAoC;IACnD,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,oCAAoC,GAC5C,MAAM,
|
|
1
|
+
{"version":3,"file":"nx-vite-build-coordination.plugin.d.ts","sourceRoot":"","sources":["../../../../packages/vite/plugins/nx-vite-build-coordination.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,MAAM,CAAC;AASnC,MAAM,WAAW,oCAAoC;IACnD,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,oCAAoC,GAC5C,MAAM,CA0ER"}
|
|
@@ -27,16 +27,25 @@ function nxViteBuildCoordinationPlugin(options) {
|
|
|
27
27
|
function createFileWatcher() {
|
|
28
28
|
const runner = new watch_1.BatchFunctionRunner(() => buildChangedProjects());
|
|
29
29
|
return client_1.daemonClient.registerFileWatcher({ watchProjects: 'all' }, (err, { changedProjects, changedFiles }) => {
|
|
30
|
-
if (err === '
|
|
30
|
+
if (err === 'reconnecting') {
|
|
31
|
+
// Silent - daemon restarts automatically on lockfile changes
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
else if (err === 'reconnected') {
|
|
35
|
+
// Silent - reconnection succeeded
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
else if (err === 'closed') {
|
|
31
39
|
output_1.output.error({
|
|
32
|
-
title:
|
|
33
|
-
bodyLines: [
|
|
34
|
-
'The daemon had closed the connection to this watch process.',
|
|
35
|
-
'Please restart your watch command.',
|
|
36
|
-
],
|
|
40
|
+
title: `Failed to reconnect to daemon after multiple attempts`,
|
|
37
41
|
});
|
|
38
42
|
process.exit(1);
|
|
39
43
|
}
|
|
44
|
+
else if (err) {
|
|
45
|
+
output_1.output.error({
|
|
46
|
+
title: `Watch error: ${err?.message ?? 'Unknown'}`,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
40
49
|
if (activeBuildProcess) {
|
|
41
50
|
activeBuildProcess.kill(2);
|
|
42
51
|
activeBuildProcess = undefined;
|