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

View File

@@ -0,0 +1,8 @@
import type { CLIContext } from '../types';
interface CmdOptions {
env?: string;
force?: boolean;
}
declare const _default: (ctx: CLIContext, opts: CmdOptions) => Promise<void>;
export default _default;
//# sourceMappingURL=action.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/deploy-project/action.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,UAAU,EAKX,MAAM,UAAU,CAAC;AAgBlB,UAAU,UAAU;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;8BA6L0B,UAAU,QAAQ,UAAU;AAAvD,wBA6HE"}

View File

@@ -0,0 +1,287 @@
'use strict';
var fse = require('fs-extra');
var inquirer = require('inquirer');
var boxen = require('boxen');
var path = require('path');
var chalk = require('chalk');
var axios = require('axios');
var crypto = require('node:crypto');
var api = require('../config/api.js');
var compressFiles = require('../utils/compress-files.js');
var action$2 = require('../create-project/action.js');
var local = require('../config/local.js');
var cliApi = require('../services/cli-api.js');
var strapiInfoSave = require('../services/strapi-info-save.js');
var token = require('../services/token.js');
require('fast-safe-stringify');
require('ora');
require('cli-progress');
var notification = require('../services/notification.js');
var pkg = require('../utils/pkg.js');
var buildLogs = require('../services/build-logs.js');
var action$1 = require('../login/action.js');
var analytics = require('../utils/analytics.js');
function _interopNamespaceDefault(e) {
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
}
n.default = e;
return Object.freeze(n);
}
var crypto__namespace = /*#__PURE__*/_interopNamespaceDefault(crypto);
const boxenOptions = {
padding: 1,
margin: 1,
align: 'center',
borderColor: 'yellow',
borderStyle: 'round'
};
const QUIT_OPTION = 'Quit';
async function promptForEnvironment(environments) {
const choices = environments.map((env)=>({
name: env,
value: env
}));
const { selectedEnvironment } = await inquirer.prompt([
{
type: 'list',
name: 'selectedEnvironment',
message: 'Select the environment to deploy:',
choices: [
...choices,
{
name: chalk.grey(`(${QUIT_OPTION})`),
value: null
}
]
}
]);
if (selectedEnvironment === null) {
process.exit(1);
}
return selectedEnvironment;
}
async function upload(ctx, project, token, maxProjectFileSize) {
const cloudApi = await cliApi.cloudApiFactory(ctx, token);
try {
const storagePath = await local.getTmpStoragePath();
const projectFolder = path.resolve(process.cwd());
const packageJson = await pkg.loadPkg(ctx);
if (!packageJson) {
ctx.logger.error('Unable to deploy the project. Please make sure the package.json file is correctly formatted.');
return;
}
ctx.logger.log('📦 Compressing project...');
// hash packageJson.name to avoid conflicts
const hashname = crypto__namespace.createHash('sha512').update(packageJson.name).digest('hex');
const compressedFilename = `${hashname}.tar.gz`;
try {
ctx.logger.debug('Compression parameters\n', `Storage path: ${storagePath}\n`, `Project folder: ${projectFolder}\n`, `Compressed filename: ${compressedFilename}`);
await compressFiles.compressFilesToTar(storagePath, projectFolder, compressedFilename);
ctx.logger.log('📦 Project compressed successfully!');
} catch (e) {
ctx.logger.error('⚠️ Project compression failed. Try again later or check for large/incompatible files.');
ctx.logger.debug(e);
process.exit(1);
}
const tarFilePath = path.resolve(storagePath, compressedFilename);
const fileStats = await fse.stat(tarFilePath);
if (fileStats.size > maxProjectFileSize) {
ctx.logger.log('Unable to proceed: Your project is too big to be transferred, please use a git repo instead.');
try {
await fse.remove(tarFilePath);
} catch (e) {
ctx.logger.log('Unable to remove file: ', tarFilePath);
ctx.logger.debug(e);
}
return;
}
ctx.logger.info('🚀 Uploading project...');
const progressBar = ctx.logger.progressBar(100, 'Upload Progress');
try {
const { data } = await cloudApi.deploy({
filePath: tarFilePath,
project
}, {
onUploadProgress (progressEvent) {
const total = progressEvent.total || fileStats.size;
const percentage = Math.round(progressEvent.loaded * 100 / total);
progressBar.update(percentage);
}
});
progressBar.update(100);
progressBar.stop();
ctx.logger.success('✨ Upload finished!');
return data.build_id;
} catch (e) {
progressBar.stop();
ctx.logger.error('An error occurred while deploying the project. Please try again later.');
ctx.logger.debug(e);
} finally{
await fse.remove(tarFilePath);
}
process.exit(0);
} catch (e) {
ctx.logger.error('An error occurred while deploying the project. Please try again later.');
ctx.logger.debug(e);
process.exit(1);
}
}
async function getProject(ctx) {
const { project } = await strapiInfoSave.retrieve();
if (!project) {
try {
return await action$2(ctx);
} catch (e) {
ctx.logger.error('An error occurred while deploying the project. Please try again later.');
ctx.logger.debug(e);
process.exit(1);
}
}
return project;
}
async function getConfig({ ctx, cloudApiService }) {
try {
const { data: cliConfig } = await cloudApiService.config();
return cliConfig;
} catch (e) {
ctx.logger.debug('Failed to get cli config', e);
return null;
}
}
function validateEnvironment(ctx, environment, environments) {
if (!environments.includes(environment)) {
ctx.logger.error(`Environment ${environment} does not exist.`);
process.exit(1);
}
}
async function getTargetEnvironment(ctx, opts, project, environments) {
if (opts.env) {
validateEnvironment(ctx, opts.env, environments);
return opts.env;
}
if (project.targetEnvironment) {
return project.targetEnvironment;
}
if (environments.length > 1) {
return promptForEnvironment(environments);
}
return environments[0];
}
function hasPendingOrLiveDeployment(environments, targetEnvironment) {
const environment = environments.find((env)=>env.name === targetEnvironment);
if (!environment) {
throw new Error(`Environment details ${targetEnvironment} not found.`);
}
return environment.hasPendingDeployment || environment.hasLiveDeployment || false;
}
var action = (async (ctx, opts)=>{
const { getValidToken } = await token.tokenServiceFactory(ctx);
const token$1 = await getValidToken(ctx, action$1.promptLogin);
if (!token$1) {
return;
}
const project = await getProject(ctx);
if (!project) {
return;
}
const cloudApiService = await cliApi.cloudApiFactory(ctx, token$1);
let projectData;
let environments;
let environmentsDetails;
try {
const { data: { data, metadata } } = await cloudApiService.getProject({
name: project.name
});
projectData = data;
environments = projectData.environments;
environmentsDetails = projectData.environmentsDetails;
const isProjectSuspended = projectData.suspendedAt;
if (isProjectSuspended) {
ctx.logger.log('\n Oops! This project has been suspended. \n\n Please reactivate it from the dashboard to continue deploying: ');
ctx.logger.log(chalk.underline(`${metadata.dashboardUrls.project}`));
return;
}
} catch (e) {
if (e instanceof axios.AxiosError && e.response?.data) {
if (e.response.status === 404) {
ctx.logger.warn(`The project associated with this folder does not exist in Strapi Cloud. \nPlease link your local project to an existing Strapi Cloud project using the ${chalk.cyan('link')} command before deploying.`);
} else {
ctx.logger.error(e.response.data);
}
} else {
ctx.logger.error("An error occurred while retrieving the project's information. Please try again later.");
}
ctx.logger.debug(e);
return;
}
await analytics.trackEvent(ctx, cloudApiService, 'willDeployWithCLI', {
projectInternalName: project.name
});
const notificationService = notification.notificationServiceFactory(ctx);
const buildLogsService = buildLogs.buildLogsServiceFactory(ctx);
const cliConfig = await getConfig({
ctx,
cloudApiService
});
if (!cliConfig) {
ctx.logger.error('An error occurred while retrieving data from Strapi Cloud. Please check your network or try again later.');
return;
}
let maxSize = parseInt(cliConfig.maxProjectFileSize, 10);
if (Number.isNaN(maxSize)) {
ctx.logger.debug('An error occurred while parsing the maxProjectFileSize. Using default value.');
maxSize = 100000000;
}
project.targetEnvironment = await getTargetEnvironment(ctx, opts, project, environments);
if (!opts.force) {
const shouldDisplayWarning = hasPendingOrLiveDeployment(environmentsDetails, project.targetEnvironment);
if (shouldDisplayWarning) {
ctx.logger.log(boxen(cliConfig.projectDeployment.confirmationText, boxenOptions));
const { confirm } = await inquirer.prompt([
{
type: 'confirm',
name: 'confirm',
message: `Do you want to proceed with deployment to ${chalk.cyan(projectData.displayName)} on ${chalk.cyan(project.targetEnvironment)} environment?`
}
]);
if (!confirm) {
process.exit(1);
}
}
}
const buildId = await upload(ctx, project, token$1, maxSize);
if (!buildId) {
return;
}
try {
ctx.logger.log(`🚀 Deploying project to ${chalk.cyan(project.targetEnvironment ?? `production`)} environment...`);
notificationService(`${api.apiConfig.apiBaseUrl}/notifications`, token$1, cliConfig);
await buildLogsService(`${api.apiConfig.apiBaseUrl}/v1/logs/${buildId}`, token$1, cliConfig);
ctx.logger.log('Visit the following URL for deployment logs. Your deployment will be available here shortly.');
ctx.logger.log(chalk.underline(`${api.apiConfig.dashboardBaseUrl}/projects/${project.name}/deployments`));
} catch (e) {
ctx.logger.debug(e);
if (e instanceof Error) {
ctx.logger.error(e.message);
} else {
ctx.logger.error('An error occurred while deploying the project. Please try again later.');
}
}
});
module.exports = action;
//# sourceMappingURL=action.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,266 @@
import fse__default from 'fs-extra';
import inquirer from 'inquirer';
import boxen from 'boxen';
import path__default from 'path';
import chalk from 'chalk';
import { AxiosError } from 'axios';
import * as crypto from 'node:crypto';
import { apiConfig } from '../config/api.mjs';
import { compressFilesToTar } from '../utils/compress-files.mjs';
import action$1 from '../create-project/action.mjs';
import { getTmpStoragePath } from '../config/local.mjs';
import { cloudApiFactory } from '../services/cli-api.mjs';
import { retrieve } from '../services/strapi-info-save.mjs';
import { tokenServiceFactory } from '../services/token.mjs';
import 'fast-safe-stringify';
import 'ora';
import 'cli-progress';
import { notificationServiceFactory } from '../services/notification.mjs';
import { loadPkg } from '../utils/pkg.mjs';
import { buildLogsServiceFactory } from '../services/build-logs.mjs';
import { promptLogin } from '../login/action.mjs';
import { trackEvent } from '../utils/analytics.mjs';
const boxenOptions = {
padding: 1,
margin: 1,
align: 'center',
borderColor: 'yellow',
borderStyle: 'round'
};
const QUIT_OPTION = 'Quit';
async function promptForEnvironment(environments) {
const choices = environments.map((env)=>({
name: env,
value: env
}));
const { selectedEnvironment } = await inquirer.prompt([
{
type: 'list',
name: 'selectedEnvironment',
message: 'Select the environment to deploy:',
choices: [
...choices,
{
name: chalk.grey(`(${QUIT_OPTION})`),
value: null
}
]
}
]);
if (selectedEnvironment === null) {
process.exit(1);
}
return selectedEnvironment;
}
async function upload(ctx, project, token, maxProjectFileSize) {
const cloudApi = await cloudApiFactory(ctx, token);
try {
const storagePath = await getTmpStoragePath();
const projectFolder = path__default.resolve(process.cwd());
const packageJson = await loadPkg(ctx);
if (!packageJson) {
ctx.logger.error('Unable to deploy the project. Please make sure the package.json file is correctly formatted.');
return;
}
ctx.logger.log('📦 Compressing project...');
// hash packageJson.name to avoid conflicts
const hashname = crypto.createHash('sha512').update(packageJson.name).digest('hex');
const compressedFilename = `${hashname}.tar.gz`;
try {
ctx.logger.debug('Compression parameters\n', `Storage path: ${storagePath}\n`, `Project folder: ${projectFolder}\n`, `Compressed filename: ${compressedFilename}`);
await compressFilesToTar(storagePath, projectFolder, compressedFilename);
ctx.logger.log('📦 Project compressed successfully!');
} catch (e) {
ctx.logger.error('⚠️ Project compression failed. Try again later or check for large/incompatible files.');
ctx.logger.debug(e);
process.exit(1);
}
const tarFilePath = path__default.resolve(storagePath, compressedFilename);
const fileStats = await fse__default.stat(tarFilePath);
if (fileStats.size > maxProjectFileSize) {
ctx.logger.log('Unable to proceed: Your project is too big to be transferred, please use a git repo instead.');
try {
await fse__default.remove(tarFilePath);
} catch (e) {
ctx.logger.log('Unable to remove file: ', tarFilePath);
ctx.logger.debug(e);
}
return;
}
ctx.logger.info('🚀 Uploading project...');
const progressBar = ctx.logger.progressBar(100, 'Upload Progress');
try {
const { data } = await cloudApi.deploy({
filePath: tarFilePath,
project
}, {
onUploadProgress (progressEvent) {
const total = progressEvent.total || fileStats.size;
const percentage = Math.round(progressEvent.loaded * 100 / total);
progressBar.update(percentage);
}
});
progressBar.update(100);
progressBar.stop();
ctx.logger.success('✨ Upload finished!');
return data.build_id;
} catch (e) {
progressBar.stop();
ctx.logger.error('An error occurred while deploying the project. Please try again later.');
ctx.logger.debug(e);
} finally{
await fse__default.remove(tarFilePath);
}
process.exit(0);
} catch (e) {
ctx.logger.error('An error occurred while deploying the project. Please try again later.');
ctx.logger.debug(e);
process.exit(1);
}
}
async function getProject(ctx) {
const { project } = await retrieve();
if (!project) {
try {
return await action$1(ctx);
} catch (e) {
ctx.logger.error('An error occurred while deploying the project. Please try again later.');
ctx.logger.debug(e);
process.exit(1);
}
}
return project;
}
async function getConfig({ ctx, cloudApiService }) {
try {
const { data: cliConfig } = await cloudApiService.config();
return cliConfig;
} catch (e) {
ctx.logger.debug('Failed to get cli config', e);
return null;
}
}
function validateEnvironment(ctx, environment, environments) {
if (!environments.includes(environment)) {
ctx.logger.error(`Environment ${environment} does not exist.`);
process.exit(1);
}
}
async function getTargetEnvironment(ctx, opts, project, environments) {
if (opts.env) {
validateEnvironment(ctx, opts.env, environments);
return opts.env;
}
if (project.targetEnvironment) {
return project.targetEnvironment;
}
if (environments.length > 1) {
return promptForEnvironment(environments);
}
return environments[0];
}
function hasPendingOrLiveDeployment(environments, targetEnvironment) {
const environment = environments.find((env)=>env.name === targetEnvironment);
if (!environment) {
throw new Error(`Environment details ${targetEnvironment} not found.`);
}
return environment.hasPendingDeployment || environment.hasLiveDeployment || false;
}
var action = (async (ctx, opts)=>{
const { getValidToken } = await tokenServiceFactory(ctx);
const token = await getValidToken(ctx, promptLogin);
if (!token) {
return;
}
const project = await getProject(ctx);
if (!project) {
return;
}
const cloudApiService = await cloudApiFactory(ctx, token);
let projectData;
let environments;
let environmentsDetails;
try {
const { data: { data, metadata } } = await cloudApiService.getProject({
name: project.name
});
projectData = data;
environments = projectData.environments;
environmentsDetails = projectData.environmentsDetails;
const isProjectSuspended = projectData.suspendedAt;
if (isProjectSuspended) {
ctx.logger.log('\n Oops! This project has been suspended. \n\n Please reactivate it from the dashboard to continue deploying: ');
ctx.logger.log(chalk.underline(`${metadata.dashboardUrls.project}`));
return;
}
} catch (e) {
if (e instanceof AxiosError && e.response?.data) {
if (e.response.status === 404) {
ctx.logger.warn(`The project associated with this folder does not exist in Strapi Cloud. \nPlease link your local project to an existing Strapi Cloud project using the ${chalk.cyan('link')} command before deploying.`);
} else {
ctx.logger.error(e.response.data);
}
} else {
ctx.logger.error("An error occurred while retrieving the project's information. Please try again later.");
}
ctx.logger.debug(e);
return;
}
await trackEvent(ctx, cloudApiService, 'willDeployWithCLI', {
projectInternalName: project.name
});
const notificationService = notificationServiceFactory(ctx);
const buildLogsService = buildLogsServiceFactory(ctx);
const cliConfig = await getConfig({
ctx,
cloudApiService
});
if (!cliConfig) {
ctx.logger.error('An error occurred while retrieving data from Strapi Cloud. Please check your network or try again later.');
return;
}
let maxSize = parseInt(cliConfig.maxProjectFileSize, 10);
if (Number.isNaN(maxSize)) {
ctx.logger.debug('An error occurred while parsing the maxProjectFileSize. Using default value.');
maxSize = 100000000;
}
project.targetEnvironment = await getTargetEnvironment(ctx, opts, project, environments);
if (!opts.force) {
const shouldDisplayWarning = hasPendingOrLiveDeployment(environmentsDetails, project.targetEnvironment);
if (shouldDisplayWarning) {
ctx.logger.log(boxen(cliConfig.projectDeployment.confirmationText, boxenOptions));
const { confirm } = await inquirer.prompt([
{
type: 'confirm',
name: 'confirm',
message: `Do you want to proceed with deployment to ${chalk.cyan(projectData.displayName)} on ${chalk.cyan(project.targetEnvironment)} environment?`
}
]);
if (!confirm) {
process.exit(1);
}
}
}
const buildId = await upload(ctx, project, token, maxSize);
if (!buildId) {
return;
}
try {
ctx.logger.log(`🚀 Deploying project to ${chalk.cyan(project.targetEnvironment ?? `production`)} environment...`);
notificationService(`${apiConfig.apiBaseUrl}/notifications`, token, cliConfig);
await buildLogsService(`${apiConfig.apiBaseUrl}/v1/logs/${buildId}`, token, cliConfig);
ctx.logger.log('Visit the following URL for deployment logs. Your deployment will be available here shortly.');
ctx.logger.log(chalk.underline(`${apiConfig.dashboardBaseUrl}/projects/${project.name}/deployments`));
} catch (e) {
ctx.logger.debug(e);
if (e instanceof Error) {
ctx.logger.error(e.message);
} else {
ctx.logger.error('An error occurred while deploying the project. Please try again later.');
}
}
});
export { action as default };
//# sourceMappingURL=action.mjs.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,7 @@
import { type StrapiCloudCommand } from '../types';
/**
* `$ deploy project to the cloud`
*/
declare const command: StrapiCloudCommand;
export default command;
//# sourceMappingURL=command.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/deploy-project/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAInD;;GAEG;AACH,QAAA,MAAM,OAAO,EAAE,kBASd,CAAC;AAEF,eAAe,OAAO,CAAC"}

View File

@@ -0,0 +1,14 @@
'use strict';
var commander = require('commander');
var helpers = require('../utils/helpers.js');
var action = require('./action.js');
/**
* `$ deploy project to the cloud`
*/ const command = ({ ctx })=>{
return commander.createCommand('cloud:deploy').alias('deploy').description('Deploy a Strapi Cloud project').option('-d, --debug', 'Enable debugging mode with verbose logs').option('-s, --silent', "Don't log anything").option('-f, --force', 'Skip confirmation to deploy').option('-e, --env <name>', 'Specify the environment to deploy').action((opts)=>helpers.runAction('deploy', action)(ctx, opts));
};
module.exports = command;
//# sourceMappingURL=command.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"command.js","sources":["../../src/deploy-project/command.ts"],"sourcesContent":["import { createCommand } from 'commander';\nimport { type StrapiCloudCommand } from '../types';\nimport { runAction } from '../utils/helpers';\nimport action from './action';\n\n/**\n * `$ deploy project to the cloud`\n */\nconst command: StrapiCloudCommand = ({ ctx }) => {\n return createCommand('cloud:deploy')\n .alias('deploy')\n .description('Deploy a Strapi Cloud project')\n .option('-d, --debug', 'Enable debugging mode with verbose logs')\n .option('-s, --silent', \"Don't log anything\")\n .option('-f, --force', 'Skip confirmation to deploy')\n .option('-e, --env <name>', 'Specify the environment to deploy')\n .action((opts) => runAction('deploy', action)(ctx, opts));\n};\n\nexport default command;\n"],"names":["command","ctx","createCommand","alias","description","option","action","opts","runAction"],"mappings":";;;;;;AAKA;;AAEC,IACKA,MAAAA,OAAAA,GAA8B,CAAC,EAAEC,GAAG,EAAE,GAAA;AAC1C,IAAA,OAAOC,uBAAc,CAAA,cAAA,CAAA,CAClBC,KAAK,CAAC,QACNC,CAAAA,CAAAA,WAAW,CAAC,+BAAA,CAAA,CACZC,MAAM,CAAC,aAAe,EAAA,yCAAA,CAAA,CACtBA,MAAM,CAAC,cAAA,EAAgB,oBACvBA,CAAAA,CAAAA,MAAM,CAAC,aAAA,EAAe,6BACtBA,CAAAA,CAAAA,MAAM,CAAC,kBAAoB,EAAA,mCAAA,CAAA,CAC3BC,MAAM,CAAC,CAACC,IAAAA,GAASC,iBAAU,CAAA,QAAA,EAAUF,QAAQL,GAAKM,EAAAA,IAAAA,CAAAA,CAAAA;AACvD;;;;"}

View File

@@ -0,0 +1,12 @@
import { createCommand } from 'commander';
import { runAction } from '../utils/helpers.mjs';
import action from './action.mjs';
/**
* `$ deploy project to the cloud`
*/ const command = ({ ctx })=>{
return createCommand('cloud:deploy').alias('deploy').description('Deploy a Strapi Cloud project').option('-d, --debug', 'Enable debugging mode with verbose logs').option('-s, --silent', "Don't log anything").option('-f, --force', 'Skip confirmation to deploy').option('-e, --env <name>', 'Specify the environment to deploy').action((opts)=>runAction('deploy', action)(ctx, opts));
};
export { command as default };
//# sourceMappingURL=command.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"command.mjs","sources":["../../src/deploy-project/command.ts"],"sourcesContent":["import { createCommand } from 'commander';\nimport { type StrapiCloudCommand } from '../types';\nimport { runAction } from '../utils/helpers';\nimport action from './action';\n\n/**\n * `$ deploy project to the cloud`\n */\nconst command: StrapiCloudCommand = ({ ctx }) => {\n return createCommand('cloud:deploy')\n .alias('deploy')\n .description('Deploy a Strapi Cloud project')\n .option('-d, --debug', 'Enable debugging mode with verbose logs')\n .option('-s, --silent', \"Don't log anything\")\n .option('-f, --force', 'Skip confirmation to deploy')\n .option('-e, --env <name>', 'Specify the environment to deploy')\n .action((opts) => runAction('deploy', action)(ctx, opts));\n};\n\nexport default command;\n"],"names":["command","ctx","createCommand","alias","description","option","action","opts","runAction"],"mappings":";;;;AAKA;;AAEC,IACKA,MAAAA,OAAAA,GAA8B,CAAC,EAAEC,GAAG,EAAE,GAAA;AAC1C,IAAA,OAAOC,aAAc,CAAA,cAAA,CAAA,CAClBC,KAAK,CAAC,QACNC,CAAAA,CAAAA,WAAW,CAAC,+BAAA,CAAA,CACZC,MAAM,CAAC,aAAe,EAAA,yCAAA,CAAA,CACtBA,MAAM,CAAC,cAAA,EAAgB,oBACvBA,CAAAA,CAAAA,MAAM,CAAC,aAAA,EAAe,6BACtBA,CAAAA,CAAAA,MAAM,CAAC,kBAAoB,EAAA,mCAAA,CAAA,CAC3BC,MAAM,CAAC,CAACC,IAAAA,GAASC,SAAU,CAAA,QAAA,EAAUF,QAAQL,GAAKM,EAAAA,IAAAA,CAAAA,CAAAA;AACvD;;;;"}

View File

@@ -0,0 +1,7 @@
import action from './action';
import command from './command';
import type { StrapiCloudCommandInfo } from '../types';
export { action, command };
declare const _default: StrapiCloudCommandInfo;
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deploy-project/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;AAE3B,wBAK4B"}

View File

@@ -0,0 +1,18 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var action = require('./action.js');
var command = require('./command.js');
var deployProject = {
name: 'deploy-project',
description: 'Deploy a Strapi Cloud project',
action,
command
};
exports.action = action;
exports.command = command;
exports.default = deployProject;
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sources":["../../src/deploy-project/index.ts"],"sourcesContent":["import action from './action';\nimport command from './command';\nimport type { StrapiCloudCommandInfo } from '../types';\n\nexport { action, command };\n\nexport default {\n name: 'deploy-project',\n description: 'Deploy a Strapi Cloud project',\n action,\n command,\n} as StrapiCloudCommandInfo;\n"],"names":["name","description","action","command"],"mappings":";;;;;;;AAMA,oBAAe;IACbA,IAAM,EAAA,gBAAA;IACNC,WAAa,EAAA,+BAAA;AACbC,IAAAA,MAAAA;AACAC,IAAAA;AACF,CAA4B;;;;;;"}

View File

@@ -0,0 +1,12 @@
import action from './action.mjs';
import command from './command.mjs';
var deployProject = {
name: 'deploy-project',
description: 'Deploy a Strapi Cloud project',
action,
command
};
export { action, command, deployProject as default };
//# sourceMappingURL=index.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.mjs","sources":["../../src/deploy-project/index.ts"],"sourcesContent":["import action from './action';\nimport command from './command';\nimport type { StrapiCloudCommandInfo } from '../types';\n\nexport { action, command };\n\nexport default {\n name: 'deploy-project',\n description: 'Deploy a Strapi Cloud project',\n action,\n command,\n} as StrapiCloudCommandInfo;\n"],"names":["name","description","action","command"],"mappings":";;;AAMA,oBAAe;IACbA,IAAM,EAAA,gBAAA;IACNC,WAAa,EAAA,+BAAA;AACbC,IAAAA,MAAAA;AACAC,IAAAA;AACF,CAA4B;;;;"}