@nx/next 23.3.0-beta.8 → 23.3.0-beta.9
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.
|
@@ -11,7 +11,6 @@ const update_package_json_1 = require("./lib/update-package-json");
|
|
|
11
11
|
const create_next_config_file_1 = require("./lib/create-next-config-file");
|
|
12
12
|
const check_project_1 = require("./lib/check-project");
|
|
13
13
|
const child_process_1 = require("child_process");
|
|
14
|
-
const create_cli_options_1 = require("../../utils/create-cli-options");
|
|
15
14
|
const internal_1 = require("@nx/devkit/internal");
|
|
16
15
|
const runtime_version_utils_1 = require("../../utils/runtime-version-utils");
|
|
17
16
|
const deprecation_1 = require("../../utils/deprecation");
|
|
@@ -123,7 +122,7 @@ function runCliBuild(workspaceRoot, projectRoot, options) {
|
|
|
123
122
|
devkit_1.logger.warn('The --webpack flag is only applicable in Next.js 16 and above. It will be ignored.');
|
|
124
123
|
}
|
|
125
124
|
}
|
|
126
|
-
const args = (0,
|
|
125
|
+
const args = (0, internal_1.createCliOptions)(cliOptions);
|
|
127
126
|
return new Promise((resolve, reject) => {
|
|
128
127
|
childProcess = (0, child_process_1.fork)(require.resolve('next/dist/bin/next'), ['build', ...args], {
|
|
129
128
|
cwd: (0, path_1.resolve)(workspaceRoot, projectRoot),
|
|
@@ -7,7 +7,6 @@ const devkit_1 = require("@nx/devkit");
|
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
const child_process_1 = require("child_process");
|
|
9
9
|
const custom_server_impl_1 = tslib_1.__importDefault(require("./custom-server.impl"));
|
|
10
|
-
const create_cli_options_1 = require("../../utils/create-cli-options");
|
|
11
10
|
const internal_2 = require("@nx/web/internal");
|
|
12
11
|
const runtime_version_utils_1 = require("../../utils/runtime-version-utils");
|
|
13
12
|
const deprecation_1 = require("../../utils/deprecation");
|
|
@@ -31,7 +30,7 @@ async function* serveExecutor(options, context) {
|
|
|
31
30
|
// Setting port that the custom server should use.
|
|
32
31
|
process.env.PORT = options.port ? `${options.port}` : process.env.PORT;
|
|
33
32
|
options.port = parseInt(process.env.PORT);
|
|
34
|
-
const args = (0,
|
|
33
|
+
const args = (0, internal_1.createCliOptions)({ port: options.port, hostname });
|
|
35
34
|
if (keepAliveTimeout && !options.dev) {
|
|
36
35
|
args.push(`--keepAliveTimeout=${keepAliveTimeout}`);
|
|
37
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/next",
|
|
3
|
-
"version": "23.3.0-beta.
|
|
3
|
+
"version": "23.3.0-beta.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Next.js plugin for Nx contains executors and 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": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"next": ">=14.0.0 <17.0.0",
|
|
71
|
-
"@nx/webpack": "23.3.0-beta.
|
|
71
|
+
"@nx/webpack": "23.3.0-beta.9"
|
|
72
72
|
},
|
|
73
73
|
"peerDependenciesMeta": {
|
|
74
74
|
"@nx/webpack": {
|
|
@@ -76,26 +76,26 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@nx/devkit": "23.3.0-beta.
|
|
79
|
+
"@nx/devkit": "23.3.0-beta.9",
|
|
80
80
|
"@babel/plugin-proposal-decorators": "^7.22.7",
|
|
81
81
|
"copy-webpack-plugin": "^14.0.0",
|
|
82
82
|
"ignore": "^7.0.5",
|
|
83
83
|
"semver": "^7.6.3",
|
|
84
84
|
"tslib": "^2.3.0",
|
|
85
85
|
"webpack-merge": "^5.8.0",
|
|
86
|
-
"@nx/js": "23.3.0-beta.
|
|
87
|
-
"@nx/eslint": "23.3.0-beta.
|
|
88
|
-
"@nx/react": "23.3.0-beta.
|
|
89
|
-
"@nx/web": "23.3.0-beta.
|
|
86
|
+
"@nx/js": "23.3.0-beta.9",
|
|
87
|
+
"@nx/eslint": "23.3.0-beta.9",
|
|
88
|
+
"@nx/react": "23.3.0-beta.9",
|
|
89
|
+
"@nx/web": "23.3.0-beta.9",
|
|
90
90
|
"@phenomnomnominal/tsquery": "~6.2.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@nx/cypress": "23.3.0-beta.
|
|
94
|
-
"@nx/playwright": "23.3.0-beta.
|
|
95
|
-
"@nx/vitest": "23.3.0-beta.
|
|
96
|
-
"@nx/webpack": "23.3.0-beta.
|
|
93
|
+
"@nx/cypress": "23.3.0-beta.9",
|
|
94
|
+
"@nx/playwright": "23.3.0-beta.9",
|
|
95
|
+
"@nx/vitest": "23.3.0-beta.9",
|
|
96
|
+
"@nx/webpack": "23.3.0-beta.9",
|
|
97
97
|
"next": "15.5.25",
|
|
98
|
-
"nx": "23.3.0-beta.
|
|
98
|
+
"nx": "23.3.0-beta.9"
|
|
99
99
|
},
|
|
100
100
|
"publishConfig": {
|
|
101
101
|
"access": "public"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function createCliOptions(obj: Record<string, string | number | boolean>): string[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createCliOptions = createCliOptions;
|
|
4
|
-
function createCliOptions(obj) {
|
|
5
|
-
return Object.entries(obj).reduce((arr, [key, value]) => {
|
|
6
|
-
if (value !== undefined) {
|
|
7
|
-
const kebabCase = key.replace(/[A-Z]/g, (m) => '-' + m.toLowerCase());
|
|
8
|
-
if (value === true || typeof value !== 'boolean') {
|
|
9
|
-
// Boolean flags don't need a value (e.g. --debug)
|
|
10
|
-
arr.push(`--${kebabCase}` + (typeof value !== 'boolean' ? `=${value}` : ''));
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return arr;
|
|
14
|
-
}, []);
|
|
15
|
-
}
|