@nx/next 18.1.1 → 18.2.0-beta.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 +9 -9
- package/plugins/with-nx.js +4 -1
- package/src/utils/styles.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/next",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.2.0-beta.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": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"next": ">=14.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nx/devkit": "18.
|
|
37
|
+
"@nx/devkit": "18.2.0-beta.0",
|
|
38
38
|
"@babel/plugin-proposal-decorators": "^7.22.7",
|
|
39
39
|
"@svgr/webpack": "^8.0.1",
|
|
40
40
|
"chalk": "^4.1.0",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"url-loader": "^4.1.1",
|
|
46
46
|
"tslib": "^2.3.0",
|
|
47
47
|
"webpack-merge": "^5.8.0",
|
|
48
|
-
"@nx/js": "18.
|
|
49
|
-
"@nx/eslint": "18.
|
|
50
|
-
"@nx/react": "18.
|
|
51
|
-
"@nx/web": "18.
|
|
52
|
-
"@nx/webpack": "18.
|
|
53
|
-
"@nx/workspace": "18.
|
|
54
|
-
"@nrwl/next": "18.
|
|
48
|
+
"@nx/js": "18.2.0-beta.0",
|
|
49
|
+
"@nx/eslint": "18.2.0-beta.0",
|
|
50
|
+
"@nx/react": "18.2.0-beta.0",
|
|
51
|
+
"@nx/web": "18.2.0-beta.0",
|
|
52
|
+
"@nx/webpack": "18.2.0-beta.0",
|
|
53
|
+
"@nx/workspace": "18.2.0-beta.0",
|
|
54
|
+
"@nrwl/next": "18.2.0-beta.0"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
package/plugins/with-nx.js
CHANGED
|
@@ -244,9 +244,12 @@ function getNextConfig(nextConfig = {}, context = getWithNxContext()) {
|
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
246
|
exports.getNextConfig = getNextConfig;
|
|
247
|
+
// Prevent sensitive keys from being bundled when source code uses entire `process.env` object rather than individual keys (e.g. `process.env.NX_FOO`).
|
|
248
|
+
// TODO(v19): BREAKING: Only support NEXT_PUBLIC_ env vars and ignore NX_ vars since this is a standard Next.js feature.
|
|
249
|
+
const excludedKeys = ['NX_CLOUD_ACCESS_TOKEN', 'NX_CLOUD_ENCRYPTION_KEY'];
|
|
247
250
|
function getNxEnvironmentVariables() {
|
|
248
251
|
return Object.keys(process.env)
|
|
249
|
-
.filter((env) => /^NX_/i.test(env))
|
|
252
|
+
.filter((env) => !excludedKeys.includes(env) && /^NX_/i.test(env))
|
|
250
253
|
.reduce((env, key) => {
|
|
251
254
|
env[key] = process.env[key];
|
|
252
255
|
return env;
|
package/src/utils/styles.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
2
2
|
export declare const nextSpecificStyleDependenciesBabel: {
|
|
3
3
|
'styled-components': {
|
|
4
|
-
dependencies: import("
|
|
4
|
+
dependencies: import("@nx/react/src/utils/dependencies").DependencyEntries;
|
|
5
5
|
devDependencies: {
|
|
6
6
|
'babel-plugin-styled-components': string;
|
|
7
7
|
};
|
|
@@ -10,7 +10,7 @@ export declare const nextSpecificStyleDependenciesBabel: {
|
|
|
10
10
|
dependencies: {
|
|
11
11
|
'@emotion/server': string;
|
|
12
12
|
};
|
|
13
|
-
devDependencies: import("
|
|
13
|
+
devDependencies: import("@nx/react/src/utils/dependencies").DependencyEntries;
|
|
14
14
|
};
|
|
15
15
|
css: {
|
|
16
16
|
dependencies: {};
|
|
@@ -32,7 +32,7 @@ export declare const nextSpecificStyleDependenciesBabel: {
|
|
|
32
32
|
};
|
|
33
33
|
export declare const nextSpecificStyleDependenciesSwc: {
|
|
34
34
|
'styled-components': {
|
|
35
|
-
dependencies: import("
|
|
35
|
+
dependencies: import("@nx/react/src/utils/dependencies").DependencyEntries;
|
|
36
36
|
devDependencies: {
|
|
37
37
|
'babel-plugin-styled-components': string;
|
|
38
38
|
};
|
|
@@ -41,7 +41,7 @@ export declare const nextSpecificStyleDependenciesSwc: {
|
|
|
41
41
|
dependencies: {
|
|
42
42
|
'@emotion/server': string;
|
|
43
43
|
};
|
|
44
|
-
devDependencies: import("
|
|
44
|
+
devDependencies: import("@nx/react/src/utils/dependencies").DependencyEntries;
|
|
45
45
|
};
|
|
46
46
|
css: {
|
|
47
47
|
dependencies: {};
|