@nx/next 22.7.0-beta.8 → 22.7.0-beta.9

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/executors.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
- "executors": {
3
- "build": {
4
- "implementation": "./src/executors/build/build.impl",
5
- "schema": "./src/executors/build/schema.json",
6
- "description": "Build a Next.js application."
7
- },
8
- "server": {
9
- "implementation": "./src/executors/server/server.impl",
10
- "schema": "./src/executors/server/schema.json",
11
- "description": "Serve a Next.js application."
2
+ "executors": {
3
+ "build": {
4
+ "implementation": "./src/executors/build/build.impl",
5
+ "schema": "./src/executors/build/schema.json",
6
+ "description": "Build a Next.js application."
7
+ },
8
+ "server": {
9
+ "implementation": "./src/executors/server/server.impl",
10
+ "schema": "./src/executors/server/schema.json",
11
+ "description": "Serve a Next.js application."
12
+ }
12
13
  }
13
- }
14
14
  }
package/generators.json CHANGED
@@ -1,52 +1,52 @@
1
1
  {
2
- "name": "nx/next",
3
- "version": "0.1",
4
- "extends": ["@nx/react"],
5
- "generators": {
6
- "init": {
7
- "factory": "./src/generators/init/init#nextInitGeneratorInternal",
8
- "schema": "./src/generators/init/schema.json",
9
- "description": "Initialize the `@nx/next` plugin.",
10
- "hidden": true
11
- },
12
- "application": {
13
- "factory": "./src/generators/application/application#applicationGeneratorInternal",
14
- "schema": "./src/generators/application/schema.json",
15
- "aliases": ["app"],
16
- "x-type": "application",
17
- "description": "Create an application."
18
- },
19
- "page": {
20
- "factory": "./src/generators/page/page",
21
- "schema": "./src/generators/page/schema.json",
22
- "description": "Create a page."
23
- },
24
- "component": {
25
- "factory": "./src/generators/component/component",
26
- "schema": "./src/generators/component/schema.json",
27
- "description": "Create a component."
28
- },
29
- "library": {
30
- "factory": "./src/generators/library/library#libraryGeneratorInternal",
31
- "schema": "./src/generators/library/schema.json",
32
- "aliases": ["lib"],
33
- "x-type": "library",
34
- "description": "Create a library."
35
- },
36
- "custom-server": {
37
- "factory": "./src/generators/custom-server/custom-server#customServerGenerator",
38
- "schema": "./src/generators/custom-server/schema.json",
39
- "description": "Set up a custom server."
40
- },
41
- "cypress-component-configuration": {
42
- "factory": "./src/generators/cypress-component-configuration/cypress-component-configuration#cypressComponentConfigurationInternal",
43
- "schema": "./src/generators/cypress-component-configuration/schema.json",
44
- "description": "cypress-component-configuration generator"
45
- },
46
- "convert-to-inferred": {
47
- "factory": "./src/generators/convert-to-inferred/convert-to-inferred",
48
- "schema": "./src/generators/convert-to-inferred/schema.json",
49
- "description": "Convert an existing Next.js project(s) using `@nx/next:build` to use `@nx/next/plugin`. Defaults to migrating all projects. Pass '--project' to migrate a single project."
2
+ "name": "nx/next",
3
+ "version": "0.1",
4
+ "extends": ["@nx/react"],
5
+ "generators": {
6
+ "init": {
7
+ "factory": "./src/generators/init/init#nextInitGeneratorInternal",
8
+ "schema": "./src/generators/init/schema.json",
9
+ "description": "Initialize the `@nx/next` plugin.",
10
+ "hidden": true
11
+ },
12
+ "application": {
13
+ "factory": "./src/generators/application/application#applicationGeneratorInternal",
14
+ "schema": "./src/generators/application/schema.json",
15
+ "aliases": ["app"],
16
+ "x-type": "application",
17
+ "description": "Create an application."
18
+ },
19
+ "page": {
20
+ "factory": "./src/generators/page/page",
21
+ "schema": "./src/generators/page/schema.json",
22
+ "description": "Create a page."
23
+ },
24
+ "component": {
25
+ "factory": "./src/generators/component/component",
26
+ "schema": "./src/generators/component/schema.json",
27
+ "description": "Create a component."
28
+ },
29
+ "library": {
30
+ "factory": "./src/generators/library/library#libraryGeneratorInternal",
31
+ "schema": "./src/generators/library/schema.json",
32
+ "aliases": ["lib"],
33
+ "x-type": "library",
34
+ "description": "Create a library."
35
+ },
36
+ "custom-server": {
37
+ "factory": "./src/generators/custom-server/custom-server#customServerGenerator",
38
+ "schema": "./src/generators/custom-server/schema.json",
39
+ "description": "Set up a custom server."
40
+ },
41
+ "cypress-component-configuration": {
42
+ "factory": "./src/generators/cypress-component-configuration/cypress-component-configuration#cypressComponentConfigurationInternal",
43
+ "schema": "./src/generators/cypress-component-configuration/schema.json",
44
+ "description": "cypress-component-configuration generator"
45
+ },
46
+ "convert-to-inferred": {
47
+ "factory": "./src/generators/convert-to-inferred/convert-to-inferred",
48
+ "schema": "./src/generators/convert-to-inferred/schema.json",
49
+ "description": "Convert an existing Next.js project(s) using `@nx/next:build` to use `@nx/next/plugin`. Defaults to migrating all projects. Pass '--project' to migrate a single project."
50
+ }
50
51
  }
51
- }
52
52
  }
package/migrations.json CHANGED
@@ -1,87 +1,87 @@
1
1
  {
2
- "generators": {
3
- "update-22-0-0-add-svgr-to-next-config": {
4
- "cli": "nx",
5
- "version": "22.0.0-beta.0",
6
- "description": "Updates next.config.js files to add SVGR webpack configuration directly instead of using the nx.svgr option in withNx.",
7
- "factory": "./src/migrations/update-22-0-0/add-svgr-to-next-config"
8
- },
9
- "update-22-2-0-create-ai-instructions-for-next-16": {
10
- "cli": "nx",
11
- "version": "22.2.0-beta.1",
12
- "requires": {
13
- "next": ">=16.0.0"
14
- },
15
- "description": "Create AI Instructions to help migrate users workspaces to Next.js 16.",
16
- "factory": "./src/migrations/update-22-2-0/create-ai-instructions-for-next-16"
17
- }
18
- },
19
- "packageJsonUpdates": {
20
- "20.7.1-beta.0": {
21
- "version": "20.7.1-beta.0",
22
- "packages": {
23
- "eslint-config-next": {
24
- "version": "^15.2.4",
25
- "alwaysAddToPackageJson": false
26
- }
27
- }
28
- },
29
- "20.7.1-beta.0-next14": {
30
- "version": "20.7.1-beta.0",
31
- "requires": {
32
- "next": "^14.0.0"
33
- },
34
- "packages": {
35
- "next": {
36
- "version": "~14.2.26",
37
- "alwaysAddToPackageJson": false
38
- }
39
- }
40
- },
41
- "20.7.1-beta.0-next15": {
42
- "version": "20.7.1-beta.0",
43
- "requires": {
44
- "next": "^15.0.0"
45
- },
46
- "packages": {
47
- "next": {
48
- "version": "~15.2.4",
49
- "alwaysAddToPackageJson": false
50
- }
51
- }
52
- },
53
- "22.2.0-beta.1": {
54
- "version": "22.2.0-beta.1",
55
- "requires": {
56
- "next": "^15.0.0"
57
- },
58
- "packages": {
59
- "next": {
60
- "version": "~16.0.1",
61
- "alwaysAddToPackageJson": false
2
+ "generators": {
3
+ "update-22-0-0-add-svgr-to-next-config": {
4
+ "cli": "nx",
5
+ "version": "22.0.0-beta.0",
6
+ "description": "Updates next.config.js files to add SVGR webpack configuration directly instead of using the nx.svgr option in withNx.",
7
+ "factory": "./src/migrations/update-22-0-0/add-svgr-to-next-config"
62
8
  },
63
- "eslint-config-next": {
64
- "version": "^16.0.1",
65
- "alwaysAddToPackageJson": false
9
+ "update-22-2-0-create-ai-instructions-for-next-16": {
10
+ "cli": "nx",
11
+ "version": "22.2.0-beta.1",
12
+ "requires": {
13
+ "next": ">=16.0.0"
14
+ },
15
+ "description": "Create AI Instructions to help migrate users workspaces to Next.js 16.",
16
+ "factory": "./src/migrations/update-22-2-0/create-ai-instructions-for-next-16"
66
17
  }
67
- }
68
18
  },
69
- "22.6.0": {
70
- "version": "22.6.0-beta.10",
71
- "x-prompt": "Bump Next.js to ~16.1.6 to resolve GHSA-9g9p-9gw9-jx7f and GHSA-5f7q-jpqc-wp7h",
72
- "requires": {
73
- "next": ">=16.0.0"
74
- },
75
- "packages": {
76
- "next": {
77
- "version": "~16.1.6",
78
- "alwaysAddToPackageJson": false
19
+ "packageJsonUpdates": {
20
+ "20.7.1-beta.0": {
21
+ "version": "20.7.1-beta.0",
22
+ "packages": {
23
+ "eslint-config-next": {
24
+ "version": "^15.2.4",
25
+ "alwaysAddToPackageJson": false
26
+ }
27
+ }
28
+ },
29
+ "20.7.1-beta.0-next14": {
30
+ "version": "20.7.1-beta.0",
31
+ "requires": {
32
+ "next": "^14.0.0"
33
+ },
34
+ "packages": {
35
+ "next": {
36
+ "version": "~14.2.26",
37
+ "alwaysAddToPackageJson": false
38
+ }
39
+ }
40
+ },
41
+ "20.7.1-beta.0-next15": {
42
+ "version": "20.7.1-beta.0",
43
+ "requires": {
44
+ "next": "^15.0.0"
45
+ },
46
+ "packages": {
47
+ "next": {
48
+ "version": "~15.2.4",
49
+ "alwaysAddToPackageJson": false
50
+ }
51
+ }
52
+ },
53
+ "22.2.0-beta.1": {
54
+ "version": "22.2.0-beta.1",
55
+ "requires": {
56
+ "next": "^15.0.0"
57
+ },
58
+ "packages": {
59
+ "next": {
60
+ "version": "~16.0.1",
61
+ "alwaysAddToPackageJson": false
62
+ },
63
+ "eslint-config-next": {
64
+ "version": "^16.0.1",
65
+ "alwaysAddToPackageJson": false
66
+ }
67
+ }
79
68
  },
80
- "eslint-config-next": {
81
- "version": "^16.1.6",
82
- "alwaysAddToPackageJson": false
69
+ "22.6.0": {
70
+ "version": "22.6.0-beta.10",
71
+ "x-prompt": "Bump Next.js to ~16.1.6 to resolve GHSA-9g9p-9gw9-jx7f and GHSA-5f7q-jpqc-wp7h",
72
+ "requires": {
73
+ "next": ">=16.0.0"
74
+ },
75
+ "packages": {
76
+ "next": {
77
+ "version": "~16.1.6",
78
+ "alwaysAddToPackageJson": false
79
+ },
80
+ "eslint-config-next": {
81
+ "version": "^16.1.6",
82
+ "alwaysAddToPackageJson": false
83
+ }
84
+ }
83
85
  }
84
- }
85
86
  }
86
- }
87
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/next",
3
- "version": "22.7.0-beta.8",
3
+ "version": "22.7.0-beta.9",
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": {
@@ -36,7 +36,7 @@
36
36
  "next": ">=14.0.0 <17.0.0"
37
37
  },
38
38
  "dependencies": {
39
- "@nx/devkit": "22.7.0-beta.8",
39
+ "@nx/devkit": "22.7.0-beta.9",
40
40
  "@babel/plugin-proposal-decorators": "^7.22.7",
41
41
  "@svgr/webpack": "^8.1.0",
42
42
  "copy-webpack-plugin": "^14.0.0",
@@ -44,17 +44,17 @@
44
44
  "semver": "^7.6.3",
45
45
  "tslib": "^2.3.0",
46
46
  "webpack-merge": "^5.8.0",
47
- "@nx/js": "22.7.0-beta.8",
48
- "@nx/eslint": "22.7.0-beta.8",
49
- "@nx/react": "22.7.0-beta.8",
50
- "@nx/web": "22.7.0-beta.8",
51
- "@nx/webpack": "22.7.0-beta.8",
47
+ "@nx/js": "22.7.0-beta.9",
48
+ "@nx/eslint": "22.7.0-beta.9",
49
+ "@nx/react": "22.7.0-beta.9",
50
+ "@nx/web": "22.7.0-beta.9",
51
+ "@nx/webpack": "22.7.0-beta.9",
52
52
  "@phenomnomnominal/tsquery": "~6.1.4"
53
53
  },
54
54
  "devDependencies": {
55
- "@nx/cypress": "22.7.0-beta.8",
56
- "@nx/playwright": "22.7.0-beta.8",
57
- "nx": "22.7.0-beta.8"
55
+ "@nx/cypress": "22.7.0-beta.9",
56
+ "@nx/playwright": "22.7.0-beta.9",
57
+ "nx": "22.7.0-beta.9"
58
58
  },
59
59
  "publishConfig": {
60
60
  "access": "public"
@@ -1,97 +1,97 @@
1
1
  {
2
- "version": 2,
3
- "outputCapture": "pipe",
4
- "$schema": "https://json-schema.org/schema",
5
- "cli": "nx",
6
- "title": "Next Build",
7
- "description": "Build a Next.js app.",
8
- "type": "object",
9
- "properties": {
10
- "outputPath": {
11
- "type": "string",
12
- "description": "The output path of the generated files.",
13
- "x-completion-type": "directory",
14
- "x-priority": "important"
15
- },
16
- "fileReplacements": {
17
- "description": "Replace files with other files in the build.",
18
- "type": "array",
19
- "items": {
20
- "type": "object",
21
- "properties": {
22
- "replace": {
2
+ "version": 2,
3
+ "outputCapture": "pipe",
4
+ "$schema": "https://json-schema.org/schema",
5
+ "cli": "nx",
6
+ "title": "Next Build",
7
+ "description": "Build a Next.js app.",
8
+ "type": "object",
9
+ "properties": {
10
+ "outputPath": {
23
11
  "type": "string",
24
- "description": "The file to be replaced.",
25
- "x-completion-type": "file"
26
- },
27
- "with": {
12
+ "description": "The output path of the generated files.",
13
+ "x-completion-type": "directory",
14
+ "x-priority": "important"
15
+ },
16
+ "fileReplacements": {
17
+ "description": "Replace files with other files in the build.",
18
+ "type": "array",
19
+ "items": {
20
+ "type": "object",
21
+ "properties": {
22
+ "replace": {
23
+ "type": "string",
24
+ "description": "The file to be replaced.",
25
+ "x-completion-type": "file"
26
+ },
27
+ "with": {
28
+ "type": "string",
29
+ "description": "The file to replace with.",
30
+ "x-completion-type": "file"
31
+ }
32
+ },
33
+ "additionalProperties": false,
34
+ "required": ["replace", "with"]
35
+ },
36
+ "default": []
37
+ },
38
+ "nextConfig": {
39
+ "description": "Path (relative to workspace root) to a function which takes phase, config, and builder options, and returns the resulting config. This is an advanced option and should not be used with a normal Next.js config file (i.e. `next.config.js`).",
28
40
  "type": "string",
29
- "description": "The file to replace with.",
30
- "x-completion-type": "file"
31
- }
41
+ "x-completion-type": "file",
42
+ "x-completion-glob": "next?(*).js",
43
+ "x-priority": "important"
32
44
  },
33
- "additionalProperties": false,
34
- "required": ["replace", "with"]
35
- },
36
- "default": []
37
- },
38
- "nextConfig": {
39
- "description": "Path (relative to workspace root) to a function which takes phase, config, and builder options, and returns the resulting config. This is an advanced option and should not be used with a normal Next.js config file (i.e. `next.config.js`).",
40
- "type": "string",
41
- "x-completion-type": "file",
42
- "x-completion-glob": "next?(*).js",
43
- "x-priority": "important"
44
- },
45
- "buildLibsFromSource": {
46
- "type": "boolean",
47
- "description": "Read buildable libraries from source instead of building them separately.",
48
- "default": true
49
- },
50
- "includeDevDependenciesInPackageJson": {
51
- "type": "boolean",
52
- "description": "Include `devDependencies` in the generated package.json file. By default only production `dependencies` are included.",
53
- "default": false
54
- },
55
- "generateLockfile": {
56
- "type": "boolean",
57
- "description": "Generate a lockfile (e.g. package-lock.json) that matches the workspace lockfile to ensure package versions match.",
58
- "default": false,
59
- "x-priority": "internal"
60
- },
61
- "skipOverrides": {
62
- "type": "boolean",
63
- "description": "Do not add a `overrides` and `resolutions` entries to the generated package.json file. Only works in conjunction with `generatePackageJson` option."
64
- },
65
- "skipPackageManager": {
66
- "type": "boolean",
67
- "description": "Do not add a `packageManager` entry to the generated package.json file."
68
- },
69
- "debug": {
70
- "type": "boolean",
71
- "description": "Enable Next.js debug build logging"
72
- },
73
- "profile": {
74
- "type": "boolean",
75
- "description": "Used to enable React Production Profiling"
76
- },
77
- "experimentalAppOnly": {
78
- "type": "boolean",
79
- "description": "Only build 'app' routes"
80
- },
81
- "experimentalBuildMode": {
82
- "type": "string",
83
- "description": "Change the build mode.",
84
- "enum": ["compile", "generate"]
85
- },
86
- "turbo": {
87
- "type": "boolean",
88
- "description": "Use Turbopack for building (Next.js 15 and below). In Next.js 16+, Turbopack is enabled by default."
45
+ "buildLibsFromSource": {
46
+ "type": "boolean",
47
+ "description": "Read buildable libraries from source instead of building them separately.",
48
+ "default": true
49
+ },
50
+ "includeDevDependenciesInPackageJson": {
51
+ "type": "boolean",
52
+ "description": "Include `devDependencies` in the generated package.json file. By default only production `dependencies` are included.",
53
+ "default": false
54
+ },
55
+ "generateLockfile": {
56
+ "type": "boolean",
57
+ "description": "Generate a lockfile (e.g. package-lock.json) that matches the workspace lockfile to ensure package versions match.",
58
+ "default": false,
59
+ "x-priority": "internal"
60
+ },
61
+ "skipOverrides": {
62
+ "type": "boolean",
63
+ "description": "Do not add a `overrides` and `resolutions` entries to the generated package.json file. Only works in conjunction with `generatePackageJson` option."
64
+ },
65
+ "skipPackageManager": {
66
+ "type": "boolean",
67
+ "description": "Do not add a `packageManager` entry to the generated package.json file."
68
+ },
69
+ "debug": {
70
+ "type": "boolean",
71
+ "description": "Enable Next.js debug build logging"
72
+ },
73
+ "profile": {
74
+ "type": "boolean",
75
+ "description": "Used to enable React Production Profiling"
76
+ },
77
+ "experimentalAppOnly": {
78
+ "type": "boolean",
79
+ "description": "Only build 'app' routes"
80
+ },
81
+ "experimentalBuildMode": {
82
+ "type": "string",
83
+ "description": "Change the build mode.",
84
+ "enum": ["compile", "generate"]
85
+ },
86
+ "turbo": {
87
+ "type": "boolean",
88
+ "description": "Use Turbopack for building (Next.js 15 and below). In Next.js 16+, Turbopack is enabled by default."
89
+ },
90
+ "webpack": {
91
+ "type": "boolean",
92
+ "description": "Use webpack bundler instead of Turbopack (Next.js 16+ only). This flag is only applicable in Next.js 16 and above where Turbopack is the default."
93
+ }
89
94
  },
90
- "webpack": {
91
- "type": "boolean",
92
- "description": "Use webpack bundler instead of Turbopack (Next.js 16+ only). This flag is only applicable in Next.js 16 and above where Turbopack is the default."
93
- }
94
- },
95
- "required": ["outputPath"],
96
- "examplesFile": "../../../docs/build-next-executor-examples.md"
95
+ "required": ["outputPath"],
96
+ "examplesFile": "../../../docs/build-next-executor-examples.md"
97
97
  }