@nrwl/workspace 13.9.0-beta.0 → 13.9.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
package/migrations.json CHANGED
@@ -41,6 +41,12 @@
41
41
  "description": "Update the decorate-angular-cli script to require nx instead of @nrwl/cli",
42
42
  "cli": "nx",
43
43
  "implementation": "./src/migrations/update-13-9-0/update-decorate-cli"
44
+ },
45
+ "13-9-0-replace-tao-and-cli-with-nx": {
46
+ "version": "13.9.0-beta.0",
47
+ "description": "Replace @nrwl/tao and @nrwl/cli with nx",
48
+ "cli": "nx",
49
+ "implementation": "./src/migrations/update-13-9-0/replace-tao-and-cli-with-nx"
44
50
  }
45
51
  },
46
52
  "packageJsonUpdates": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/workspace",
3
- "version": "13.9.0-beta.0",
3
+ "version": "13.9.0-beta.1",
4
4
  "description": "Smart, Fast and Extensible Build System",
5
5
  "scripts": {
6
6
  "postinstall": "node ./src/init/init"
@@ -83,10 +83,10 @@
83
83
  "minimatch": "3.0.4",
84
84
  "enquirer": "~2.3.6",
85
85
  "tslib": "^2.3.0",
86
- "nx": "13.9.0-beta.0",
87
- "@nrwl/devkit": "13.9.0-beta.0",
88
- "@nrwl/jest": "13.9.0-beta.0",
89
- "@nrwl/linter": "13.9.0-beta.0"
86
+ "nx": "13.9.0-beta.1",
87
+ "@nrwl/devkit": "13.9.0-beta.1",
88
+ "@nrwl/jest": "13.9.0-beta.1",
89
+ "@nrwl/linter": "13.9.0-beta.1"
90
90
  },
91
91
  "nx-migrations": {
92
92
  "migrations": "./migrations.json"
@@ -0,0 +1,3 @@
1
+ import { Tree } from '@nrwl/devkit';
2
+ export declare function replaceTaoAndCLIWithNx(host: Tree): void;
3
+ export default replaceTaoAndCLIWithNx;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.replaceTaoAndCLIWithNx = void 0;
4
+ const devkit_1 = require("@nrwl/devkit");
5
+ function replaceTaoAndCLIWithNx(host) {
6
+ (0, devkit_1.updateJson)(host, 'package.json', (json) => {
7
+ if (json.dependencies['@nrwl/workspace']) {
8
+ json.dependencies['nx'] = json.dependencies['@nrwl/workspace'];
9
+ }
10
+ else if (json.devDependencices['@nrwl/workspace']) {
11
+ json.dependencies['nx'] = json.devDependencices['@nrwl/workspace'];
12
+ }
13
+ removeTaoAndCLI(json.dependencies);
14
+ removeTaoAndCLI(json.devDependencices);
15
+ return json;
16
+ });
17
+ }
18
+ exports.replaceTaoAndCLIWithNx = replaceTaoAndCLIWithNx;
19
+ function removeTaoAndCLI(json) {
20
+ if (!json)
21
+ return;
22
+ json['@nrwl/tao'] = undefined;
23
+ json['@nrwl/cli1'] = undefined;
24
+ }
25
+ exports.default = replaceTaoAndCLIWithNx;
26
+ //# sourceMappingURL=replace-tao-and-cli-with-nx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-tao-and-cli-with-nx.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/migrations/update-13-9-0/replace-tao-and-cli-with-nx.ts"],"names":[],"mappings":";;;AAAA,yCAAgD;AAEhD,SAAgB,sBAAsB,CAAC,IAAU;IAC/C,IAAA,mBAAU,EAAC,IAAI,EAAE,cAAc,EAAE,CAAC,IAAS,EAAE,EAAE;QAC7C,IAAI,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE;YACxC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;SAChE;aAAM,IAAI,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,EAAE;YACnD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;SACpE;QACD,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACnC,eAAe,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACvC,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC;AAXD,wDAWC;AAED,SAAS,eAAe,CAAC,IAAS;IAChC,IAAI,CAAC,IAAI;QAAE,OAAO;IAClB,IAAI,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;IAC9B,IAAI,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;AACjC,CAAC;AAED,kBAAe,sBAAsB,CAAC"}
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateDecorateAngularCLI = void 0;
4
4
  function updateDecorateAngularCLI(host) {
5
- const decorate = host.read('decorate-angular-cli.js').toString();
5
+ var _a;
6
+ const decorate = (_a = host.read('decorate-angular-cli.js')) === null || _a === void 0 ? void 0 : _a.toString();
6
7
  if (decorate) {
7
8
  host.write('decorate-angular-cli.js', decorate.replace('@nrwl/cli/lib/decorate-cli', 'nx/src/cli/decorate-cli'));
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"update-decorate-cli.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/migrations/update-13-9-0/update-decorate-cli.ts"],"names":[],"mappings":";;;AAEA,SAAgB,wBAAwB,CAAC,IAAU;IACjD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,QAAQ,EAAE,CAAC;IACjE,IAAI,QAAQ,EAAE;QACZ,IAAI,CAAC,KAAK,CACR,yBAAyB,EACzB,QAAQ,CAAC,OAAO,CAAC,4BAA4B,EAAE,yBAAyB,CAAC,CAC1E,CAAC;KACH;AACH,CAAC;AARD,4DAQC;AAED,kBAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"update-decorate-cli.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/migrations/update-13-9-0/update-decorate-cli.ts"],"names":[],"mappings":";;;AAEA,SAAgB,wBAAwB,CAAC,IAAU;;IACjD,MAAM,QAAQ,GAAG,MAAA,IAAI,CAAC,IAAI,CAAC,yBAAyB,CAAC,0CAAE,QAAQ,EAAE,CAAC;IAClE,IAAI,QAAQ,EAAE;QACZ,IAAI,CAAC,KAAK,CACR,yBAAyB,EACzB,QAAQ,CAAC,OAAO,CAAC,4BAA4B,EAAE,yBAAyB,CAAC,CAC1E,CAAC;KACH;AACH,CAAC;AARD,4DAQC;AAED,kBAAe,wBAAwB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.eslintConfigPrettierVersion = exports.eslintVersion = exports.typescriptESLintVersion = exports.tslintVersion = exports.prettierVersion = exports.typescriptVersion = exports.angularCliVersion = exports.nxVersion = void 0;
4
- exports.nxVersion = '13.9.0-beta.0';
4
+ exports.nxVersion = '13.9.0-beta.1';
5
5
  exports.angularCliVersion = '~13.2.0';
6
6
  exports.typescriptVersion = '~4.5.2';
7
7
  exports.prettierVersion = '^2.5.1';