deploy-webapp 1.0.14 → 1.0.15
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.
- package/install.js +0 -29
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -155,35 +155,6 @@ if (!fs.existsSync(envPath)) {
|
|
|
155
155
|
console.log('ℹ️ deploy-webapp: .env já existe, mantendo arquivo existente.');
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
// Criar configuração do VS Code para ocultar node_modules
|
|
159
|
-
const vscodeDir = path.join(projectRoot, '.vscode');
|
|
160
|
-
const vscodeSettingsPath = path.join(vscodeDir, 'settings.json');
|
|
161
|
-
const vscodeSettingsContent = JSON.stringify({
|
|
162
|
-
"files.exclude": {
|
|
163
|
-
"**/node_modules": true
|
|
164
|
-
},
|
|
165
|
-
"explorer.fileNesting.enabled": true,
|
|
166
|
-
"explorer.fileNesting.patterns": {
|
|
167
|
-
"node_modules": "node_modules"
|
|
168
|
-
}
|
|
169
|
-
}, null, 2) + '\n';
|
|
170
|
-
|
|
171
|
-
if (!fs.existsSync(vscodeSettingsPath)) {
|
|
172
|
-
try {
|
|
173
|
-
// Criar diretório .vscode se não existir
|
|
174
|
-
if (!fs.existsSync(vscodeDir)) {
|
|
175
|
-
fs.mkdirSync(vscodeDir, { recursive: true });
|
|
176
|
-
}
|
|
177
|
-
fs.writeFileSync(vscodeSettingsPath, vscodeSettingsContent, 'utf8');
|
|
178
|
-
console.log('✅ deploy-webapp: Configuração do VS Code criada (node_modules será ocultado)!');
|
|
179
|
-
copiedCount++;
|
|
180
|
-
} catch (error) {
|
|
181
|
-
console.error('⚠️ deploy-webapp: Erro ao criar configuração do VS Code:', error.message);
|
|
182
|
-
}
|
|
183
|
-
} else {
|
|
184
|
-
console.log('ℹ️ deploy-webapp: Configuração do VS Code já existe.');
|
|
185
|
-
}
|
|
186
|
-
|
|
187
158
|
// Atualizar package.json com scripts se necessário
|
|
188
159
|
const packageJsonPath = path.join(projectRoot, 'package.json');
|
|
189
160
|
if (fs.existsSync(packageJsonPath)) {
|