@nrwl/workspace 14.7.13 → 14.7.14

Sign up to get free protection for your applications and to get access to all the features.
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.7.13](https://github.com/nrwl/nx/compare/14.7.12...14.7.13) (2022-09-23)
6
+ ## [14.7.14](https://github.com/nrwl/nx/compare/14.7.13...14.7.14) (2022-09-27)
7
7
 
8
8
  **Note:** Version bump only for package @nrwl/workspace
package/migrations.json CHANGED
@@ -71,6 +71,12 @@
71
71
  "description": "Explicitly enable sourceAnalysis for all workspaces extending from npm.json or core.json (this was default behavior prior to 14.2)",
72
72
  "cli": "nx",
73
73
  "implementation": "./src/migrations/update-14-2-0/enable-source-analysis"
74
+ },
75
+ "14-8-0-change-run-commands-executor": {
76
+ "version": "14.8.0-beta.0",
77
+ "description": "Migrates from @nrwl/workspace:run-commands to nx:run-commands",
78
+ "cli": "nx",
79
+ "implementation": "./src/migrations/update-14-8-0/change-run-commands-executor"
74
80
  }
75
81
  },
76
82
  "packageJsonUpdates": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/workspace",
3
- "version": "14.7.13",
3
+ "version": "14.7.14",
4
4
  "private": false,
5
5
  "description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",
6
6
  "repository": {
@@ -33,28 +33,28 @@
33
33
  "requirements": {},
34
34
  "migrations": "./migrations.json",
35
35
  "packageGroup": {
36
- "@nrwl/angular": "14.7.13",
37
- "@nrwl/cypress": "14.7.13",
38
- "@nrwl/devkit": "14.7.13",
39
- "@nrwl/eslint-plugin-nx": "14.7.13",
40
- "@nrwl/express": "14.7.13",
41
- "@nrwl/jest": "14.7.13",
42
- "@nrwl/linter": "14.7.13",
43
- "@nrwl/nest": "14.7.13",
44
- "@nrwl/next": "14.7.13",
45
- "@nrwl/node": "14.7.13",
46
- "@nrwl/nx-plugin": "14.7.13",
47
- "@nrwl/react": "14.7.13",
48
- "@nrwl/storybook": "14.7.13",
49
- "@nrwl/web": "14.7.13",
50
- "@nrwl/js": "14.7.13",
51
- "@nrwl/cli": "14.7.13",
52
- "@nrwl/tao": "14.7.13",
36
+ "@nrwl/angular": "14.7.14",
37
+ "@nrwl/cypress": "14.7.14",
38
+ "@nrwl/devkit": "14.7.14",
39
+ "@nrwl/eslint-plugin-nx": "14.7.14",
40
+ "@nrwl/express": "14.7.14",
41
+ "@nrwl/jest": "14.7.14",
42
+ "@nrwl/linter": "14.7.14",
43
+ "@nrwl/nest": "14.7.14",
44
+ "@nrwl/next": "14.7.14",
45
+ "@nrwl/node": "14.7.14",
46
+ "@nrwl/nx-plugin": "14.7.14",
47
+ "@nrwl/react": "14.7.14",
48
+ "@nrwl/storybook": "14.7.14",
49
+ "@nrwl/web": "14.7.14",
50
+ "@nrwl/js": "14.7.14",
51
+ "@nrwl/cli": "14.7.14",
52
+ "@nrwl/tao": "14.7.14",
53
53
  "@nrwl/nx-cloud": "latest",
54
- "@nrwl/react-native": "14.7.13",
55
- "@nrwl/expo": "14.7.13",
56
- "@nrwl/detox": "14.7.13",
57
- "nx": "14.7.13"
54
+ "@nrwl/react-native": "14.7.14",
55
+ "@nrwl/expo": "14.7.14",
56
+ "@nrwl/detox": "14.7.14",
57
+ "nx": "14.7.14"
58
58
  }
59
59
  },
60
60
  "peerDependencies": {
@@ -66,9 +66,9 @@
66
66
  }
67
67
  },
68
68
  "dependencies": {
69
- "@nrwl/devkit": "14.7.13",
70
- "@nrwl/jest": "14.7.13",
71
- "@nrwl/linter": "14.7.13",
69
+ "@nrwl/devkit": "14.7.14",
70
+ "@nrwl/jest": "14.7.14",
71
+ "@nrwl/linter": "14.7.14",
72
72
  "@parcel/watcher": "2.0.4",
73
73
  "chalk": "4.1.0",
74
74
  "chokidar": "^3.5.1",
@@ -83,7 +83,7 @@
83
83
  "ignore": "^5.0.4",
84
84
  "minimatch": "3.0.5",
85
85
  "npm-run-path": "^4.0.1",
86
- "nx": "14.7.13",
86
+ "nx": "14.7.14",
87
87
  "open": "^8.4.0",
88
88
  "rxjs": "^6.5.4",
89
89
  "semver": "7.3.4",
@@ -95,5 +95,6 @@
95
95
  "publishConfig": {
96
96
  "access": "public"
97
97
  },
98
- "gitHead": "518caaddae6e3392e7648a828a8312fa1d83f9c4"
98
+ "types": "./index.d.ts",
99
+ "gitHead": "c3ed287452858f8ed3d00ee673dfca8835adca2b"
99
100
  }
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nrwl/devkit");
3
4
  const run_commands_impl_1 = require("nx/src/executors/run-commands/run-commands.impl");
5
+ devkit_1.logger.warn('@nrwl/workspace:run-commands is deprecated and will be removed in Nx 16. Please switch to nx:run-commands');
4
6
  exports.default = run_commands_impl_1.default;
5
7
  //# sourceMappingURL=run-commands.impl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"run-commands.impl.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/executors/run-commands/run-commands.impl.ts"],"names":[],"mappings":";;AAAA,uFAA0E;AAI1E,kBAAe,2BAAW,CAAC"}
1
+ {"version":3,"file":"run-commands.impl.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/executors/run-commands/run-commands.impl.ts"],"names":[],"mappings":";;AAAA,yCAAsC;AACtC,uFAA0E;AAE1E,eAAM,CAAC,IAAI,CACT,2GAA2G,CAC5G,CAAC;AAIF,kBAAe,2BAAW,CAAC"}
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nrwl/devkit");
3
4
  const run_script_impl_1 = require("nx/src/executors/run-script/run-script.impl");
5
+ devkit_1.logger.warn('@nrwl/workspace:run-script is deprecated and will be removed in Nx 16. Please switch to nx:run-script');
4
6
  exports.default = run_script_impl_1.default;
5
7
  //# sourceMappingURL=run-script.impl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"run-script.impl.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/executors/run-script/run-script.impl.ts"],"names":[],"mappings":";;AAAA,iFAAoE;AAIpE,kBAAe,yBAAS,CAAC"}
1
+ {"version":3,"file":"run-script.impl.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/executors/run-script/run-script.impl.ts"],"names":[],"mappings":";;AAAA,yCAAsC;AACtC,iFAAoE;AAEpE,eAAM,CAAC,IAAI,CACT,uGAAuG,CACxG,CAAC;AAIF,kBAAe,yBAAS,CAAC"}
@@ -11,7 +11,7 @@ function normalizeSchema(tree, schema, projectConfiguration) {
11
11
  : schema.destination;
12
12
  const newProjectName = (0, utils_1.getNewProjectName)(destination);
13
13
  const { npmScope } = (0, devkit_1.getWorkspaceLayout)(tree);
14
- return Object.assign(Object.assign({}, schema), { destination, importPath: (_a = schema.importPath) !== null && _a !== void 0 ? _a : (0, utils_1.normalizeSlashes)((0, path_1.getImportPath)(npmScope, newProjectName)), newProjectName, relativeToRootDestination: (0, utils_1.getDestination)(tree, schema, projectConfiguration) });
14
+ return Object.assign(Object.assign({}, schema), { destination, importPath: (_a = schema.importPath) !== null && _a !== void 0 ? _a : (0, utils_1.normalizeSlashes)((0, path_1.getImportPath)(npmScope, destination)), newProjectName, relativeToRootDestination: (0, utils_1.getDestination)(tree, schema, projectConfiguration) });
15
15
  }
16
16
  exports.normalizeSchema = normalizeSchema;
17
17
  //# sourceMappingURL=normalize-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-schema.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/move/lib/normalize-schema.ts"],"names":[],"mappings":";;;AAAA,yCAA8E;AAC9E,4CAAkD;AAElD,mCAA8E;AAE9E,SAAgB,eAAe,CAC7B,IAAU,EACV,MAAc,EACd,oBAA0C;;IAE1C,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC;QACpD,CAAC,CAAC,IAAA,wBAAgB,EAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC/C,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;IACvB,MAAM,cAAc,GAAG,IAAA,yBAAiB,EAAC,WAAW,CAAC,CAAC;IACtD,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;IAE9C,uCACK,MAAM,KACT,WAAW,EACX,UAAU,EACR,MAAA,MAAM,CAAC,UAAU,mCACjB,IAAA,wBAAgB,EAAC,IAAA,oBAAa,EAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,EAC3D,cAAc,EACd,yBAAyB,EAAE,IAAA,sBAAc,EACvC,IAAI,EACJ,MAAM,EACN,oBAAoB,CACrB,IACD;AACJ,CAAC;AAxBD,0CAwBC"}
1
+ {"version":3,"file":"normalize-schema.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/move/lib/normalize-schema.ts"],"names":[],"mappings":";;;AAAA,yCAA8E;AAC9E,4CAAkD;AAElD,mCAA8E;AAE9E,SAAgB,eAAe,CAC7B,IAAU,EACV,MAAc,EACd,oBAA0C;;IAE1C,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC;QACpD,CAAC,CAAC,IAAA,wBAAgB,EAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC/C,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;IACvB,MAAM,cAAc,GAAG,IAAA,yBAAiB,EAAC,WAAW,CAAC,CAAC;IACtD,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;IAE9C,uCACK,MAAM,KACT,WAAW,EACX,UAAU,EACR,MAAA,MAAM,CAAC,UAAU,mCACjB,IAAA,wBAAgB,EAAC,IAAA,oBAAa,EAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,EACxD,cAAc,EACd,yBAAyB,EAAE,IAAA,sBAAc,EACvC,IAAI,EACJ,MAAM,EACN,oBAAoB,CACrB,IACD;AACJ,CAAC;AAxBD,0CAwBC"}
@@ -0,0 +1,3 @@
1
+ import { Tree } from '@nrwl/devkit';
2
+ export declare function changeRunCommandsExecutor(tree: Tree): Promise<void>;
3
+ export default changeRunCommandsExecutor;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.changeRunCommandsExecutor = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const devkit_1 = require("@nrwl/devkit");
6
+ const executor_options_utils_1 = require("@nrwl/workspace/src/utilities/executor-options-utils");
7
+ function changeRunCommandsExecutor(tree) {
8
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
9
+ (0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nrwl/workspace:run-commands', (currentValue, project, target) => {
10
+ const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, project);
11
+ const targetConfig = projectConfig.targets[target];
12
+ targetConfig.executor = 'nx:run-commands';
13
+ (0, devkit_1.updateProjectConfiguration)(tree, project, projectConfig);
14
+ });
15
+ yield (0, devkit_1.formatFiles)(tree);
16
+ });
17
+ }
18
+ exports.changeRunCommandsExecutor = changeRunCommandsExecutor;
19
+ exports.default = changeRunCommandsExecutor;
20
+ //# sourceMappingURL=change-run-commands-executor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"change-run-commands-executor.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/migrations/update-14-8-0/change-run-commands-executor.ts"],"names":[],"mappings":";;;;AAAA,yCAKsB;AACtB,iGAA8F;AAE9F,SAAsB,yBAAyB,CAAC,IAAU;;QACxD,IAAA,+CAAsB,EACpB,IAAI,EACJ,8BAA8B,EAC9B,CAAC,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;YAChC,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAC9D,MAAM,YAAY,GAAG,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAEnD,YAAY,CAAC,QAAQ,GAAG,iBAAiB,CAAC;YAE1C,IAAA,mCAA0B,EAAC,IAAI,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QAC3D,CAAC,CACF,CAAC;QAEF,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAfD,8DAeC;AAED,kBAAe,yBAAyB,CAAC"}