@nx/next 16.4.0-beta.3 → 16.4.0-beta.5

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/migrations.json CHANGED
@@ -71,6 +71,12 @@
71
71
  "version": "16.3.0-beta.9",
72
72
  "description": "Remove root build option from project configurations since it is not needed.",
73
73
  "implementation": "./src/migrations/update-16-3-0/remove-root-build-option"
74
+ },
75
+ "update-16-4-0-update-next-dependency": {
76
+ "cli": "nx",
77
+ "version": "16.4.0-beta.3",
78
+ "description": "Update package.json moving @nx/next from dependency to devDependency",
79
+ "implementation": "./src/migrations/update-16-4-0/update-nx-next-dependency"
74
80
  }
75
81
  },
76
82
  "packageJsonUpdates": {
@@ -322,6 +328,15 @@
322
328
  "alwaysAddToPackageJson": false
323
329
  }
324
330
  }
331
+ },
332
+ "16.4.0-beta.4": {
333
+ "version": "16.4.0-beta.4",
334
+ "packages": {
335
+ "stylus": {
336
+ "version": "^0.59.0",
337
+ "alwaysAddToPackageJson": false
338
+ }
339
+ }
325
340
  }
326
341
  }
327
342
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/next",
3
- "version": "16.4.0-beta.3",
3
+ "version": "16.4.0-beta.5",
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": {
@@ -35,13 +35,13 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@babel/plugin-proposal-decorators": "^7.14.5",
38
- "@nrwl/next": "16.4.0-beta.3",
39
- "@nx/devkit": "16.4.0-beta.3",
40
- "@nx/js": "16.4.0-beta.3",
41
- "@nx/linter": "16.4.0-beta.3",
42
- "@nx/react": "16.4.0-beta.3",
43
- "@nx/web": "16.4.0-beta.3",
44
- "@nx/workspace": "16.4.0-beta.3",
38
+ "@nrwl/next": "16.4.0-beta.5",
39
+ "@nx/devkit": "16.4.0-beta.5",
40
+ "@nx/js": "16.4.0-beta.5",
41
+ "@nx/linter": "16.4.0-beta.5",
42
+ "@nx/react": "16.4.0-beta.5",
43
+ "@nx/web": "16.4.0-beta.5",
44
+ "@nx/workspace": "16.4.0-beta.5",
45
45
  "@svgr/webpack": "^8.0.1",
46
46
  "chalk": "^4.1.0",
47
47
  "copy-webpack-plugin": "^10.2.4",
@@ -61,5 +61,5 @@
61
61
  "access": "public"
62
62
  },
63
63
  "types": "./index.d.ts",
64
- "gitHead": "d7f500985ba56117bf17c133bf70d22e42a7af27"
64
+ "gitHead": "94aa566dda725adbc54b4ba31b558377f273e41b"
65
65
  }
@@ -10,12 +10,12 @@ const versions_2 = require("../../utils/versions");
10
10
  const add_gitignore_entry_1 = require("../../utils/add-gitignore-entry");
11
11
  function updateDependencies(host) {
12
12
  return (0, devkit_1.addDependenciesToPackageJson)(host, {
13
- '@nx/next': versions_2.nxVersion,
14
13
  next: versions_2.nextVersion,
15
14
  react: versions_1.reactVersion,
16
15
  'react-dom': versions_1.reactDomVersion,
17
16
  tslib: versions_2.tsLibVersion,
18
17
  }, {
18
+ '@nx/next': versions_2.nxVersion,
19
19
  'eslint-config-next': versions_2.eslintConfigNextVersion,
20
20
  });
21
21
  }
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const devkit_1 = require("@nx/devkit");
5
+ function update(tree) {
6
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
7
+ if (tree.exists('./package.json')) {
8
+ (0, devkit_1.updateJson)(tree, 'package.json', (packageJson) => {
9
+ if (packageJson.dependencies['@nx/next']) {
10
+ packageJson.devDependencies['@nx/next'] =
11
+ packageJson.dependencies['@nx/next'];
12
+ delete packageJson.dependencies['@nx/next'];
13
+ }
14
+ return packageJson;
15
+ });
16
+ }
17
+ yield (0, devkit_1.formatFiles)(tree);
18
+ });
19
+ }
20
+ exports.default = update;