From 5c95151559e4c9152a4814d7f83a74841207278a Mon Sep 17 00:00:00 2001 From: andersnm Date: Tue, 30 Apr 2019 13:00:36 +0200 Subject: [PATCH] Fixed fast refresh --- packages/blerf/package.json | 2 +- packages/blerf/src/commands/build.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/blerf/package.json b/packages/blerf/package.json index d716f51..c973785 100644 --- a/packages/blerf/package.json +++ b/packages/blerf/package.json @@ -1,6 +1,6 @@ { "name": "blerf", - "version": "0.0.8", + "version": "0.0.9", "description": "Build tool for nodejs monorepos working alongside npm. Helps manage multiple projects in a solution.", "author": "andersnm", "license": "MIT", diff --git a/packages/blerf/src/commands/build.ts b/packages/blerf/src/commands/build.ts index 1dacf7f..e1fd59b 100644 --- a/packages/blerf/src/commands/build.ts +++ b/packages/blerf/src/commands/build.ts @@ -218,10 +218,10 @@ export class BuildEnumerator extends PackageEnumerator { const dependencyPath = path.join(packageInfo.packagePath, "node_modules", refreshProjectReference.name); this.rimraf(dependencyPath); - const sourceTarPath = path.join(this.artifactBuildPath, refreshProjectReference.name + ".tgz"); + const sourceTarPath = path.join(this.artifactBuildPath, refreshProjectReference.name + ".tgz"); fs.mkdirSync(dependencyPath, { recursive: true }); - tar.extract({ file: sourceTarPath, cwd: dependencyPath, sync: true, strip: 1, filter: (path: string, entry: any) => !path.endsWith("package.json") }); + tar.extract({ file: sourceTarPath, cwd: dependencyPath, sync: true, strip: 1 }); integrities[refreshProjectReference.name] = ssri.fromData(fs.readFileSync(sourceTarPath)); } @@ -251,7 +251,7 @@ export class BuildEnumerator extends PackageEnumerator { for (let dependencyName of Object.keys(integrities)) { const dep = packageLockJson.dependencies[dependencyName]; if (dep && dep.integrity) { - console.log("blerf: replacing integrity", dep.integrity, integrities[dependencyName]) + // console.log("blerf: replacing integrity", dep.integrity, integrities[dependencyName]) dep.integrity = integrities[dependencyName]; } }