nx 18.1.0-canary.20240306-cc2f655 → 18.1.0-canary.20240308-46592d7

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/bin/init-local.js CHANGED
@@ -99,7 +99,14 @@ function isKnownCommand(command) {
99
99
  }
100
100
  function shouldDelegateToAngularCLI() {
101
101
  const command = process.argv[2];
102
- const commands = ['analytics', 'config', 'doc', 'update', 'completion'];
102
+ const commands = [
103
+ 'analytics',
104
+ 'cache',
105
+ 'completion',
106
+ 'config',
107
+ 'doc',
108
+ 'update',
109
+ ];
103
110
  return commands.indexOf(command) > -1;
104
111
  }
105
112
  function handleAngularCLIFallbacks(workspace) {
@@ -122,6 +129,11 @@ function handleAngularCLIFallbacks(workspace) {
122
129
  For more information, see https://nx.dev/features/integrate-with-editors`);
123
130
  }
124
131
  }
132
+ else if (process.argv[2] === 'cache') {
133
+ console.log(`"ng cache" is not natively supported by Nx.
134
+ To clear the cache, you can delete the ".angular/cache" directory (or the directory configured by "cli.cache.path" in the "nx.json" file).
135
+ To update the cache configuration, you can directly update the relevant options in your "nx.json" file (https://angular.io/guide/workspace-config#cache-options).`);
136
+ }
125
137
  else {
126
138
  try {
127
139
  // nx-ignore-next-line
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "18.1.0-canary.20240306-cc2f655",
3
+ "version": "18.1.0-canary.20240308-46592d7",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -66,7 +66,7 @@
66
66
  "yargs-parser": "21.1.1",
67
67
  "node-machine-id": "1.1.12",
68
68
  "ora": "5.3.0",
69
- "@nrwl/tao": "18.1.0-canary.20240306-cc2f655"
69
+ "@nrwl/tao": "18.1.0-canary.20240308-46592d7"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@swc-node/register": "^1.8.0",
@@ -81,16 +81,16 @@
81
81
  }
82
82
  },
83
83
  "optionalDependencies": {
84
- "@nx/nx-darwin-x64": "18.1.0-canary.20240306-cc2f655",
85
- "@nx/nx-darwin-arm64": "18.1.0-canary.20240306-cc2f655",
86
- "@nx/nx-linux-x64-gnu": "18.1.0-canary.20240306-cc2f655",
87
- "@nx/nx-linux-x64-musl": "18.1.0-canary.20240306-cc2f655",
88
- "@nx/nx-win32-x64-msvc": "18.1.0-canary.20240306-cc2f655",
89
- "@nx/nx-linux-arm64-gnu": "18.1.0-canary.20240306-cc2f655",
90
- "@nx/nx-linux-arm64-musl": "18.1.0-canary.20240306-cc2f655",
91
- "@nx/nx-linux-arm-gnueabihf": "18.1.0-canary.20240306-cc2f655",
92
- "@nx/nx-win32-arm64-msvc": "18.1.0-canary.20240306-cc2f655",
93
- "@nx/nx-freebsd-x64": "18.1.0-canary.20240306-cc2f655"
84
+ "@nx/nx-darwin-x64": "18.1.0-canary.20240308-46592d7",
85
+ "@nx/nx-darwin-arm64": "18.1.0-canary.20240308-46592d7",
86
+ "@nx/nx-linux-x64-gnu": "18.1.0-canary.20240308-46592d7",
87
+ "@nx/nx-linux-x64-musl": "18.1.0-canary.20240308-46592d7",
88
+ "@nx/nx-win32-x64-msvc": "18.1.0-canary.20240308-46592d7",
89
+ "@nx/nx-linux-arm64-gnu": "18.1.0-canary.20240308-46592d7",
90
+ "@nx/nx-linux-arm64-musl": "18.1.0-canary.20240308-46592d7",
91
+ "@nx/nx-linux-arm-gnueabihf": "18.1.0-canary.20240308-46592d7",
92
+ "@nx/nx-win32-arm64-msvc": "18.1.0-canary.20240308-46592d7",
93
+ "@nx/nx-freebsd-x64": "18.1.0-canary.20240308-46592d7"
94
94
  },
95
95
  "nx-migrations": {
96
96
  "migrations": "./migrations.json",
@@ -19,6 +19,7 @@ const add_nx_to_npm_repo_1 = require("./implementation/add-nx-to-npm-repo");
19
19
  const add_nx_to_monorepo_1 = require("./implementation/add-nx-to-monorepo");
20
20
  const path_1 = require("path");
21
21
  async function initHandler(options) {
22
+ process.env.NX_RUNNING_NX_INIT = 'true';
22
23
  const version = process.env.NX_VERSION ?? ((0, semver_1.prerelease)(versions_1.nxVersion) ? 'next' : 'latest');
23
24
  if (process.env.NX_VERSION) {
24
25
  output_1.output.log({ title: `Using version ${process.env.NX_VERSION}` });
@@ -80,7 +81,7 @@ async function initHandler(options) {
80
81
  if (!detectPluginsResponse.updatePackageScripts) {
81
82
  const rootPackageJsonPath = (0, path_1.join)(repoRoot, 'package.json');
82
83
  const json = (0, fileutils_1.readJsonFile)(rootPackageJsonPath);
83
- json.nx = {};
84
+ json.nx = { includedScripts: [] };
84
85
  (0, fileutils_1.writeJsonFile)(rootPackageJsonPath, json);
85
86
  }
86
87
  if (useNxCloud) {
@@ -704,57 +704,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
704
704
  SOFTWARE.
705
705
 
706
706
 
707
- regenerator-runtime
708
- MIT
709
- MIT License
710
-
711
- Copyright (c) 2014-present, Facebook, Inc.
712
-
713
- Permission is hereby granted, free of charge, to any person obtaining a copy
714
- of this software and associated documentation files (the "Software"), to deal
715
- in the Software without restriction, including without limitation the rights
716
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
717
- copies of the Software, and to permit persons to whom the Software is
718
- furnished to do so, subject to the following conditions:
719
-
720
- The above copyright notice and this permission notice shall be included in all
721
- copies or substantial portions of the Software.
722
-
723
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
724
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
725
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
726
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
727
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
728
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
729
- SOFTWARE.
730
-
731
-
732
- tabbable
733
- MIT
734
- The MIT License (MIT)
735
-
736
- Copyright (c) 2015 David Clark
737
-
738
- Permission is hereby granted, free of charge, to any person obtaining a copy
739
- of this software and associated documentation files (the "Software"), to deal
740
- in the Software without restriction, including without limitation the rights
741
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
742
- copies of the Software, and to permit persons to whom the Software is
743
- furnished to do so, subject to the following conditions:
744
-
745
- The above copyright notice and this permission notice shall be included in all
746
- copies or substantial portions of the Software.
747
-
748
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
749
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
750
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
751
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
752
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
753
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
754
- SOFTWARE.
755
-
756
-
757
-
758
707
  toggle-selection
759
708
  MIT
760
709