deploy-webapp 1.0.9 → 1.0.12

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.
Files changed (2) hide show
  1. package/install.js +12 -15
  2. package/package.json +1 -1
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.12",
4
4
  "description": "Script para deploy de esteiras no WebApp.",
5
5
  "main": "dist/0_index.js",
6
6
  "bin": {