Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

47
node_modules/nx/dist/bin/nx-cloud.js generated vendored Executable file
View File

@@ -0,0 +1,47 @@
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.invokeCommandWithNxCloudClient = invokeCommandWithNxCloudClient;
const get_cloud_options_1 = require("../src/nx-cloud/utilities/get-cloud-options");
const update_manager_1 = require("../src/nx-cloud/update-manager");
const output_1 = require("../src/utils/output");
const client_1 = require("../src/nx-cloud/utilities/client");
const command = process.argv[2];
const options = (0, get_cloud_options_1.getCloudOptions)();
Promise.resolve().then(async () => invokeCommandWithNxCloudClient(options));
async function invokeCommandWithNxCloudClient(options) {
try {
const client = await (0, client_1.getCloudClient)(options);
client.invoke(command);
}
catch (e) {
if (e instanceof client_1.UnknownCommandError) {
output_1.output.error({
title: `Unknown Command "${e.command}"`,
});
output_1.output.log({
title: 'Available Commands:',
bodyLines: e.availableCommands.map((c) => `- ${c}`),
});
process.exit(1);
}
const body = ['Cannot run commands from the `nx-cloud` CLI.'];
if (e instanceof update_manager_1.NxCloudEnterpriseOutdatedError) {
try {
// TODO: Remove this when all enterprise customers have updated.
// Try requiring the bin from the `nx-cloud` package.
return require('nx-cloud/bin/nx-cloud');
}
catch { }
body.push('If you are an Nx Enterprise customer, please reach out to your assigned Developer Productivity Engineer.', 'If you are NOT an Nx Enterprise customer but are seeing this message, please reach out to cloud-support@nrwl.io.');
}
if (e instanceof update_manager_1.NxCloudClientUnavailableError) {
body.unshift('You may be offline. Please try again when you are back online.');
}
output_1.output.error({
title: e.message,
bodyLines: body,
});
process.exit(1);
}
}