@hed-hog/cli 0.0.103 → 0.0.105
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/dist/package.json +1 -1
- package/dist/src/modules/developer/developer.service.js +13 -0
- package/dist/src/modules/developer/developer.service.js.map +1 -1
- package/dist/src/modules/hedhog/services/migration.service.js +29 -15
- package/dist/src/modules/hedhog/services/migration.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -2755,6 +2755,19 @@ temp
|
|
|
2755
2755
|
spinner.succeed('Frontend files reset completed.');
|
|
2756
2756
|
}
|
|
2757
2757
|
async resetDevelopmentEnvironment(cwd, verbose = false) {
|
|
2758
|
+
const hedhogJsonPath = pathModule.join(cwd, 'hedhog.json');
|
|
2759
|
+
if ((0, fs_1.existsSync)(hedhogJsonPath)) {
|
|
2760
|
+
try {
|
|
2761
|
+
const hedhogJson = JSON.parse(await (0, promises_1.readFile)(hedhogJsonPath, 'utf-8'));
|
|
2762
|
+
if (hedhogJson.lockReset === true) {
|
|
2763
|
+
console.error(chalk.red('Reset is locked for this project. Remove or set "lockReset": false in hedhog.json to proceed.'));
|
|
2764
|
+
return;
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
catch {
|
|
2768
|
+
// Se o arquivo não puder ser lido/parseado, prossegue normalmente
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2758
2771
|
const restoreWarnings = this.suppressWarnings();
|
|
2759
2772
|
this.verbose = verbose;
|
|
2760
2773
|
const spinner = ora('Resetting development environment...').start();
|