@nx/vite 20.7.0 → 20.7.2
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/migrations.json
CHANGED
|
@@ -52,6 +52,19 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"packageJsonUpdates": {
|
|
55
|
+
"20.7.1": {
|
|
56
|
+
"version": "20.7.1-beta.0",
|
|
57
|
+
"packages": {
|
|
58
|
+
"@analogjs/vite-plugin-angular": {
|
|
59
|
+
"version": "~1.14.1",
|
|
60
|
+
"alwaysAddToPackageJson": false
|
|
61
|
+
},
|
|
62
|
+
"@analogjs/vitest-angular": {
|
|
63
|
+
"version": "~1.14.1",
|
|
64
|
+
"alwaysAddToPackageJson": false
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
55
68
|
"20.5.0": {
|
|
56
69
|
"version": "20.5.0-beta.3",
|
|
57
70
|
"packages": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/vite",
|
|
3
|
-
"version": "20.7.
|
|
3
|
+
"version": "20.7.2",
|
|
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": "20.7.
|
|
33
|
+
"@nx/devkit": "20.7.2",
|
|
34
34
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
35
35
|
"@swc/helpers": "~0.5.0",
|
|
36
36
|
"enquirer": "~2.3.6",
|
|
37
|
-
"@nx/js": "20.7.
|
|
37
|
+
"@nx/js": "20.7.2",
|
|
38
38
|
"tsconfig-paths": "^4.1.2",
|
|
39
39
|
"minimatch": "9.0.3",
|
|
40
40
|
"semver": "^7.6.3"
|
|
@@ -33,7 +33,7 @@ function nxCopyAssetsPlugin(_assets) {
|
|
|
33
33
|
handler = new _copyassetshandler.CopyAssetsHandler({
|
|
34
34
|
rootDir: _devkit.workspaceRoot,
|
|
35
35
|
projectDir: config.root,
|
|
36
|
-
outputDir: (0, _nodepath.join)(config.root, config.build.outDir),
|
|
36
|
+
outputDir: config.build.outDir.startsWith(config.root) ? config.build.outDir : (0, _nodepath.join)(config.root, config.build.outDir),
|
|
37
37
|
assets
|
|
38
38
|
});
|
|
39
39
|
if (this.meta.watchMode && (0, _devkit.isDaemonEnabled)()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../packages/vite/plugins/nx-copy-assets.plugin.ts"],"sourcesContent":["import { join, relative } from 'node:path';\nimport type { Plugin, ResolvedConfig } from 'vite';\nimport { isDaemonEnabled, joinPathFragments, workspaceRoot } from '@nx/devkit';\nimport { AssetGlob } from '@nx/js/src/utils/assets/assets';\nimport { CopyAssetsHandler } from '@nx/js/src/utils/assets/copy-assets-handler';\n\nexport function nxCopyAssetsPlugin(_assets: (string | AssetGlob)[]): Plugin {\n let config: ResolvedConfig;\n let handler: CopyAssetsHandler;\n let dispose: () => void;\n\n if (global.NX_GRAPH_CREATION) return;\n\n return {\n name: 'nx-copy-assets-plugin',\n configResolved(_config) {\n config = _config;\n },\n async buildStart() {\n const relativeProjectRoot = relative(workspaceRoot, config.root);\n const assets = _assets.map((a) => {\n if (typeof a === 'string') {\n return joinPathFragments(relativeProjectRoot, a);\n } else {\n return {\n ...a,\n input: joinPathFragments(relativeProjectRoot, a.input),\n };\n }\n });\n handler = new CopyAssetsHandler({\n rootDir: workspaceRoot,\n projectDir: config.root,\n outputDir: join(config.root, config.build.outDir),\n assets,\n });\n if (this.meta.watchMode && isDaemonEnabled()) {\n dispose = await handler.watchAndProcessOnAssetChange();\n }\n },\n async writeBundle() {\n await handler.processAllAssetsOnce();\n },\n async closeWatcher() {\n dispose == null ? void 0 : dispose();\n },\n };\n}\n"],"names":["nxCopyAssetsPlugin","_assets","config","handler","dispose","global","NX_GRAPH_CREATION","name","configResolved","_config","buildStart","relativeProjectRoot","relative","workspaceRoot","root","assets","map","a","joinPathFragments","input","CopyAssetsHandler","rootDir","projectDir","outputDir","
|
|
1
|
+
{"version":3,"sources":["../../../../packages/vite/plugins/nx-copy-assets.plugin.ts"],"sourcesContent":["import { join, relative } from 'node:path';\nimport type { Plugin, ResolvedConfig } from 'vite';\nimport { isDaemonEnabled, joinPathFragments, workspaceRoot } from '@nx/devkit';\nimport { AssetGlob } from '@nx/js/src/utils/assets/assets';\nimport { CopyAssetsHandler } from '@nx/js/src/utils/assets/copy-assets-handler';\n\nexport function nxCopyAssetsPlugin(_assets: (string | AssetGlob)[]): Plugin {\n let config: ResolvedConfig;\n let handler: CopyAssetsHandler;\n let dispose: () => void;\n\n if (global.NX_GRAPH_CREATION) return;\n\n return {\n name: 'nx-copy-assets-plugin',\n configResolved(_config) {\n config = _config;\n },\n async buildStart() {\n const relativeProjectRoot = relative(workspaceRoot, config.root);\n const assets = _assets.map((a) => {\n if (typeof a === 'string') {\n return joinPathFragments(relativeProjectRoot, a);\n } else {\n return {\n ...a,\n input: joinPathFragments(relativeProjectRoot, a.input),\n };\n }\n });\n handler = new CopyAssetsHandler({\n rootDir: workspaceRoot,\n projectDir: config.root,\n outputDir: config.build.outDir.startsWith(config.root)\n ? config.build.outDir\n : join(config.root, config.build.outDir),\n assets,\n });\n if (this.meta.watchMode && isDaemonEnabled()) {\n dispose = await handler.watchAndProcessOnAssetChange();\n }\n },\n async writeBundle() {\n await handler.processAllAssetsOnce();\n },\n async closeWatcher() {\n dispose == null ? void 0 : dispose();\n },\n };\n}\n"],"names":["nxCopyAssetsPlugin","_assets","config","handler","dispose","global","NX_GRAPH_CREATION","name","configResolved","_config","buildStart","relativeProjectRoot","relative","workspaceRoot","root","assets","map","a","joinPathFragments","input","CopyAssetsHandler","rootDir","projectDir","outputDir","build","outDir","startsWith","join","meta","watchMode","isDaemonEnabled","watchAndProcessOnAssetChange","writeBundle","processAllAssetsOnce","closeWatcher"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";+BAMgBA;;;eAAAA;;;;0BANe;wBAEmC;mCAEhC;AAE3B,SAASA,mBAAmBC,OAA+B;IAChE,IAAIC;IACJ,IAAIC;IACJ,IAAIC;IAEJ,IAAIC,OAAOC,iBAAiB,EAAE;IAE9B,OAAO;QACLC,MAAM;QACNC,gBAAeC,OAAO;YACpBP,SAASO;QACX;QACA,MAAMC;YACJ,MAAMC,sBAAsBC,IAAAA,kBAAQ,EAACC,qBAAa,EAAEX,OAAOY,IAAI;YAC/D,MAAMC,SAASd,QAAQe,GAAG,CAAC,CAACC;gBAC1B,IAAI,OAAOA,MAAM,UAAU;oBACzB,OAAOC,IAAAA,yBAAiB,EAACP,qBAAqBM;gBAChD,OAAO;oBACL,OAAO,eACFA;wBACHE,OAAOD,IAAAA,yBAAiB,EAACP,qBAAqBM,EAAEE,KAAK;;gBAEzD;YACF;YACAhB,UAAU,IAAIiB,oCAAiB,CAAC;gBAC9BC,SAASR,qBAAa;gBACtBS,YAAYpB,OAAOY,IAAI;gBACvBS,WAAWrB,OAAOsB,KAAK,CAACC,MAAM,CAACC,UAAU,CAACxB,OAAOY,IAAI,IACjDZ,OAAOsB,KAAK,CAACC,MAAM,GACnBE,IAAAA,cAAI,EAACzB,OAAOY,IAAI,EAAEZ,OAAOsB,KAAK,CAACC,MAAM;gBACzCV;YACF;YACA,IAAI,IAAI,CAACa,IAAI,CAACC,SAAS,IAAIC,IAAAA,uBAAe,KAAI;gBAC5C1B,UAAU,MAAMD,QAAQ4B,4BAA4B;YACtD;QACF;QACA,MAAMC;YACJ,MAAM7B,QAAQ8B,oBAAoB;QACpC;QACA,MAAMC;YACJ9B,WAAW,OAAO,KAAK,IAAIA;QAC7B;IACF;AACF"}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const vitePluginDtsVersion = "~4.5.0";
|
|
|
10
10
|
export declare const happyDomVersion = "~9.20.3";
|
|
11
11
|
export declare const edgeRuntimeVmVersion = "~3.0.2";
|
|
12
12
|
export declare const jitiVersion = "2.4.2";
|
|
13
|
-
export declare const analogVitestAngular = "~1.
|
|
13
|
+
export declare const analogVitestAngular = "~1.14.1";
|
|
14
14
|
export declare const vitestCoverageV8Version = "^3.0.5";
|
|
15
15
|
export declare const vitestV1CoverageV8Version = "^1.0.4";
|
|
16
16
|
export declare const vitestCoverageIstanbulVersion = "^3.0.5";
|
package/src/utils/versions.js
CHANGED
|
@@ -70,7 +70,7 @@ const vitePluginDtsVersion = '~4.5.0';
|
|
|
70
70
|
const happyDomVersion = '~9.20.3';
|
|
71
71
|
const edgeRuntimeVmVersion = '~3.0.2';
|
|
72
72
|
const jitiVersion = '2.4.2';
|
|
73
|
-
const analogVitestAngular = '~1.
|
|
73
|
+
const analogVitestAngular = '~1.14.1';
|
|
74
74
|
const vitestCoverageV8Version = '^3.0.5';
|
|
75
75
|
const vitestV1CoverageV8Version = '^1.0.4';
|
|
76
76
|
const vitestCoverageIstanbulVersion = '^3.0.5';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../packages/vite/src/utils/versions.ts"],"sourcesContent":["export const nxVersion = require('../../package.json').version;\n// Also update @nx/remix/utils/versions when changing vite version\nexport const viteVersion = '^6.0.0';\nexport const viteV5Version = '^5.0.0';\nexport const vitestVersion = '^3.0.0';\nexport const vitestV1Version = '^1.3.1';\nexport const vitePluginReactVersion = '^4.2.0';\nexport const vitePluginReactSwcVersion = '^3.5.0';\nexport const jsdomVersion = '~22.1.0';\nexport const vitePluginDtsVersion = '~4.5.0';\nexport const happyDomVersion = '~9.20.3';\nexport const edgeRuntimeVmVersion = '~3.0.2';\nexport const jitiVersion = '2.4.2';\n\nexport const analogVitestAngular = '~1.
|
|
1
|
+
{"version":3,"sources":["../../../../../packages/vite/src/utils/versions.ts"],"sourcesContent":["export const nxVersion = require('../../package.json').version;\n// Also update @nx/remix/utils/versions when changing vite version\nexport const viteVersion = '^6.0.0';\nexport const viteV5Version = '^5.0.0';\nexport const vitestVersion = '^3.0.0';\nexport const vitestV1Version = '^1.3.1';\nexport const vitePluginReactVersion = '^4.2.0';\nexport const vitePluginReactSwcVersion = '^3.5.0';\nexport const jsdomVersion = '~22.1.0';\nexport const vitePluginDtsVersion = '~4.5.0';\nexport const happyDomVersion = '~9.20.3';\nexport const edgeRuntimeVmVersion = '~3.0.2';\nexport const jitiVersion = '2.4.2';\n\nexport const analogVitestAngular = '~1.14.1';\n\n// Coverage providers\nexport const vitestCoverageV8Version = '^3.0.5';\nexport const vitestV1CoverageV8Version = '^1.0.4';\nexport const vitestCoverageIstanbulVersion = '^3.0.5';\nexport const vitestV1CoverageIstanbulVersion = '^1.0.4';\n"],"names":["analogVitestAngular","edgeRuntimeVmVersion","happyDomVersion","jitiVersion","jsdomVersion","nxVersion","vitePluginDtsVersion","vitePluginReactSwcVersion","vitePluginReactVersion","viteV5Version","viteVersion","vitestCoverageIstanbulVersion","vitestCoverageV8Version","vitestV1CoverageIstanbulVersion","vitestV1CoverageV8Version","vitestV1Version","vitestVersion","require","version"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;IAcaA,mBAAmB;eAAnBA;;IAHAC,oBAAoB;eAApBA;;IADAC,eAAe;eAAfA;;IAEAC,WAAW;eAAXA;;IAJAC,YAAY;eAAZA;;IARAC,SAAS;eAATA;;IASAC,oBAAoB;eAApBA;;IAFAC,yBAAyB;eAAzBA;;IADAC,sBAAsB;eAAtBA;;IAHAC,aAAa;eAAbA;;IADAC,WAAW;eAAXA;;IAiBAC,6BAA6B;eAA7BA;;IAFAC,uBAAuB;eAAvBA;;IAGAC,+BAA+B;eAA/BA;;IAFAC,yBAAyB;eAAzBA;;IAbAC,eAAe;eAAfA;;IADAC,aAAa;eAAbA;;;AAJN,MAAMX,YAAYY,QAAQ,sBAAsBC,OAAO;AAEvD,MAAMR,cAAc;AACpB,MAAMD,gBAAgB;AACtB,MAAMO,gBAAgB;AACtB,MAAMD,kBAAkB;AACxB,MAAMP,yBAAyB;AAC/B,MAAMD,4BAA4B;AAClC,MAAMH,eAAe;AACrB,MAAME,uBAAuB;AAC7B,MAAMJ,kBAAkB;AACxB,MAAMD,uBAAuB;AAC7B,MAAME,cAAc;AAEpB,MAAMH,sBAAsB;AAG5B,MAAMY,0BAA0B;AAChC,MAAME,4BAA4B;AAClC,MAAMH,gCAAgC;AACtC,MAAME,kCAAkC"}
|