@nx/vite 23.1.0-beta.5 → 23.1.0-beta.7

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.
@@ -5,7 +5,7 @@ export declare function warnViteBuildExecutorDeprecation(): void;
5
5
  export declare function warnViteDevServerExecutorDeprecation(): void;
6
6
  export declare function warnVitePreviewServerExecutorDeprecation(): void;
7
7
  export declare function warnViteExecutorGenerating(): void;
8
- export declare const NX_VITE_TS_PATHS_DEPRECATION_MESSAGE = "The `nxViteTsPaths` plugin from `@nx/vite/plugins/nx-tsconfig-paths.plugin` is deprecated and will be removed in Nx v24. Replace it with `tsconfigPaths()` from the `vite-tsconfig-paths` package. See https://nx.dev/docs/technologies/build-tools/vite/configure-vite for details.";
9
- export declare const NX_COPY_ASSETS_PLUGIN_DEPRECATION_MESSAGE = "The `nxCopyAssetsPlugin` plugin from `@nx/vite/plugins/nx-copy-assets.plugin` is deprecated and will be removed in Nx v24. Use Vite's native `publicDir` option or the `vite-plugin-static-copy` package instead. See https://nx.dev/docs/technologies/build-tools/vite/configure-vite for details.";
8
+ export declare const NX_VITE_TS_PATHS_DEPRECATION_MESSAGE = "The `nxViteTsPaths` plugin from `@nx/vite/plugins/nx-tsconfig-paths.plugin` is deprecated and will be removed in Nx v24. Replace it with `tsconfigPaths()` from the `vite-tsconfig-paths` package. See https://nx.dev/docs/technologies/build-tools/vite/guides/configure-vite for details.";
9
+ export declare const NX_COPY_ASSETS_PLUGIN_DEPRECATION_MESSAGE = "The `nxCopyAssetsPlugin` plugin from `@nx/vite/plugins/nx-copy-assets.plugin` is deprecated and will be removed in Nx v24. Use Vite's native `publicDir` option or the `vite-plugin-static-copy` package instead. See https://nx.dev/docs/technologies/build-tools/vite/guides/configure-vite for details.";
10
10
  export declare function warnNxViteTsPathsDeprecation(): void;
11
11
  export declare function warnNxCopyAssetsPluginDeprecation(): void;
@@ -36,8 +36,8 @@ function warnViteExecutorGenerating() {
36
36
  // tsconfig, so the community `vite-tsconfig-paths` package handles path
37
37
  // resolution end-to-end. Asset copying is covered by Vite's native
38
38
  // `publicDir` option or the `vite-plugin-static-copy` package.
39
- exports.NX_VITE_TS_PATHS_DEPRECATION_MESSAGE = 'The `nxViteTsPaths` plugin from `@nx/vite/plugins/nx-tsconfig-paths.plugin` is deprecated and will be removed in Nx v24. Replace it with `tsconfigPaths()` from the `vite-tsconfig-paths` package. See https://nx.dev/docs/technologies/build-tools/vite/configure-vite for details.';
40
- exports.NX_COPY_ASSETS_PLUGIN_DEPRECATION_MESSAGE = "The `nxCopyAssetsPlugin` plugin from `@nx/vite/plugins/nx-copy-assets.plugin` is deprecated and will be removed in Nx v24. Use Vite's native `publicDir` option or the `vite-plugin-static-copy` package instead. See https://nx.dev/docs/technologies/build-tools/vite/configure-vite for details.";
39
+ exports.NX_VITE_TS_PATHS_DEPRECATION_MESSAGE = 'The `nxViteTsPaths` plugin from `@nx/vite/plugins/nx-tsconfig-paths.plugin` is deprecated and will be removed in Nx v24. Replace it with `tsconfigPaths()` from the `vite-tsconfig-paths` package. See https://nx.dev/docs/technologies/build-tools/vite/guides/configure-vite for details.';
40
+ exports.NX_COPY_ASSETS_PLUGIN_DEPRECATION_MESSAGE = "The `nxCopyAssetsPlugin` plugin from `@nx/vite/plugins/nx-copy-assets.plugin` is deprecated and will be removed in Nx v24. Use Vite's native `publicDir` option or the `vite-plugin-static-copy` package instead. See https://nx.dev/docs/technologies/build-tools/vite/guides/configure-vite for details.";
41
41
  let nxViteTsPathsWarned = false;
42
42
  let nxCopyAssetsPluginWarned = false;
43
43
  // Warn-once per process so users don't see the message repeated on every
@@ -17,6 +17,10 @@ async function validateTypes(opts) {
17
17
  ? opts.tsconfig
18
18
  : (0, path_1.join)(opts.workspaceRoot, opts.tsconfig),
19
19
  mode: 'noEmit',
20
+ // TS 6 defaults rootDir to the tsconfig dir, so from-source workspace
21
+ // libs (outside the project) trip TS6059. rootDir is emit-only and this
22
+ // is noEmit, so widen it to the workspace root to clear the false error.
23
+ rootDir: opts.workspaceRoot,
20
24
  });
21
25
  await (0, js_1.printDiagnostics)(result.errors, result.warnings);
22
26
  if (result.errors.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/vite",
3
- "version": "23.1.0-beta.5",
3
+ "version": "23.1.0-beta.7",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -101,13 +101,13 @@
101
101
  "semver": "^7.6.3",
102
102
  "tslib": "^2.3.0",
103
103
  "ajv": "^8.0.0",
104
- "@nx/devkit": "23.1.0-beta.5",
105
- "@nx/js": "23.1.0-beta.5",
106
- "@nx/vitest": "23.1.0-beta.5"
104
+ "@nx/js": "23.1.0-beta.7",
105
+ "@nx/vitest": "23.1.0-beta.7",
106
+ "@nx/devkit": "23.1.0-beta.7"
107
107
  },
108
108
  "devDependencies": {
109
- "@nx/eslint": "23.1.0-beta.5",
110
- "nx": "23.1.0-beta.5"
109
+ "@nx/eslint": "23.1.0-beta.7",
110
+ "nx": "23.1.0-beta.7"
111
111
  },
112
112
  "peerDependencies": {
113
113
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"