@nx/nuxt 22.2.0-beta.1 → 22.2.0-beta.3

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": "22.2.0-beta.1",
3
+ "version": "22.2.0-beta.3",
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": {
@@ -44,16 +44,16 @@
44
44
  "dependencies": {
45
45
  "tslib": "^2.3.0",
46
46
  "@nuxt/kit": "^3.10.0 || ^4.0.0",
47
- "@nx/devkit": "22.2.0-beta.1",
48
- "@nx/js": "22.2.0-beta.1",
49
- "@nx/eslint": "22.2.0-beta.1",
50
- "@nx/vue": "22.2.0-beta.1",
51
- "@nx/vite": "22.2.0-beta.1",
52
- "@nx/vitest": "22.2.0-beta.1",
47
+ "@nx/devkit": "22.2.0-beta.3",
48
+ "@nx/js": "22.2.0-beta.3",
49
+ "@nx/eslint": "22.2.0-beta.3",
50
+ "@nx/vue": "22.2.0-beta.3",
51
+ "@nx/vite": "22.2.0-beta.3",
52
+ "@nx/vitest": "22.2.0-beta.3",
53
53
  "semver": "^7.5.3"
54
54
  },
55
55
  "devDependencies": {
56
- "nx": "22.2.0-beta.1"
56
+ "nx": "22.2.0-beta.3"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@nuxt/schema": "^3.10.0 || ^4.0.0"
@@ -69,14 +69,14 @@ function generateNuxtFlatEslintConfig(tree, projectRoot) {
69
69
  if (isCjs) {
70
70
  // CJS flat config
71
71
  configContent = `const { createConfigForNuxt } = require('@nuxt/eslint-config/flat');
72
- const baseConfig = require('${rootConfigRelativePath}eslint.config.cjs');
73
-
72
+ ${projectRoot !== '.'
73
+ ? `const baseConfig = require('${rootConfigRelativePath}eslint.config.cjs');\n`
74
+ : ''}
74
75
  module.exports = createConfigForNuxt({
75
76
  features: {
76
77
  typescript: true,
77
78
  },
78
- })
79
- .prepend(...baseConfig)
79
+ })${projectRoot !== '.' ? `\n .prepend(...baseConfig)` : ''}
80
80
  .append(
81
81
  {
82
82
  files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.vue'],
@@ -91,14 +91,14 @@ module.exports = createConfigForNuxt({
91
91
  else {
92
92
  // ESM flat config (default)
93
93
  configContent = `import { createConfigForNuxt } from '@nuxt/eslint-config/flat';
94
- import baseConfig from '${rootConfigRelativePath}eslint.config.${isMjs ? 'mjs' : 'js'}';
95
-
94
+ ${projectRoot !== '.'
95
+ ? `import baseConfig from '${rootConfigRelativePath}eslint.config.${isMjs ? 'mjs' : 'js'}';\n`
96
+ : ''}
96
97
  export default createConfigForNuxt({
97
98
  features: {
98
99
  typescript: true,
99
100
  },
100
- })
101
- .prepend(...baseConfig)
101
+ })${projectRoot !== '.' ? `\n .prepend(...baseConfig)` : ''}
102
102
  .append(
103
103
  {
104
104
  files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.vue'],