@nx/next 23.3.0 → 24.0.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/README.md CHANGED
@@ -1,7 +1,7 @@
1
- <p style="text-align: center;">
1
+ <p align="center">
2
2
  <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
- <img alt="Nx - Smart Monorepos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo-light.svg">
4
+ <img alt="Nx Logo" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.svg" width="140">
5
5
  </picture>
6
6
  </p>
7
7
 
@@ -62,6 +62,3 @@ npx nx@latest init
62
62
  - [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
63
63
  - [Blog Posts About Nx](https://nx.dev/blog)
64
64
 
65
- <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
66
- width="100%" alt="Nx - Smart Monorepos · Fast Builds"></a></p>
67
-
@@ -85,6 +85,7 @@ async function applicationGeneratorInternal(host, schema) {
85
85
  if (!options.skipPackageJson) {
86
86
  const reactVersions = await (0, internal_2.getReactDependenciesVersionsToInstall)(host);
87
87
  const devDependencies = {
88
+ '@types/node': internal_3.typesNodeVersion,
88
89
  '@types/react': reactVersions['@types/react'],
89
90
  '@types/react-dom': reactVersions['@types/react-dom'],
90
91
  };
@@ -1,4 +1,4 @@
1
- import { CreateDependencies, CreateNodes } from '@nx/devkit';
1
+ import { CreateNodes } from '@nx/devkit';
2
2
  export interface NextPluginOptions {
3
3
  buildTargetName?: string;
4
4
  devTargetName?: string;
@@ -10,9 +10,5 @@ export interface NextPluginOptions {
10
10
  buildDepsTargetName?: string;
11
11
  watchDepsTargetName?: string;
12
12
  }
13
- /**
14
- * @deprecated The 'createDependencies' function is now a no-op. This functionality is included in 'createNodesV2'.
15
- */
16
- export declare const createDependencies: CreateDependencies;
17
13
  export declare const createNodes: CreateNodes<NextPluginOptions>;
18
14
  export declare const createNodesV2: CreateNodes<NextPluginOptions>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createNodesV2 = exports.createNodes = exports.createDependencies = void 0;
3
+ exports.createNodesV2 = exports.createNodes = void 0;
4
4
  const internal_1 = require("@nx/devkit/internal");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const js_1 = require("@nx/js");
@@ -8,13 +8,6 @@ const internal_2 = require("@nx/js/internal");
8
8
  const fs_1 = require("fs");
9
9
  const path_1 = require("path");
10
10
  const nextConfigBlob = '**/next.config.{ts,js,cjs,mjs}';
11
- /**
12
- * @deprecated The 'createDependencies' function is now a no-op. This functionality is included in 'createNodesV2'.
13
- */
14
- const createDependencies = () => {
15
- return [];
16
- };
17
- exports.createDependencies = createDependencies;
18
11
  exports.createNodes = [
19
12
  nextConfigBlob,
20
13
  async (configFiles, options, context) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/next",
3
- "version": "23.3.0",
3
+ "version": "24.0.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": {
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "peerDependencies": {
70
70
  "next": ">=14.0.0 <17.0.0",
71
- "@nx/webpack": "23.3.0"
71
+ "@nx/webpack": "24.0.0-beta.0"
72
72
  },
73
73
  "peerDependenciesMeta": {
74
74
  "@nx/webpack": {
@@ -76,26 +76,26 @@
76
76
  }
77
77
  },
78
78
  "dependencies": {
79
- "@nx/devkit": "23.3.0",
79
+ "@nx/devkit": "24.0.0-beta.0",
80
80
  "@babel/plugin-proposal-decorators": "^7.22.7",
81
81
  "copy-webpack-plugin": "^14.0.0",
82
82
  "ignore": "^7.0.5",
83
83
  "semver": "^7.6.3",
84
84
  "tslib": "^2.3.0",
85
85
  "webpack-merge": "^5.8.0",
86
- "@nx/js": "23.3.0",
87
- "@nx/eslint": "23.3.0",
88
- "@nx/react": "23.3.0",
89
- "@nx/web": "23.3.0",
86
+ "@nx/js": "24.0.0-beta.0",
87
+ "@nx/eslint": "24.0.0-beta.0",
88
+ "@nx/react": "24.0.0-beta.0",
89
+ "@nx/web": "24.0.0-beta.0",
90
90
  "@phenomnomnominal/tsquery": "~6.2.0"
91
91
  },
92
92
  "devDependencies": {
93
- "@nx/cypress": "23.3.0",
94
- "@nx/playwright": "23.3.0",
95
- "@nx/vitest": "23.3.0",
96
- "@nx/webpack": "23.3.0",
93
+ "@nx/cypress": "24.0.0-beta.0",
94
+ "@nx/playwright": "24.0.0-beta.0",
95
+ "@nx/vitest": "24.0.0-beta.0",
96
+ "@nx/webpack": "24.0.0-beta.0",
97
97
  "next": "15.5.25",
98
- "nx": "23.3.0"
98
+ "nx": "24.0.0-beta.0"
99
99
  },
100
100
  "publishConfig": {
101
101
  "access": "public"
@@ -1,7 +1,7 @@
1
- <p style="text-align: center;">
1
+ <p align="center">
2
2
  <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
- <img alt="Nx - Smart Monorepos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo-light.svg">
4
+ <img alt="Nx Logo" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.svg" width="140">
5
5
  </picture>
6
6
  </p>
7
7