@nx/next 21.2.2 → 21.3.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/next",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.3.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, Playwright, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.",
|
|
6
6
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"next": ">=14.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@nx/devkit": "21.
|
|
38
|
+
"@nx/devkit": "21.3.0-beta.0",
|
|
39
39
|
"@babel/plugin-proposal-decorators": "^7.22.7",
|
|
40
40
|
"@svgr/webpack": "^8.1.0",
|
|
41
41
|
"copy-webpack-plugin": "^10.2.4",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"semver": "^7.5.3",
|
|
45
45
|
"tslib": "^2.3.0",
|
|
46
46
|
"webpack-merge": "^5.8.0",
|
|
47
|
-
"@nx/js": "21.
|
|
48
|
-
"@nx/eslint": "21.
|
|
49
|
-
"@nx/react": "21.
|
|
50
|
-
"@nx/web": "21.
|
|
51
|
-
"@nx/webpack": "21.
|
|
47
|
+
"@nx/js": "21.3.0-beta.0",
|
|
48
|
+
"@nx/eslint": "21.3.0-beta.0",
|
|
49
|
+
"@nx/react": "21.3.0-beta.0",
|
|
50
|
+
"@nx/web": "21.3.0-beta.0",
|
|
51
|
+
"@nx/webpack": "21.3.0-beta.0",
|
|
52
52
|
"@phenomnomnominal/tsquery": "~5.0.1"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
@@ -67,10 +67,15 @@ async function buildExecutor(options, context) {
|
|
|
67
67
|
(0, devkit_1.writeJsonFile)(`${options.outputPath}/package.json`, builtPackageJson);
|
|
68
68
|
if (options.generateLockfile) {
|
|
69
69
|
const packageManager = (0, devkit_1.detectPackageManager)(context.root);
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
if (packageManager === 'bun') {
|
|
71
|
+
devkit_1.logger.warn('Bun lockfile generation is not supported. The generated package.json will not include a lockfile. Run "bun install" in the output directory after deployment if needed.');
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
const lockFile = (0, js_1.createLockFile)(builtPackageJson, context.projectGraph, packageManager);
|
|
75
|
+
(0, node_fs_1.writeFileSync)(`${options.outputPath}/${(0, js_1.getLockFileName)(packageManager)}`, lockFile, {
|
|
76
|
+
encoding: 'utf-8',
|
|
77
|
+
});
|
|
78
|
+
}
|
|
74
79
|
}
|
|
75
80
|
// If output path is different from source path, then copy over the config and public files.
|
|
76
81
|
// This is the default behavior when running `nx build <app>`.
|