@nrwl/next 14.4.2 → 14.4.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,6 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [14.4.2](https://github.com/nrwl/nx/compare/14.4.1...14.4.2) (2022-07-05)
6
+ ## [14.4.3](https://github.com/nrwl/nx/compare/14.4.2...14.4.3) (2022-07-16)
7
7
 
8
8
  **Note:** Version bump only for package @nrwl/next
package/migrations.json CHANGED
@@ -84,6 +84,12 @@
84
84
  "version": "14.0.0-beta.0",
85
85
  "description": "Add a default development configuration for build and serve targets.",
86
86
  "factory": "./src/migrations/update-14-0-0/add-default-development-configurations"
87
+ },
88
+ "add-dev-output-path": {
89
+ "cli": "nx",
90
+ "version": "14.4.3-beta.0",
91
+ "description": "Add a development outputPath to avoid conflict with the production build.",
92
+ "factory": "./src/migrations/update-14-4-3/add-dev-output-path"
87
93
  }
88
94
  },
89
95
  "packageJsonUpdates": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/next",
3
- "version": "14.4.2",
3
+ "version": "14.4.3",
4
4
  "description": "When 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.\n\nThe Next.js plugin 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.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,15 +34,16 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@babel/plugin-proposal-decorators": "^7.14.5",
37
- "@nrwl/cypress": "14.4.2",
38
- "@nrwl/devkit": "14.4.2",
39
- "@nrwl/jest": "14.4.2",
40
- "@nrwl/linter": "14.4.2",
41
- "@nrwl/react": "14.4.2",
42
- "@nrwl/web": "14.4.2",
43
- "@nrwl/workspace": "14.4.2",
37
+ "@nrwl/cypress": "14.4.3",
38
+ "@nrwl/devkit": "14.4.3",
39
+ "@nrwl/jest": "14.4.3",
40
+ "@nrwl/linter": "14.4.3",
41
+ "@nrwl/react": "14.4.3",
42
+ "@nrwl/web": "14.4.3",
43
+ "@nrwl/workspace": "14.4.3",
44
44
  "@svgr/webpack": "^6.1.2",
45
45
  "chalk": "4.1.0",
46
+ "dotenv": "~10.0.0",
46
47
  "eslint-config-next": "^12.1.0",
47
48
  "fs-extra": "^10.1.0",
48
49
  "ts-node": "~10.8.0",
@@ -50,5 +51,5 @@
50
51
  "url-loader": "^4.1.1",
51
52
  "webpack-merge": "^5.8.0"
52
53
  },
53
- "gitHead": "f49de61f4c19a8418ecc9eb57966ef96d869b354"
54
+ "gitHead": "9f7df39875d04baa2e8b8f8f12796dea6b38752a"
54
55
  }
@@ -13,7 +13,9 @@ function addProject(host, options) {
13
13
  outputPath: (0, devkit_1.joinPathFragments)('dist', options.appProjectRoot),
14
14
  },
15
15
  configurations: {
16
- development: {},
16
+ development: {
17
+ outputPath: (0, devkit_1.joinPathFragments)('tmp', options.appProjectRoot),
18
+ },
17
19
  production: {},
18
20
  },
19
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"add-project.js","sourceRoot":"","sources":["../../../../../../../packages/next/src/generators/application/lib/add-project.ts"],"names":[],"mappings":";;;AACA,yCAKsB;AAEtB,SAAgB,UAAU,CAAC,IAAU,EAAE,OAAyB;IAC9D,MAAM,OAAO,GAAwB,EAAE,CAAC;IAExC,OAAO,CAAC,KAAK,GAAG;QACd,OAAO,EAAE,kBAAkB;QAC3B,OAAO,EAAE,CAAC,sBAAsB,CAAC;QACjC,oBAAoB,EAAE,YAAY;QAClC,OAAO,EAAE;YACP,IAAI,EAAE,OAAO,CAAC,cAAc;YAC5B,UAAU,EAAE,IAAA,0BAAiB,EAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC;SAC9D;QACD,cAAc,EAAE;YACd,WAAW,EAAE,EAAE;YACf,UAAU,EAAE,EAAE;SACf;KACF,CAAC;IAEF,OAAO,CAAC,KAAK,GAAG;QACd,OAAO,EAAE,mBAAmB;QAC5B,oBAAoB,EAAE,aAAa;QACnC,OAAO,EAAE;YACP,WAAW,EAAE,GAAG,OAAO,CAAC,WAAW,QAAQ;YAC3C,GAAG,EAAE,IAAI;SACV;QACD,cAAc,EAAE;YACd,WAAW,EAAE;gBACX,WAAW,EAAE,GAAG,OAAO,CAAC,WAAW,oBAAoB;gBACvD,GAAG,EAAE,IAAI;aACV;YACD,UAAU,EAAE;gBACV,WAAW,EAAE,GAAG,OAAO,CAAC,WAAW,mBAAmB;gBACtD,GAAG,EAAE,KAAK;aACX;SACF;KACF,CAAC;IAEF,IAAI,OAAO,CAAC,MAAM,EAAE;QAClB,OAAO,CAAC,KAAK,CAAC,OAAO,mCAChB,OAAO,CAAC,KAAK,CAAC,OAAO,KACxB,gBAAgB,EAAE,OAAO,CAAC,MAAM,GACjC,CAAC;KACH;IAED,OAAO,CAAC,MAAM,GAAG;QACf,OAAO,EAAE,mBAAmB;QAC5B,OAAO,EAAE;YACP,WAAW,EAAE,GAAG,OAAO,CAAC,WAAW,mBAAmB;SACvD;KACF,CAAC;IAEF,MAAM,OAAO,GAAyB;QACpC,IAAI,EAAE,OAAO,CAAC,cAAc;QAC5B,UAAU,EAAE,OAAO,CAAC,cAAc;QAClC,WAAW,EAAE,aAAa;QAC1B,OAAO;QACP,IAAI,EAAE,OAAO,CAAC,UAAU;KACzB,CAAC;IAEF,IAAA,gCAAuB,EACrB,IAAI,EACJ,OAAO,CAAC,WAAW,oBAEd,OAAO,GAEZ,OAAO,CAAC,gBAAgB,CACzB,CAAC;AACJ,CAAC;AAlED,gCAkEC"}
1
+ {"version":3,"file":"add-project.js","sourceRoot":"","sources":["../../../../../../../packages/next/src/generators/application/lib/add-project.ts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CAAC;IAEF,MAAM,OAAO,GAAyB;QACpC,IAAI,EAAE,OAAO,CAAC,cAAc;QAC5B,UAAU,EAAE,OAAO,CAAC,cAAc;QAClC,WAAW,EAAE,aAAa;QAC1B,OAAO;QACP,IAAI,EAAE,OAAO,CAAC,UAAU;KACzB,CAAC;IAEF,IAAA,gCAAuB,EACrB,IAAI,EACJ,OAAO,CAAC,WAAW,oBAEd,OAAO,GAEZ,OAAO,CAAC,gBAAgB,CACzB,CAAC;AACJ,CAAC;AApED,gCAoEC"}
@@ -0,0 +1,3 @@
1
+ import { Tree } from '@nrwl/devkit';
2
+ export declare function update(tree: Tree): Promise<void>;
3
+ export default update;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.update = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const devkit_1 = require("@nrwl/devkit");
6
+ function update(tree) {
7
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
+ const projects = (0, devkit_1.getProjects)(tree);
9
+ projects.forEach((config, name) => {
10
+ var _a, _b, _c, _d, _e;
11
+ var _f, _g, _h;
12
+ if (((_b = (_a = config.targets) === null || _a === void 0 ? void 0 : _a.build) === null || _b === void 0 ? void 0 : _b.executor) === '@nrwl/next:build') {
13
+ (_c = (_f = config.targets.build).configurations) !== null && _c !== void 0 ? _c : (_f.configurations = {});
14
+ (_d = (_g = config.targets.build.configurations).development) !== null && _d !== void 0 ? _d : (_g.development = {});
15
+ (_e = (_h = config.targets.build.configurations.development).outputPath) !== null && _e !== void 0 ? _e : (_h.outputPath = (0, devkit_1.joinPathFragments)('tmp', config.sourceRoot));
16
+ (0, devkit_1.updateProjectConfiguration)(tree, name, config);
17
+ }
18
+ });
19
+ yield (0, devkit_1.formatFiles)(tree);
20
+ });
21
+ }
22
+ exports.update = update;
23
+ exports.default = update;
24
+ //# sourceMappingURL=add-dev-output-path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-dev-output-path.js","sourceRoot":"","sources":["../../../../../../packages/next/src/migrations/update-14-4-3/add-dev-output-path.ts"],"names":[],"mappings":";;;;AAAA,yCAMsB;AAEtB,SAAsB,MAAM,CAAC,IAAU;;QACrC,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAEnC,QAAQ,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE;;;YAChC,IAAI,CAAA,MAAA,MAAA,MAAM,CAAC,OAAO,0CAAE,KAAK,0CAAE,QAAQ,MAAK,kBAAkB,EAAE;gBAC1D,YAAA,MAAM,CAAC,OAAO,CAAC,KAAK,EAAC,cAAc,uCAAd,cAAc,GAAK,EAAE,EAAC;gBAC3C,YAAA,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,EAAC,WAAW,uCAAX,WAAW,GAAK,EAAE,EAAC;gBACvD,YAAA,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,EAAC,UAAU,uCAAV,UAAU,GACxD,IAAA,0BAAiB,EAAC,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC,EAAC;gBAC9C,IAAA,mCAA0B,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;aAChD;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAdD,wBAcC;AAED,kBAAe,MAAM,CAAC"}
package/.eslintrc.json DELETED
@@ -1,36 +0,0 @@
1
- {
2
- "extends": "../../.eslintrc",
3
- "rules": {},
4
- "overrides": [
5
- {
6
- "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7
- "rules": {}
8
- },
9
- {
10
- "files": ["**/*.ts"],
11
- "excludedFiles": ["./src/migrations/**"],
12
- "rules": {
13
- "no-restricted-imports": [
14
- "error",
15
- "@nrwl/workspace",
16
- "@angular-devkit/core",
17
- "@angular-devkit/schematics",
18
- "@angular-devkit/architect"
19
- ]
20
- }
21
- },
22
- {
23
- "files": [
24
- "./package.json",
25
- "./generators.json",
26
- "./executors.json",
27
- "./migrations.json"
28
- ],
29
- "parser": "jsonc-eslint-parser",
30
- "rules": {
31
- "@nrwl/nx/nx-plugin-checks": "error"
32
- }
33
- }
34
- ],
35
- "ignorePatterns": ["!**/*"]
36
- }