@nx/workspace 18.0.0-canary.20240130-bb3cf3a → 18.0.0-canary.20240202-ea5befb

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/workspace",
3
- "version": "18.0.0-canary.20240130-bb3cf3a",
3
+ "version": "18.0.0-canary.20240202-ea5befb",
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": {
@@ -61,13 +61,13 @@
61
61
  }
62
62
  },
63
63
  "dependencies": {
64
- "@nx/devkit": "18.0.0-canary.20240130-bb3cf3a",
64
+ "@nx/devkit": "18.0.0-canary.20240202-ea5befb",
65
65
  "chalk": "^4.1.0",
66
66
  "enquirer": "~2.3.6",
67
67
  "tslib": "^2.3.0",
68
68
  "yargs-parser": "21.1.1",
69
- "nx": "18.0.0-canary.20240130-bb3cf3a",
70
- "@nrwl/workspace": "18.0.0-canary.20240130-bb3cf3a"
69
+ "nx": "18.0.0-canary.20240202-ea5befb",
70
+ "@nrwl/workspace": "18.0.0-canary.20240202-ea5befb"
71
71
  },
72
72
  "publishConfig": {
73
73
  "access": "public"
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxWorkspaceCIWorkflow",
4
4
  "title": "Generate a CI workflow.",
5
5
  "description": "Generate a CI workflow.",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxWorkspaceConvertToMonorepo",
4
4
  "cli": "nx",
5
5
  "title": "Nx Convert to Monorepo",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "SchematicsConvertToNxProject",
4
4
  "title": "@nx/workspace:fix-configuration",
5
5
  "description": "Migrates v1 config to v2 standalone configuration.",
@@ -133,7 +133,7 @@ function logDeprecationMessage(formats, options) {
133
133
  ? '@nx/angular:move'
134
134
  : '@nx/workspace:move';
135
135
  devkit_1.logger.warn((0, devkit_1.stripIndents) `
136
- In Nx 18, the project name and destination will no longer be derived.
136
+ In Nx 19, the project name and destination will no longer be derived.
137
137
  Please provide the exact new project name and destination in the future.
138
138
  Example: nx g ${callingGenerator} --projectName ${options.projectName} --destination ${formats['derived'].destination}` +
139
139
  (options.projectName !== formats['derived'].newProjectName
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxWorkspaceMove",
4
4
  "cli": "nx",
5
5
  "title": "Nx Move",
@@ -13,14 +13,16 @@ async function newGenerator(tree, opts) {
13
13
  await (0, generate_workspace_files_1.generateWorkspaceFiles)(tree, { ...options, nxCloud: undefined });
14
14
  (0, generate_preset_1.addPresetDependencies)(tree, options);
15
15
  return async () => {
16
- const pmc = (0, devkit_1.getPackageManagerCommand)(options.packageManager);
17
- if (pmc.preInstall) {
18
- (0, child_process_1.execSync)(pmc.preInstall, {
19
- cwd: (0, devkit_1.joinPathFragments)(tree.root, options.directory),
20
- stdio: process.env.NX_GENERATE_QUIET === 'true' ? 'ignore' : 'inherit',
21
- });
16
+ if (!options.skipInstall) {
17
+ const pmc = (0, devkit_1.getPackageManagerCommand)(options.packageManager);
18
+ if (pmc.preInstall) {
19
+ (0, child_process_1.execSync)(pmc.preInstall, {
20
+ cwd: (0, devkit_1.joinPathFragments)(tree.root, options.directory),
21
+ stdio: process.env.NX_GENERATE_QUIET === 'true' ? 'ignore' : 'inherit',
22
+ });
23
+ }
24
+ (0, devkit_1.installPackagesTask)(tree, false, options.directory, options.packageManager);
22
25
  }
23
- (0, devkit_1.installPackagesTask)(tree, false, options.directory, options.packageManager);
24
26
  // TODO: move all of these into create-nx-workspace
25
27
  if (options.preset !== presets_1.Preset.NPM && !options.isCustomPreset) {
26
28
  await (0, generate_preset_1.generatePreset)(tree, options);
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxWorkspaceNew",
4
4
  "title": "Create an empty workspace",
5
5
  "description": "Create an empty workspace.",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxWorkspaceNpmPackage",
4
4
  "title": "Add a minimal npm package",
5
5
  "description": "Add a minimal npm package.",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxWorkspacePreset",
4
4
  "cli": "nx",
5
5
  "title": "Creates applications in a new workspace",
@@ -39,11 +39,11 @@
39
39
  },
40
40
  {
41
41
  "value": "scss",
42
- "label": "SASS(.scss) [ http://sass-lang.com ]"
42
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
43
43
  },
44
44
  {
45
45
  "value": "less",
46
- "label": "LESS [ http://lesscss.org ]"
46
+ "label": "LESS [ https://lesscss.org ]"
47
47
  }
48
48
  ]
49
49
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxWorkspaceRemove",
4
4
  "cli": "nx",
5
5
  "title": "Nx Remove",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "SchematicsRunCommands",
4
4
  "title": "Create a custom target to run any command",
5
5
  "description": "Create a custom target to run any command.",
@@ -4,7 +4,7 @@ exports.Preset = void 0;
4
4
  var Preset;
5
5
  (function (Preset) {
6
6
  Preset["Apps"] = "apps";
7
- // TODO(v18): Remove Empty and Core presets
7
+ // TODO(v19): Remove Empty and Core presets
8
8
  /** @deprecated Use Apps instead
9
9
  */
10
10
  Preset["Empty"] = "empty";