@nx/next 24.0.0-canary.20261020-e7ffd79 → 24.0.0-rc.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/dist/src/generators/application/lib/add-e2e.js +1 -3
- package/dist/src/generators/application/lib/add-jest.js +1 -2
- package/dist/src/generators/application/lib/add-linting.js +1 -1
- package/dist/src/generators/application/schema.d.ts +0 -4
- package/dist/src/generators/application/schema.json +0 -6
- package/dist/src/generators/library/schema.d.ts +0 -4
- package/dist/src/generators/library/schema.json +0 -6
- package/package.json +12 -12
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addE2e = addE2e;
|
|
4
4
|
const internal_1 = require("@nx/devkit/internal");
|
|
5
|
-
const internal_2 = require("@nx/eslint/internal");
|
|
6
5
|
const devkit_1 = require("@nx/devkit");
|
|
7
6
|
const web_1 = require("@nx/web");
|
|
8
7
|
const versions_1 = require("../../../utils/versions");
|
|
@@ -53,7 +52,6 @@ async function addE2e(host, options) {
|
|
|
53
52
|
devServerTarget: e2eWebServerInfo.e2eDevServerTarget,
|
|
54
53
|
baseUrl: e2eWebServerInfo.e2eWebServerAddress,
|
|
55
54
|
jsx: true,
|
|
56
|
-
enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
|
|
57
55
|
webServerCommands: {
|
|
58
56
|
default: e2eWebServerInfo.e2eWebServerCommand,
|
|
59
57
|
},
|
|
@@ -95,7 +93,7 @@ async function addE2e(host, options) {
|
|
|
95
93
|
directory: 'src',
|
|
96
94
|
js: false,
|
|
97
95
|
linter: options.linter,
|
|
98
|
-
enableTypedLinting:
|
|
96
|
+
enableTypedLinting: options.enableTypedLinting,
|
|
99
97
|
webServerCommand: e2eWebServerInfo.e2eWebServerCommand,
|
|
100
98
|
webServerAddress: e2eWebServerInfo.e2eWebServerAddress,
|
|
101
99
|
ciWebServerCommand: e2eWebServerInfo.e2eCiWebServerCommand,
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addJest = addJest;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const internal_1 = require("@nx/eslint/internal");
|
|
6
5
|
const versions_1 = require("../../../utils/versions");
|
|
7
6
|
async function addJest(host, options) {
|
|
8
7
|
if (options.unitTestRunner !== 'jest') {
|
|
@@ -31,7 +30,7 @@ async function addJest(host, options) {
|
|
|
31
30
|
(0, devkit_1.updateJson)(host, (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'tsconfig.spec.json'), (json) => {
|
|
32
31
|
json.compilerOptions.jsx = 'react';
|
|
33
32
|
// Override exclude so typed linting doesn't fail on jest.config.ts and jest.config.cts.
|
|
34
|
-
if (
|
|
33
|
+
if (options.enableTypedLinting) {
|
|
35
34
|
const tsConfig = (0, devkit_1.readJson)(host, (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'tsconfig.json'));
|
|
36
35
|
json.exclude = tsConfig.exclude.filter((e) => e !== 'jest.config.ts' && e !== 'jest.config.cts');
|
|
37
36
|
}
|
|
@@ -18,7 +18,7 @@ async function addLinting(host, options) {
|
|
|
18
18
|
],
|
|
19
19
|
unitTestRunner: options.unitTestRunner,
|
|
20
20
|
rootProject: options.rootProject,
|
|
21
|
-
enableTypedLinting:
|
|
21
|
+
enableTypedLinting: options.enableTypedLinting,
|
|
22
22
|
skipPackageJson: options.skipPackageJson,
|
|
23
23
|
}));
|
|
24
24
|
// Everything below configures ESLint — predefined configs, `extends`, ignore
|
|
@@ -12,10 +12,6 @@ export interface Schema {
|
|
|
12
12
|
linter?: LinterType;
|
|
13
13
|
js?: boolean;
|
|
14
14
|
enableTypedLinting?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
17
|
-
*/
|
|
18
|
-
setParserOptionsProject?: boolean;
|
|
19
15
|
swc?: boolean;
|
|
20
16
|
/** @deprecated Next.js discourages custom servers. Write your own server following the Next.js custom server guide instead. It will be removed in Nx v25. */
|
|
21
17
|
customServer?: boolean;
|
|
@@ -94,12 +94,6 @@
|
|
|
94
94
|
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
95
95
|
"default": false
|
|
96
96
|
},
|
|
97
|
-
"setParserOptionsProject": {
|
|
98
|
-
"type": "boolean",
|
|
99
|
-
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
100
|
-
"default": false,
|
|
101
|
-
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
102
|
-
},
|
|
103
97
|
"swc": {
|
|
104
98
|
"description": "Enable the Rust-based compiler SWC to compile JS/TS files.",
|
|
105
99
|
"type": "boolean",
|
|
@@ -24,10 +24,6 @@ export interface Schema {
|
|
|
24
24
|
globalCss?: boolean;
|
|
25
25
|
strict?: boolean;
|
|
26
26
|
enableTypedLinting?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
29
|
-
*/
|
|
30
|
-
setParserOptionsProject?: boolean;
|
|
31
27
|
skipPackageJson?: boolean;
|
|
32
28
|
useProjectJson?: boolean;
|
|
33
29
|
}
|
|
@@ -139,12 +139,6 @@
|
|
|
139
139
|
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
140
140
|
"default": false
|
|
141
141
|
},
|
|
142
|
-
"setParserOptionsProject": {
|
|
143
|
-
"type": "boolean",
|
|
144
|
-
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
145
|
-
"default": false,
|
|
146
|
-
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
147
|
-
},
|
|
148
142
|
"compiler": {
|
|
149
143
|
"type": "string",
|
|
150
144
|
"enum": ["babel", "swc"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/next",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-rc.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Next.js plugin for Nx infers tasks and provides generators for managing Next.js applications and libraries within an Nx workspace. It provides:\n\n\n- Scaffolding for creating, building, serving, linting, and testing Next.js applications.\n\n- Integration with building, serving, and exporting a Next.js application.\n\n- Integration with React libraries within the workspace. \n\nWhen using Next.js in Nx, you get the out-of-the-box support for TypeScript, Playwright, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.",
|
|
6
6
|
"repository": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"next": ">=14.0.0 <17.0.0",
|
|
74
|
-
"@nx/webpack": "24.0.0-
|
|
74
|
+
"@nx/webpack": "24.0.0-rc.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependenciesMeta": {
|
|
77
77
|
"@nx/webpack": {
|
|
@@ -79,26 +79,26 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@nx/devkit": "24.0.0-
|
|
82
|
+
"@nx/devkit": "24.0.0-rc.0",
|
|
83
83
|
"@babel/plugin-proposal-decorators": "^7.22.7",
|
|
84
84
|
"copy-webpack-plugin": "^14.0.0",
|
|
85
85
|
"ignore": "^7.0.5",
|
|
86
86
|
"semver": "^7.6.3",
|
|
87
87
|
"tslib": "^2.3.0",
|
|
88
88
|
"webpack-merge": "^5.8.0",
|
|
89
|
-
"@nx/js": "24.0.0-
|
|
90
|
-
"@nx/eslint": "24.0.0-
|
|
91
|
-
"@nx/react": "24.0.0-
|
|
92
|
-
"@nx/web": "24.0.0-
|
|
89
|
+
"@nx/js": "24.0.0-rc.0",
|
|
90
|
+
"@nx/eslint": "24.0.0-rc.0",
|
|
91
|
+
"@nx/react": "24.0.0-rc.0",
|
|
92
|
+
"@nx/web": "24.0.0-rc.0",
|
|
93
93
|
"@phenomnomnominal/tsquery": "~6.2.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@nx/cypress": "24.0.0-
|
|
97
|
-
"@nx/playwright": "24.0.0-
|
|
98
|
-
"@nx/vitest": "24.0.0-
|
|
99
|
-
"@nx/webpack": "24.0.0-
|
|
96
|
+
"@nx/cypress": "24.0.0-rc.0",
|
|
97
|
+
"@nx/playwright": "24.0.0-rc.0",
|
|
98
|
+
"@nx/vitest": "24.0.0-rc.0",
|
|
99
|
+
"@nx/webpack": "24.0.0-rc.0",
|
|
100
100
|
"next": "15.5.25",
|
|
101
|
-
"nx": "24.0.0-
|
|
101
|
+
"nx": "24.0.0-rc.0"
|
|
102
102
|
},
|
|
103
103
|
"publishConfig": {
|
|
104
104
|
"access": "public"
|