@nx/workspace
Advanced tools
Comparing version 19.6.0-canary.20240801-2111841 to 19.6.0-canary.20240803-bd7a2c9
{ | ||
"name": "@nx/workspace", | ||
"version": "19.6.0-canary.20240801-2111841", | ||
"version": "19.6.0-canary.20240803-bd7a2c9", | ||
"private": false, | ||
@@ -64,3 +64,3 @@ "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.", | ||
"dependencies": { | ||
"@nx/devkit": "19.6.0-canary.20240801-2111841", | ||
"@nx/devkit": "19.6.0-canary.20240803-bd7a2c9", | ||
"chalk": "^4.1.0", | ||
@@ -70,4 +70,4 @@ "enquirer": "~2.3.6", | ||
"yargs-parser": "21.1.1", | ||
"nx": "19.6.0-canary.20240801-2111841", | ||
"@nrwl/workspace": "19.6.0-canary.20240801-2111841" | ||
"nx": "19.6.0-canary.20240803-bd7a2c9", | ||
"@nrwl/workspace": "19.6.0-canary.20240803-bd7a2c9" | ||
}, | ||
@@ -74,0 +74,0 @@ "publishConfig": { |
import { Tree } from '@nx/devkit'; | ||
import { NormalizedSchema } from './new'; | ||
export declare function generateWorkspaceFiles(tree: Tree, options: NormalizedSchema): Promise<void>; | ||
export declare function generateWorkspaceFiles(tree: Tree, options: NormalizedSchema): Promise<string>; |
@@ -9,2 +9,3 @@ "use strict"; | ||
const default_base_1 = require("../../utilities/default-base"); | ||
const connect_to_nx_cloud_1 = require("nx/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud"); | ||
async function generateWorkspaceFiles(tree, options) { | ||
@@ -20,3 +21,10 @@ if (!options.name) { | ||
createFiles(tree, options); | ||
createNxJson(tree, options); | ||
const nxJson = createNxJson(tree, options); | ||
const token = options.nxCloud !== 'skip' | ||
? await (0, connect_to_nx_cloud_1.connectToNxCloud)(tree, { | ||
installationSource: 'create-nx-workspace', | ||
directory: options.directory, | ||
github: options.useGitHub, | ||
}, nxJson) | ||
: null; | ||
const [packageMajor] = packageManagerVersion.split('.'); | ||
@@ -36,3 +44,3 @@ if (options.packageManager === 'pnpm' && +packageMajor >= 7) { | ||
setUpWorkspacesInPackageJson(tree, options); | ||
await (0, devkit_1.formatFiles)(tree); | ||
return token; | ||
} | ||
@@ -78,2 +86,3 @@ function setPresetProperty(tree, options) { | ||
(0, devkit_1.writeJson)(tree, (0, path_1.join)(directory, 'nx.json'), nxJson); | ||
return nxJson; | ||
} | ||
@@ -178,2 +187,3 @@ function createFiles(tree, options) { | ||
defaultBase, | ||
nxCloud: options.nxCloud ?? 'skip', | ||
}; | ||
@@ -180,0 +190,0 @@ } |
@@ -24,2 +24,4 @@ import { PackageManager, Tree } from '@nx/devkit'; | ||
prefix?: string; | ||
useGitHub?: boolean; | ||
nxCloud?: 'yes' | 'skip' | 'circleci' | 'github'; | ||
} | ||
@@ -26,0 +28,0 @@ export interface NormalizedSchema extends Schema { |
@@ -13,4 +13,5 @@ "use strict"; | ||
validateOptions(options, tree); | ||
await (0, generate_workspace_files_1.generateWorkspaceFiles)(tree, { ...options, nxCloud: undefined }); | ||
await (0, generate_workspace_files_1.generateWorkspaceFiles)(tree, options); | ||
(0, generate_preset_1.addPresetDependencies)(tree, options); | ||
await (0, devkit_1.formatFiles)(tree); | ||
return async () => { | ||
@@ -17,0 +18,0 @@ if (!options.skipInstall) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
215417
4719
+ Added@nrwl/devkit@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nrwl/tao@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nrwl/workspace@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nx/devkit@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nx/nx-darwin-arm64@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nx/nx-darwin-x64@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nx/nx-freebsd-x64@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nx/nx-linux-arm-gnueabihf@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nx/nx-linux-arm64-gnu@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nx/nx-linux-arm64-musl@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nx/nx-linux-x64-gnu@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nx/nx-linux-x64-musl@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nx/nx-win32-arm64-msvc@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Added@nx/nx-win32-x64-msvc@19.6.0-canary.20240803-bd7a2c9(transitive)
+ Addednx@19.6.0-canary.20240803-bd7a2c9(transitive)
- Removed@nrwl/devkit@19.6.0-canary.20240801-2111841(transitive)
- Removed@nrwl/tao@19.6.0-canary.20240801-2111841(transitive)
- Removed@nrwl/workspace@19.6.0-canary.20240801-2111841(transitive)
- Removed@nx/devkit@19.6.0-canary.20240801-2111841(transitive)
- Removed@nx/nx-darwin-arm64@19.6.0-canary.20240801-2111841(transitive)
- Removed@nx/nx-darwin-x64@19.6.0-canary.20240801-2111841(transitive)
- Removed@nx/nx-freebsd-x64@19.6.0-canary.20240801-2111841(transitive)
- Removed@nx/nx-linux-arm-gnueabihf@19.6.0-canary.20240801-2111841(transitive)
- Removed@nx/nx-linux-arm64-gnu@19.6.0-canary.20240801-2111841(transitive)
- Removed@nx/nx-linux-arm64-musl@19.6.0-canary.20240801-2111841(transitive)
- Removed@nx/nx-linux-x64-gnu@19.6.0-canary.20240801-2111841(transitive)
- Removed@nx/nx-linux-x64-musl@19.6.0-canary.20240801-2111841(transitive)
- Removed@nx/nx-win32-arm64-msvc@19.6.0-canary.20240801-2111841(transitive)
- Removed@nx/nx-win32-x64-msvc@19.6.0-canary.20240801-2111841(transitive)
- Removednx@19.6.0-canary.20240801-2111841(transitive)