node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

61
server/node_modules/@strapi/cloud-cli/dist/index.mjs generated vendored Normal file
View File

@@ -0,0 +1,61 @@
import crypto from 'crypto';
import deployProject from './deploy-project/index.mjs';
import link from './link/index.mjs';
import login from './login/index.mjs';
import logout from './logout/index.mjs';
import createProject from './create-project/index.mjs';
import listProjects from './list-projects/index.mjs';
import listEnvironments from './environment/list/index.mjs';
import linkEnvironment from './environment/link/index.mjs';
import { getLocalConfig, saveLocalConfig } from './config/local.mjs';
import * as index from './services/index.mjs';
export { index as services };
const cli = {
deployProject,
link,
login,
logout,
createProject,
linkEnvironment,
listProjects,
listEnvironments
};
const cloudCommands = [
deployProject,
link,
login,
logout,
linkEnvironment,
listProjects,
listEnvironments
];
async function initCloudCLIConfig() {
const localConfig = await getLocalConfig();
if (!localConfig.installId) {
localConfig.installId = crypto.randomUUID();
}
await saveLocalConfig(localConfig);
}
async function buildStrapiCloudCommands({ command, ctx, argv }) {
await initCloudCLIConfig();
// Load all commands
for (const cloudCommand of cloudCommands){
try {
// Add this command to the Commander command object
const subCommand = await cloudCommand.command({
command,
ctx,
argv
});
if (subCommand) {
command.addCommand(subCommand);
}
} catch (e) {
console.error(`Failed to load command ${cloudCommand.name}`, e);
}
}
}
export { buildStrapiCloudCommands, cli };
//# sourceMappingURL=index.mjs.map