@nx/plugin 22.7.0-beta.1 → 22.7.0-beta.10

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": "22.7.0-beta.1",
3
+ "version": "22.7.0-beta.10",
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": {
@@ -14,6 +14,7 @@
14
14
  "CLI"
15
15
  ],
16
16
  "main": "./index.js",
17
+ "type": "commonjs",
17
18
  "types": "./index.d.ts",
18
19
  "author": "Nrwl",
19
20
  "license": "MIT",
@@ -28,16 +29,15 @@
28
29
  },
29
30
  "dependencies": {
30
31
  "tslib": "^2.3.0",
31
- "@nx/devkit": "22.7.0-beta.1",
32
- "@nx/jest": "22.7.0-beta.1",
33
- "@nx/js": "22.7.0-beta.1",
34
- "@nx/eslint": "22.7.0-beta.1"
32
+ "@nx/devkit": "22.7.0-beta.10",
33
+ "@nx/jest": "22.7.0-beta.10",
34
+ "@nx/js": "22.7.0-beta.10",
35
+ "@nx/eslint": "22.7.0-beta.10"
35
36
  },
36
37
  "devDependencies": {
37
- "nx": "22.7.0-beta.1"
38
+ "nx": "22.7.0-beta.10"
38
39
  },
39
40
  "publishConfig": {
40
41
  "access": "public"
41
- },
42
- "type": "commonjs"
42
+ }
43
43
  }
@@ -2,13 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createExecutorsJson = createExecutorsJson;
4
4
  exports.executorGenerator = executorGenerator;
5
+ const tslib_1 = require("tslib");
5
6
  const devkit_1 = require("@nx/devkit");
6
7
  const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
7
8
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
8
9
  const path_1 = require("path");
9
10
  const paths_1 = require("../../utils/paths");
10
11
  const versions_1 = require("../../utils/versions");
11
- const generator_1 = require("../lint-checks/generator");
12
+ const generator_1 = tslib_1.__importDefault(require("../lint-checks/generator"));
12
13
  function addFiles(host, options) {
13
14
  (0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, './files/executor'), options.directory, {
14
15
  ...options,
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createGeneratorsJson = createGeneratorsJson;
4
4
  exports.generatorGenerator = generatorGenerator;
5
+ const tslib_1 = require("tslib");
5
6
  const devkit_1 = require("@nx/devkit");
6
7
  const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
7
8
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
@@ -9,7 +10,7 @@ const node_path_1 = require("node:path");
9
10
  const has_generator_1 = require("../../utils/has-generator");
10
11
  const paths_1 = require("../../utils/paths");
11
12
  const versions_1 = require("../../utils/versions");
12
- const generator_1 = require("../lint-checks/generator");
13
+ const generator_1 = tslib_1.__importDefault(require("../lint-checks/generator"));
13
14
  async function normalizeOptions(tree, options) {
14
15
  const { artifactName: name, directory: initialDirectory, fileName, project, } = await (0, artifact_name_and_directory_utils_1.determineArtifactNameAndDirectoryOptions)(tree, {
15
16
  path: options.path,
@@ -2,14 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.pluginGenerator = pluginGenerator;
4
4
  exports.pluginGeneratorInternal = pluginGeneratorInternal;
5
+ const tslib_1 = require("tslib");
5
6
  const devkit_1 = require("@nx/devkit");
6
7
  const js_1 = require("@nx/js");
7
8
  const add_swc_dependencies_1 = require("@nx/js/src/utils/swc/add-swc-dependencies");
8
9
  const add_tslib_dependencies_1 = require("@nx/js/src/utils/typescript/add-tslib-dependencies");
9
10
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
10
- const path = require("path");
11
+ const path = tslib_1.__importStar(require("path"));
11
12
  const e2e_1 = require("../e2e-project/e2e");
12
- const generator_1 = require("../lint-checks/generator");
13
+ const generator_1 = tslib_1.__importDefault(require("../lint-checks/generator"));
13
14
  const normalize_schema_1 = require("./utils/normalize-schema");
14
15
  const nxVersion = require('../../../package.json').version;
15
16
  async function addFiles(host, options) {
@@ -19,7 +19,7 @@ function runCommandAsync(command, opts = {
19
19
  (0, child_process_1.exec)(command, {
20
20
  cwd: opts.cwd ?? (0, paths_1.tmpProjPath)(),
21
21
  env: { ...process.env, ...opts.env },
22
- windowsHide: false,
22
+ windowsHide: true,
23
23
  }, (err, stdout, stderr) => {
24
24
  if (!opts.silenceError && err) {
25
25
  reject(err);
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/utils/testing-utils/commands.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,OAAO,CAAC,EAAE,MAAM,EAChB,IAAI,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAEpE,GACA,MAAM,CAiCR;AAED,wBAAgB,UAAU,CACxB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9C,MAAM,CAUR"}
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/utils/testing-utils/commands.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,OAAO,CAAC,EAAE,MAAM,EAChB,IAAI,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAEpE,GACA,MAAM,CAiCR;AAED,wBAAgB,UAAU,CACxB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9C,MAAM,CAWR"}
@@ -21,7 +21,7 @@ function runNxCommand(command, opts = {
21
21
  const execSyncOptions = {
22
22
  cwd,
23
23
  env: { ...process.env, ...opts.env },
24
- windowsHide: false,
24
+ windowsHide: true,
25
25
  };
26
26
  if ((0, utils_1.fileExists)((0, paths_1.tmpProjPath)('package.json'))) {
27
27
  const pmc = (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(cwd));
@@ -55,6 +55,7 @@ function runCommand(command, opts) {
55
55
  cwd: opts.cwd ?? (0, paths_1.tmpProjPath)(),
56
56
  stdio: ['pipe', 'pipe', 'pipe'],
57
57
  env: { ...process.env, ...opts?.env },
58
+ windowsHide: true,
58
59
  }).toString();
59
60
  }
60
61
  catch (e) {
@@ -17,7 +17,7 @@ function runNxNewCommand(args, silent) {
17
17
  return (0, child_process_1.execSync)(`node ${require.resolve('nx')} new proj --nx-workspace-root=${localTmpDir} --no-interactive --skip-install --collection=@nx/workspace --npmScope=proj --preset=apps ${args || ''}`, {
18
18
  cwd: localTmpDir,
19
19
  ...(silent && false ? { stdio: ['ignore', 'ignore', 'ignore'] } : {}),
20
- windowsHide: false,
20
+ windowsHide: true,
21
21
  });
22
22
  }
23
23
  function patchPackageJsonForPlugin(npmPackageName, distPath) {
@@ -45,7 +45,7 @@ function runPackageManagerInstall(silent = true) {
45
45
  const install = (0, child_process_1.execSync)(pmc.install, {
46
46
  cwd,
47
47
  ...(silent ? { stdio: ['ignore', 'ignore', 'ignore'] } : {}),
48
- windowsHide: false,
48
+ windowsHide: true,
49
49
  });
50
50
  return install ? install.toString() : '';
51
51
  }
package/project.json DELETED
@@ -1,52 +0,0 @@
1
- {
2
- "name": "plugin",
3
- "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "packages/plugin/src",
5
- "projectType": "library",
6
- "targets": {
7
- "build": {
8
- "command": "node ./scripts/copy-readme.js plugin",
9
- "outputs": ["{workspaceRoot}/dist/packages/plugin/README.md"]
10
- },
11
- "legacy-post-build": {
12
- "executor": "@nx/workspace-plugin:legacy-post-build",
13
- "options": {
14
- "tsConfig": "./tsconfig.lib.json",
15
- "assets": [
16
- {
17
- "input": "packages/plugin",
18
- "glob": "**/files/**",
19
- "output": "/"
20
- },
21
- {
22
- "input": "packages/plugin",
23
- "glob": "**/files/**/.gitkeep",
24
- "output": "/"
25
- },
26
- {
27
- "input": "packages/plugin",
28
- "glob": "**/*.json",
29
- "ignore": ["**/tsconfig*.json", "project.json", ".eslintrc.json"],
30
- "output": "/"
31
- },
32
- {
33
- "input": "packages/plugin",
34
- "glob": "**/*.js",
35
- "ignore": ["**/jest.config.js"],
36
- "output": "/"
37
- },
38
- {
39
- "input": "packages/plugin",
40
- "glob": "**/*.d.ts",
41
- "output": "/"
42
- },
43
- {
44
- "input": "",
45
- "glob": "LICENSE",
46
- "output": "/"
47
- }
48
- ]
49
- }
50
- }
51
- }
52
- }