Comparing version 19.7.0-beta.4 to 19.7.0-beta.5
{ | ||
"name": "nx", | ||
"version": "19.7.0-beta.4", | ||
"version": "19.7.0-beta.5", | ||
"private": false, | ||
@@ -74,3 +74,3 @@ "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.", | ||
"ora": "5.3.0", | ||
"@nrwl/tao": "19.7.0-beta.4" | ||
"@nrwl/tao": "19.7.0-beta.5" | ||
}, | ||
@@ -90,12 +90,12 @@ "peerDependencies": { | ||
"optionalDependencies": { | ||
"@nx/nx-darwin-x64": "19.7.0-beta.4", | ||
"@nx/nx-darwin-arm64": "19.7.0-beta.4", | ||
"@nx/nx-linux-x64-gnu": "19.7.0-beta.4", | ||
"@nx/nx-linux-x64-musl": "19.7.0-beta.4", | ||
"@nx/nx-win32-x64-msvc": "19.7.0-beta.4", | ||
"@nx/nx-linux-arm64-gnu": "19.7.0-beta.4", | ||
"@nx/nx-linux-arm64-musl": "19.7.0-beta.4", | ||
"@nx/nx-linux-arm-gnueabihf": "19.7.0-beta.4", | ||
"@nx/nx-win32-arm64-msvc": "19.7.0-beta.4", | ||
"@nx/nx-freebsd-x64": "19.7.0-beta.4" | ||
"@nx/nx-darwin-x64": "19.7.0-beta.5", | ||
"@nx/nx-darwin-arm64": "19.7.0-beta.5", | ||
"@nx/nx-linux-x64-gnu": "19.7.0-beta.5", | ||
"@nx/nx-linux-x64-musl": "19.7.0-beta.5", | ||
"@nx/nx-win32-x64-msvc": "19.7.0-beta.5", | ||
"@nx/nx-linux-arm64-gnu": "19.7.0-beta.5", | ||
"@nx/nx-linux-arm64-musl": "19.7.0-beta.5", | ||
"@nx/nx-linux-arm-gnueabihf": "19.7.0-beta.5", | ||
"@nx/nx-win32-arm64-msvc": "19.7.0-beta.5", | ||
"@nx/nx-freebsd-x64": "19.7.0-beta.5" | ||
}, | ||
@@ -102,0 +102,0 @@ "nx-migrations": { |
@@ -7,3 +7,3 @@ "use strict"; | ||
command: 'login [nxCloudUrl]', | ||
describe: false, | ||
describe: 'Login to Nx Cloud. This command is an alias for [`nx-cloud login`](/ci/reference/nx-cloud-cli#npx-nxcloud-login).', | ||
builder: (yargs) => (0, shared_options_1.withVerbose)(yargs.positional('nxCloudUrl', { | ||
@@ -10,0 +10,0 @@ describe: 'The Nx Cloud URL of the instance you are trying to connect to. If no positional argument is provided, this command will connect to https://cloud.nx.app.', |
@@ -7,3 +7,3 @@ "use strict"; | ||
command: 'logout', | ||
describe: false, | ||
describe: 'Logout from Nx Cloud. This command is an alias for [`nx-cloud logout`](/ci/reference/nx-cloud-cli#npx-nxcloud-logout).', | ||
builder: (yargs) => (0, shared_options_1.withVerbose)(yargs), | ||
@@ -10,0 +10,0 @@ handler: async (args) => { |
@@ -45,14 +45,2 @@ "use strict"; | ||
} | ||
async function createNxCloudWorkspaceV1(workspaceName, installationSource, nxInitDate) { | ||
const apiUrl = (0, get_cloud_options_1.getCloudUrl)(); | ||
const response = await require('axios').post(`${apiUrl}/nx-cloud/create-org-and-workspace`, { | ||
workspaceName, | ||
installationSource, | ||
nxInitDate, | ||
}); | ||
if (response.data.message) { | ||
throw new Error(response.data.message); | ||
} | ||
return response.data; | ||
} | ||
async function createNxCloudWorkspaceV2(workspaceName, installationSource, nxInitDate) { | ||
@@ -85,15 +73,2 @@ const apiUrl = (0, get_cloud_options_1.getCloudUrl)(); | ||
} | ||
function addNxCloudOptionsToNxJson(tree, token, directory = '') { | ||
const nxJsonPath = (0, path_1.join)(directory, 'nx.json'); | ||
if (tree.exists(nxJsonPath)) { | ||
(0, json_1.updateJson)(tree, (0, path_1.join)(directory, 'nx.json'), (nxJson) => { | ||
const overrideUrl = process.env.NX_CLOUD_API || process.env.NRWL_API; | ||
if (overrideUrl) { | ||
nxJson.nxCloudUrl = overrideUrl; | ||
} | ||
nxJson.nxCloudAccessToken = token; | ||
return nxJson; | ||
}); | ||
} | ||
} | ||
function addNxCloudIdToNxJson(tree, nxCloudId, directory = '') { | ||
@@ -129,18 +104,8 @@ const nxJsonPath = (0, path_1.join)(directory, 'nx.json'); | ||
return null; | ||
if (process.env.NX_ENABLE_LOGIN === 'true') { | ||
responseFromCreateNxCloudWorkspaceV2 = await createNxCloudWorkspaceV2(getRootPackageName(tree), schema.installationSource, getNxInitDate()); | ||
addNxCloudIdToNxJson(tree, responseFromCreateNxCloudWorkspaceV2?.nxCloudId, schema.directory); | ||
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree, { | ||
silent: schema.hideFormatLogs, | ||
}); | ||
return responseFromCreateNxCloudWorkspaceV2.nxCloudId; | ||
} | ||
else { | ||
responseFromCreateNxCloudWorkspaceV1 = await createNxCloudWorkspaceV1(getRootPackageName(tree), schema.installationSource, getNxInitDate()); | ||
addNxCloudOptionsToNxJson(tree, responseFromCreateNxCloudWorkspaceV1?.token, schema.directory); | ||
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree, { | ||
silent: schema.hideFormatLogs, | ||
}); | ||
return responseFromCreateNxCloudWorkspaceV1.token; | ||
} | ||
responseFromCreateNxCloudWorkspaceV2 = await createNxCloudWorkspaceV2(getRootPackageName(tree), schema.installationSource, getNxInitDate()); | ||
addNxCloudIdToNxJson(tree, responseFromCreateNxCloudWorkspaceV2?.nxCloudId, schema.directory); | ||
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree, { | ||
silent: schema.hideFormatLogs, | ||
}); | ||
return responseFromCreateNxCloudWorkspaceV2.nxCloudId; | ||
} | ||
@@ -147,0 +112,0 @@ async function connectToNxCloudGenerator(tree, options) { |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
372
9201231
52514
+ Added@nrwl/tao@19.7.0-beta.5(transitive)
+ Added@nx/nx-darwin-arm64@19.7.0-beta.5(transitive)
+ Added@nx/nx-darwin-x64@19.7.0-beta.5(transitive)
+ Added@nx/nx-freebsd-x64@19.7.0-beta.5(transitive)
+ Added@nx/nx-linux-arm-gnueabihf@19.7.0-beta.5(transitive)
+ Added@nx/nx-linux-arm64-gnu@19.7.0-beta.5(transitive)
+ Added@nx/nx-linux-arm64-musl@19.7.0-beta.5(transitive)
+ Added@nx/nx-linux-x64-gnu@19.7.0-beta.5(transitive)
+ Added@nx/nx-linux-x64-musl@19.7.0-beta.5(transitive)
+ Added@nx/nx-win32-arm64-msvc@19.7.0-beta.5(transitive)
+ Added@nx/nx-win32-x64-msvc@19.7.0-beta.5(transitive)
- Removed@nrwl/tao@19.7.0-beta.4(transitive)
- Removed@nx/nx-darwin-arm64@19.7.0-beta.4(transitive)
- Removed@nx/nx-darwin-x64@19.7.0-beta.4(transitive)
- Removed@nx/nx-freebsd-x64@19.7.0-beta.4(transitive)
- Removed@nx/nx-linux-arm-gnueabihf@19.7.0-beta.4(transitive)
- Removed@nx/nx-linux-arm64-gnu@19.7.0-beta.4(transitive)
- Removed@nx/nx-linux-arm64-musl@19.7.0-beta.4(transitive)
- Removed@nx/nx-linux-x64-gnu@19.7.0-beta.4(transitive)
- Removed@nx/nx-linux-x64-musl@19.7.0-beta.4(transitive)
- Removed@nx/nx-win32-arm64-msvc@19.7.0-beta.4(transitive)
- Removed@nx/nx-win32-x64-msvc@19.7.0-beta.4(transitive)
Updated@nrwl/tao@19.7.0-beta.5