Skip to content

Commit

Permalink
Fixed fast refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
andersnm committed Apr 30, 2019
1 parent a63bb99 commit 5c95151
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/blerf/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/blerf/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down Expand Up @@ -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];
}
}
Expand Down

0 comments on commit 5c95151

Please sign in to comment.