@nx/next 17.2.5 → 17.2.6

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,9 +1,4 @@
1
- <p style="text-align: center;">
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 CI" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
- </picture>
6
- </p>
1
+ <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
7
2
 
8
3
  <div style="text-align: center;">
9
4
 
@@ -20,9 +15,9 @@
20
15
 
21
16
  <hr>
22
17
 
23
- # Nx: Smart Monorepos · Fast CI
18
+ # Nx: Smart, Fast and Extensible Build System
24
19
 
25
- Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
20
+ Nx is a next generation build system with first class monorepo support and powerful integrations.
26
21
 
27
22
  This package is a [Next.js plugin for Nx](https://nx.dev/next/overview).
28
23
 
@@ -64,5 +59,5 @@ npx nx@latest init
64
59
  - [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
65
60
 
66
61
  <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"
67
- width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
62
+ width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
68
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/next",
3
- "version": "v17.2.5",
3
+ "version": "17.2.6",
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": ">=13.0.0"
35
35
  },
36
36
  "dependencies": {
37
- "@nx/devkit": "v17.2.5",
37
+ "@nx/devkit": "17.2.6",
38
38
  "@babel/plugin-proposal-decorators": "^7.22.7",
39
39
  "@svgr/webpack": "^8.0.1",
40
40
  "chalk": "^4.1.0",
@@ -45,12 +45,12 @@
45
45
  "url-loader": "^4.1.1",
46
46
  "tslib": "^2.3.0",
47
47
  "webpack-merge": "^5.8.0",
48
- "@nx/js": "v17.2.5",
49
- "@nx/eslint": "v17.2.5",
50
- "@nx/react": "v17.2.5",
51
- "@nx/web": "v17.2.5",
52
- "@nx/workspace": "v17.2.5",
53
- "@nrwl/next": "v17.2.5"
48
+ "@nx/js": "17.2.6",
49
+ "@nx/eslint": "17.2.6",
50
+ "@nx/react": "17.2.6",
51
+ "@nx/web": "17.2.6",
52
+ "@nx/workspace": "17.2.6",
53
+ "@nrwl/next": "17.2.6"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const devkit_1 = require("@nx/devkit");
4
4
  const export_1 = require("next/dist/export");
5
+ const buildable_libs_utils_1 = require("@nx/js/src/utils/buildable-libs-utils");
5
6
  const nextTrace = require("next/dist/trace");
6
7
  const os_1 = require("os");
7
8
  const child_process_1 = require("child_process");
8
9
  const chalk = require("chalk");
9
- const semver_1 = require("semver");
10
10
  // platform specific command name
11
11
  const pmCmd = (0, os_1.platform)() === 'win32' ? `npx.cmd` : 'npx';
12
12
  /**
@@ -22,9 +22,11 @@ const pmCmd = (0, os_1.platform)() === 'win32' ? `npx.cmd` : 'npx';
22
22
  * Read https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
23
23
  **/
24
24
  async function exportExecutor(options, context) {
25
- const nextJsVersion = require('next/package.json').version;
26
- if ((0, semver_1.satisfies)(nextJsVersion, '>=14.0.0')) {
27
- throw new Error('The export command has been removed in Next.js 14. Please update your Next config to use the output property. Read more: https://nextjs.org/docs/pages/building-your-application/deploying/static-exports');
25
+ let dependencies = [];
26
+ if (!options.buildLibsFromSource) {
27
+ const result = (0, buildable_libs_utils_1.calculateProjectBuildableDependencies)(context.taskGraph, context.projectGraph, context.root, context.projectName, 'build', // this should be generalized
28
+ context.configurationName);
29
+ dependencies = result.dependencies;
28
30
  }
29
31
  // Returns { project: ProjectGraphNode; target: string; configuration?: string;}
30
32
  const buildTarget = (0, devkit_1.parseTargetString)(options.buildTarget, context);
@@ -1,6 +1,6 @@
1
1
  export declare const nxVersion: any;
2
- export declare const nextVersion = "14.0.4";
3
- export declare const eslintConfigNextVersion = "14.0.4";
2
+ export declare const nextVersion = "13.4.4";
3
+ export declare const eslintConfigNextVersion = "13.4.4";
4
4
  export declare const sassVersion = "1.62.1";
5
5
  export declare const lessLoader = "11.1.0";
6
6
  export declare const emotionServerVersion = "11.11.0";
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tsLibVersion = exports.babelPluginStyledComponentsVersion = exports.emotionServerVersion = exports.lessLoader = exports.sassVersion = exports.eslintConfigNextVersion = exports.nextVersion = exports.nxVersion = void 0;
4
4
  exports.nxVersion = require('../../package.json').version;
5
- exports.nextVersion = '14.0.4';
6
- exports.eslintConfigNextVersion = '14.0.4';
5
+ exports.nextVersion = '13.4.4';
6
+ exports.eslintConfigNextVersion = '13.4.4';
7
7
  exports.sassVersion = '1.62.1';
8
8
  exports.lessLoader = '11.1.0';
9
9
  exports.emotionServerVersion = '11.11.0';