Skip to content

Commit

Permalink
cleanup(core): remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Apr 3, 2024
1 parent 3cd80ea commit 6809bb7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/nx/src/native/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,12 @@ Module._load = function (request, parent, isMain) {
.digest('hex');
const tmpFile = join(nativeFileCacheLocation, hash + '-' + fileName);
if (existsSync(tmpFile)) {
console.log('file already exists @', tmpFile);
return originalLoad.apply(this, [tmpFile, parent, isMain]);
}
if (!existsSync(nativeFileCacheLocation)) {
mkdirSync(nativeFileCacheLocation, { recursive: true });
}
copyFileSync(nativeLocation, tmpFile);
console.log('copied sucessfully, loading from', tmpFile);
return originalLoad.apply(this, [tmpFile, parent, isMain]);
} else {
return originalLoad.apply(this, arguments);
Expand Down

0 comments on commit 6809bb7

Please sign in to comment.