Socket
Socket
Sign inDemoInstall

@nx/workspace

Package Overview
Dependencies
Maintainers
0
Versions
595
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nx/workspace - npm Package Compare versions

Comparing version 19.6.0-canary.20240801-2111841 to 19.6.0-canary.20240803-bd7a2c9

8

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc