@nx/next 19.4.0-beta.1 → 19.4.0-beta.2

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/generators.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "init": {
7
7
  "factory": "./src/generators/init/init#nextInitGeneratorInternal",
8
8
  "schema": "./src/generators/init/schema.json",
9
- "description": "Initialize the `@nrwl/next` plugin.",
9
+ "description": "Initialize the `@nx/next` plugin.",
10
10
  "hidden": true
11
11
  },
12
12
  "application": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/next",
3
- "version": "19.4.0-beta.1",
3
+ "version": "19.4.0-beta.2",
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": "19.4.0-beta.1",
38
+ "@nx/devkit": "19.4.0-beta.2",
39
39
  "@babel/plugin-proposal-decorators": "^7.22.7",
40
40
  "@svgr/webpack": "^8.0.1",
41
41
  "chalk": "^4.1.0",
@@ -46,13 +46,13 @@
46
46
  "semver": "^7.5.3",
47
47
  "tslib": "^2.3.0",
48
48
  "webpack-merge": "^5.8.0",
49
- "@nx/js": "19.4.0-beta.1",
50
- "@nx/eslint": "19.4.0-beta.1",
51
- "@nx/react": "19.4.0-beta.1",
52
- "@nx/web": "19.4.0-beta.1",
53
- "@nx/webpack": "19.4.0-beta.1",
54
- "@nx/workspace": "19.4.0-beta.1",
55
- "@nrwl/next": "19.4.0-beta.1"
49
+ "@nx/js": "19.4.0-beta.2",
50
+ "@nx/eslint": "19.4.0-beta.2",
51
+ "@nx/react": "19.4.0-beta.2",
52
+ "@nx/web": "19.4.0-beta.2",
53
+ "@nx/webpack": "19.4.0-beta.2",
54
+ "@nx/workspace": "19.4.0-beta.2",
55
+ "@nrwl/next": "19.4.0-beta.2"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"
@@ -83,11 +83,16 @@ async function buildExecutor(options, context) {
83
83
  }
84
84
  exports.default = buildExecutor;
85
85
  function runCliBuild(workspaceRoot, projectRoot, options) {
86
- const { experimentalAppOnly, profile, debug, outputPath } = options;
86
+ const { experimentalAppOnly, experimentalBuildMode, profile, debug, outputPath, } = options;
87
87
  // Set output path here since it can also be set via CLI
88
88
  // We can retrieve it inside plugins/with-nx
89
89
  process.env.NX_NEXT_OUTPUT_PATH ??= outputPath;
90
- const args = (0, create_cli_options_1.createCliOptions)({ experimentalAppOnly, profile, debug });
90
+ const args = (0, create_cli_options_1.createCliOptions)({
91
+ experimentalAppOnly,
92
+ experimentalBuildMode,
93
+ profile,
94
+ debug,
95
+ });
91
96
  return new Promise((resolve, reject) => {
92
97
  childProcess = (0, child_process_1.fork)(require.resolve('next/dist/bin/next'), ['build', ...args], {
93
98
  cwd: (0, path_1.resolve)(workspaceRoot, projectRoot),
@@ -69,6 +69,11 @@
69
69
  "experimentalAppOnly": {
70
70
  "type": "boolean",
71
71
  "description": "Only build 'app' routes"
72
+ },
73
+ "experimentalBuildMode": {
74
+ "type": "string",
75
+ "description": "Change the build mode.",
76
+ "enum": ["compile", "generate"]
72
77
  }
73
78
  },
74
79
  "required": ["outputPath"],
@@ -32,6 +32,7 @@ export interface NextBuildBuilderOptions {
32
32
  debug?: boolean;
33
33
  profile?: boolean;
34
34
  experimentalAppOnly?: boolean;
35
+ experimentalBuildMode?: 'compile' | 'generate';
35
36
  }
36
37
  export interface NextServeBuilderOptions {
37
38
  dev: boolean;