@nx/plugin 17.0.0-rc.0 → 17.0.0-rc.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/plugin",
3
- "version": "17.0.0-rc.0",
3
+ "version": "17.0.0-rc.2",
4
4
  "private": false,
5
5
  "description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
6
6
  "repository": {
@@ -31,11 +31,11 @@
31
31
  "@phenomnomnominal/tsquery": "~5.0.1",
32
32
  "fs-extra": "^11.1.0",
33
33
  "tslib": "^2.3.0",
34
- "@nx/devkit": "17.0.0-rc.0",
35
- "@nx/jest": "17.0.0-rc.0",
36
- "@nx/js": "17.0.0-rc.0",
37
- "@nx/eslint": "17.0.0-rc.0",
38
- "@nrwl/nx-plugin": "17.0.0-rc.0"
34
+ "@nx/devkit": "17.0.0-rc.2",
35
+ "@nx/jest": "17.0.0-rc.2",
36
+ "@nx/js": "17.0.0-rc.2",
37
+ "@nx/eslint": "17.0.0-rc.2",
38
+ "@nrwl/nx-plugin": "17.0.0-rc.2"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
@@ -51,7 +51,7 @@
51
51
  "description": "Do not add an eslint configuration for plugin json files."
52
52
  },
53
53
  "nameAndDirectoryFormat": {
54
- "description": "Whether to generate the component in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).",
54
+ "description": "Whether to generate the executor in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).",
55
55
  "type": "string",
56
56
  "enum": ["as-provided", "derived"]
57
57
  },
@@ -58,6 +58,11 @@
58
58
  "default": false,
59
59
  "description": "Do not format files with prettier.",
60
60
  "x-priority": "internal"
61
+ },
62
+ "nameAndDirectoryFormat": {
63
+ "description": "Whether to generate the generator in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).",
64
+ "type": "string",
65
+ "enum": ["as-provided", "derived"]
61
66
  }
62
67
  },
63
68
  "required": ["name"],
@@ -56,6 +56,11 @@
56
56
  "type": "boolean",
57
57
  "default": false,
58
58
  "description": "Do not eslint configuration for plugin json files."
59
+ },
60
+ "nameAndDirectoryFormat": {
61
+ "description": "Whether to generate the migration in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).",
62
+ "type": "string",
63
+ "enum": ["as-provided", "derived"]
59
64
  }
60
65
  },
61
66
  "required": ["packageVersion"],
@@ -1,3 +1,3 @@
1
- import { Tree, GeneratorCallback } from '@nx/devkit';
1
+ import { GeneratorCallback, Tree } from '@nx/devkit';
2
2
  import { PresetGeneratorSchema } from './schema';
3
3
  export default function (tree: Tree, options: PresetGeneratorSchema): Promise<GeneratorCallback>;
@@ -29,7 +29,6 @@ async function default_1(tree, options) {
29
29
  rootProject: options.createPackageName ? false : true,
30
30
  });
31
31
  tasks.push(pluginTask);
32
- removeNpmScope(tree);
33
32
  moveNxPluginToDevDeps(tree);
34
33
  if (options.createPackageName) {
35
34
  const e2eProject = `${options.pluginName}-e2e`;
@@ -49,9 +48,6 @@ async function default_1(tree, options) {
49
48
  return (0, devkit_1.runTasksInSerial)(...tasks);
50
49
  }
51
50
  exports.default = default_1;
52
- function removeNpmScope(tree) {
53
- (0, devkit_1.updateNxJson)(tree, { ...(0, devkit_1.readNxJson)(tree), npmScope: undefined });
54
- }
55
51
  function moveNxPluginToDevDeps(tree) {
56
52
  (0, devkit_1.updateJson)(tree, 'package.json', (json) => {
57
53
  const nxPluginEntry = json.dependencies['@nx/plugin'];