@nx/next 16.9.0-beta.3 → 16.9.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/package.json +11 -12
- package/plugins/with-nx.js +7 -1
- package/CHANGELOG.md +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/next",
|
|
3
|
-
"version": "16.9.0-
|
|
3
|
+
"version": "16.9.0-rc.0",
|
|
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, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.",
|
|
6
6
|
"repository": {
|
|
@@ -35,26 +35,25 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@babel/plugin-proposal-decorators": "^7.22.7",
|
|
38
|
-
"@nrwl/next": "16.9.0-beta.3",
|
|
39
|
-
"@nx/devkit": "16.9.0-beta.3",
|
|
40
|
-
"@nx/js": "16.9.0-beta.3",
|
|
41
|
-
"@nx/linter": "16.9.0-beta.3",
|
|
42
|
-
"@nx/react": "16.9.0-beta.3",
|
|
43
|
-
"@nx/web": "16.9.0-beta.3",
|
|
44
|
-
"@nx/workspace": "16.9.0-beta.3",
|
|
45
38
|
"@svgr/webpack": "^8.0.1",
|
|
46
39
|
"chalk": "^4.1.0",
|
|
47
40
|
"copy-webpack-plugin": "^10.2.4",
|
|
48
41
|
"fs-extra": "^11.1.0",
|
|
49
42
|
"ignore": "^5.0.4",
|
|
50
43
|
"semver": "7.5.3",
|
|
51
|
-
"tslib": "^2.3.0",
|
|
52
44
|
"url-loader": "^4.1.1",
|
|
53
|
-
"
|
|
45
|
+
"tslib": "^2.3.0",
|
|
46
|
+
"webpack-merge": "^5.8.0",
|
|
47
|
+
"@nx/devkit": "16.9.0-rc.0",
|
|
48
|
+
"@nx/js": "16.9.0-rc.0",
|
|
49
|
+
"@nx/linter": "16.9.0-rc.0",
|
|
50
|
+
"@nx/react": "16.9.0-rc.0",
|
|
51
|
+
"@nx/web": "16.9.0-rc.0",
|
|
52
|
+
"@nx/workspace": "16.9.0-rc.0",
|
|
53
|
+
"@nrwl/next": "*"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"type": "commonjs"
|
|
59
|
-
"gitHead": "d5692528c089a75c76b21d2d1235d8cc5dbb1d26"
|
|
58
|
+
"type": "commonjs"
|
|
60
59
|
}
|
package/plugins/with-nx.js
CHANGED
|
@@ -11,6 +11,7 @@ const baseNXEnvironmentVariables = [
|
|
|
11
11
|
'NX_PERF_LOGGING',
|
|
12
12
|
'NX_PROFILE',
|
|
13
13
|
'NX_PROJECT_GRAPH_CACHE_DIRECTORY',
|
|
14
|
+
'NX_INVOKED_BY_RUNNER',
|
|
14
15
|
'NX_PROJECT_GRAPH_MAX_WORKERS',
|
|
15
16
|
'NX_RUNNER',
|
|
16
17
|
'NX_SKIP_NX_CACHE',
|
|
@@ -29,6 +30,9 @@ const baseNXEnvironmentVariables = [
|
|
|
29
30
|
'NX_WORKSPACE_ROOT',
|
|
30
31
|
'NX_TASK_HASH',
|
|
31
32
|
'NX_NEXT_DIR',
|
|
33
|
+
'NX_NEXT_OUTPUT_PATH',
|
|
34
|
+
'NX_E2E_RUN_E2E',
|
|
35
|
+
'NX_E2E_CI_CACHE_KEY',
|
|
32
36
|
];
|
|
33
37
|
function regexEqual(x, y) {
|
|
34
38
|
return (x instanceof RegExp &&
|
|
@@ -295,6 +299,7 @@ function getNxEnvironmentVariables() {
|
|
|
295
299
|
return env;
|
|
296
300
|
}, {});
|
|
297
301
|
}
|
|
302
|
+
let hasWarnedAboutDeprecatedEnvVariables = false;
|
|
298
303
|
/**
|
|
299
304
|
* TODO(v18)
|
|
300
305
|
* @deprecated Use Next.js 9.4+ built-in support for environment variables. Reference https://nextjs.org/docs/pages/api-reference/next-config-js/env
|
|
@@ -310,7 +315,8 @@ function addNxEnvVariables(config) {
|
|
|
310
315
|
.filter(([name]) => !maybeDefinePlugin.definitions[name])
|
|
311
316
|
.forEach(([name, value]) => (maybeDefinePlugin.definitions[name] = value));
|
|
312
317
|
const vars = getNonBaseVariables(env);
|
|
313
|
-
if (vars.length > 0) {
|
|
318
|
+
if (vars.length > 0 && !hasWarnedAboutDeprecatedEnvVariables) {
|
|
319
|
+
hasWarnedAboutDeprecatedEnvVariables = true;
|
|
314
320
|
console.warn(`Warning, in Nx 18 environment variables starting with NX_ will not be available in the browser, and currently will not work with @nx/next:server executor.\nPlease rename the following environment variables: ${vars.join(', ')} using Next.js' built-in support for environment variables. Reference https://nextjs.org/docs/pages/api-reference/next-config-js/env`);
|
|
315
321
|
}
|
|
316
322
|
}
|