@nx/next 16.9.0-beta.3 → 16.9.0-beta.4
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 +4 -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-beta.
|
|
3
|
+
"version": "16.9.0-beta.4",
|
|
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-beta.4",
|
|
48
|
+
"@nx/js": "16.9.0-beta.4",
|
|
49
|
+
"@nx/linter": "16.9.0-beta.4",
|
|
50
|
+
"@nx/react": "16.9.0-beta.4",
|
|
51
|
+
"@nx/web": "16.9.0-beta.4",
|
|
52
|
+
"@nx/workspace": "16.9.0-beta.4",
|
|
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',
|
|
@@ -295,6 +296,7 @@ function getNxEnvironmentVariables() {
|
|
|
295
296
|
return env;
|
|
296
297
|
}, {});
|
|
297
298
|
}
|
|
299
|
+
let hasWarnedAboutDeprecatedEnvVariables = false;
|
|
298
300
|
/**
|
|
299
301
|
* TODO(v18)
|
|
300
302
|
* @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 +312,8 @@ function addNxEnvVariables(config) {
|
|
|
310
312
|
.filter(([name]) => !maybeDefinePlugin.definitions[name])
|
|
311
313
|
.forEach(([name, value]) => (maybeDefinePlugin.definitions[name] = value));
|
|
312
314
|
const vars = getNonBaseVariables(env);
|
|
313
|
-
if (vars.length > 0) {
|
|
315
|
+
if (vars.length > 0 && !hasWarnedAboutDeprecatedEnvVariables) {
|
|
316
|
+
hasWarnedAboutDeprecatedEnvVariables = true;
|
|
314
317
|
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
318
|
}
|
|
316
319
|
}
|