@nu-art/build-and-install 0.204.51 → 0.204.52

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/package.json +1 -1
  2. package/phases/phases.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nu-art/build-and-install",
3
- "version": "0.204.51",
3
+ "version": "0.204.52",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "TacB0sS",
package/phases/phases.js CHANGED
@@ -303,7 +303,7 @@ exports.Phase_InstallGlobals = {
303
303
  mandatoryPhases: [exports.Phase_ResolveEnv],
304
304
  filter: async () => params_1.RuntimeParams.installGlobals,
305
305
  action: async () => {
306
- const globalPackages = 'firebase-tools@latest ts-node@latest typescript@latest eslint@^8.0.0';
306
+ const globalPackages = 'firebase-tools@5.0.4 ts-node@latest typescript@latest eslint@^8.0.0';
307
307
  await nvm_1.NVM.createCommando().append(`npm i -g ${globalPackages}`).execute();
308
308
  }
309
309
  };
@@ -405,8 +405,6 @@ exports.Phase_PrepareCompile = {
405
405
  .append(`ENV=${params_1.RuntimeParams.environment} npm run build`);
406
406
  }
407
407
  else {
408
- if (fs.existsSync(pkg.output))
409
- await fs_1.promises.rm(pkg.output, { recursive: true, force: true });
410
408
  try {
411
409
  const otherFiles = [
412
410
  'json',
@@ -465,6 +463,8 @@ exports.Phase_Compile = {
465
463
  const packages = consts_1.MemKey_Packages.get();
466
464
  if (pkg.type === 'sourceless' || pkg.type === types_1.PackageType_Python)
467
465
  return;
466
+ if (fs.existsSync(pkg.output))
467
+ await fs_1.promises.rm(pkg.output, { recursive: true, force: true });
468
468
  const folder = 'main';
469
469
  const sourceFolder = `${pkg.path}/src/${folder}`;
470
470
  const pathToLocalTsConfig = `${sourceFolder}/${CONST_TS_Config}`;