@nx/nuxt 21.2.0 → 21.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/nuxt",
3
- "version": "21.2.0",
3
+ "version": "21.2.2",
4
4
  "private": false,
5
5
  "description": "The Nuxt plugin for Nx contains executors and generators for managing Nuxt applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -31,11 +31,11 @@
31
31
  "dependencies": {
32
32
  "tslib": "^2.3.0",
33
33
  "@nuxt/kit": "^3.10.0",
34
- "@nx/devkit": "21.2.0",
35
- "@nx/js": "21.2.0",
36
- "@nx/eslint": "21.2.0",
37
- "@nx/vue": "21.2.0",
38
- "@nx/vite": "21.2.0",
34
+ "@nx/devkit": "21.2.2",
35
+ "@nx/js": "21.2.2",
36
+ "@nx/eslint": "21.2.2",
37
+ "@nx/vue": "21.2.2",
38
+ "@nx/vite": "21.2.2",
39
39
  "@phenomnomnominal/tsquery": "~5.0.1"
40
40
  },
41
41
  "peerDependencies": {
@@ -69,6 +69,7 @@ async function applicationGeneratorInternal(tree, schema) {
69
69
  (0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, './files/base'), options.appProjectRoot, {
70
70
  ...options,
71
71
  offsetFromRoot: projectOffsetFromRoot,
72
+ relativePathToRootTsConfig: (0, js_1.getRelativePathToRootTsConfig)(tree, options.appProjectRoot),
72
73
  title: options.projectName,
73
74
  dot: '.',
74
75
  tmpl: '',
@@ -13,7 +13,7 @@ export default defineNuxtConfig({
13
13
  typescript: {
14
14
  typeCheck: true,
15
15
  tsConfig: {
16
- extends: '../tsconfig.app.json', // Nuxt copies this string as-is to the `./.nuxt/tsconfig.json`, therefore it needs to be relative to that directory
16
+ extends: '../<%= relativePathToRootTsConfig %>', // Nuxt copies this string as-is to the `./.nuxt/tsconfig.json`, therefore it needs to be relative to that directory
17
17
  },
18
18
  },
19
19
  imports: {
@@ -29,7 +29,7 @@ function createTsConfig(host, options, relativePathToRootTsConfig) {
29
29
  json.exclude = ['node_modules', 'tmp'];
30
30
  }
31
31
  else {
32
- json.extends = relativePathToRootTsConfig;
32
+ json.extends = './.nuxt/tsconfig.json';
33
33
  }
34
34
  (0, devkit_1.writeJson)(host, `${options.projectRoot}/tsconfig.json`, json);
35
35
  }