deploy-webapp 1.0.9 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,6 +104,5 @@ const runMigration = async () => {
104
104
  for (const info of arrayIds) {
105
105
  await execute(info);
106
106
  }
107
- (0, console_1.log)(`${constants_1.cor.Green}DEPLOYMENT COMPLETED!${constants_1.cor.Reset}`);
108
107
  };
109
108
  exports.runMigration = runMigration;
package/install.js CHANGED
@@ -49,21 +49,18 @@ const filesToCopy = [
49
49
  ];
50
50
 
51
51
  // Conteúdo do arquivo migrate.js a ser criado
52
- const migrateJsContent = `require('dotenv').config();
53
- const { runMigration } = require('deploy-webapp');
54
-
55
- console.log('🚀 Iniciando deploy...\n');
56
-
57
- runMigration()
58
- .then(() => {
59
- console.log('\n Deploy concluído com sucesso!');
60
- process.exit(0);
61
- })
62
- .catch((error) => {
63
- console.error('\n❌ Erro no deploy:', error);
64
- process.exit(1);
65
- });
66
- `;
52
+ const migrateJsContent = "require('dotenv').config();\n" +
53
+ "const { runMigration } = require('deploy-webapp');\n\n" +
54
+ "console.log('🚀 Iniciando deploy...');\n\n" +
55
+ "runMigration()\n" +
56
+ " .then(() => {\n" +
57
+ " console.log('\\n✅ Deploy concluído com sucesso!');\n" +
58
+ " process.exit(0);\n" +
59
+ " })\n" +
60
+ " .catch((error) => {\n" +
61
+ " console.error('\\n❌ Erro no deploy:', error);\n" +
62
+ " process.exit(1);\n" +
63
+ " });\n";
67
64
 
68
65
  // Conteúdo do arquivo .env template a ser criado
69
66
  const envTemplateContent = `# Configurações Gerais
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deploy-webapp",
3
- "version": "1.0.9",
3
+ "version": "1.0.13",
4
4
  "description": "Script para deploy de esteiras no WebApp.",
5
5
  "main": "dist/0_index.js",
6
6
  "bin": {