Skip to content

Commit

Permalink
Remove atomTransilers from package.json after transpiling in-place
Browse files Browse the repository at this point in the history
  • Loading branch information
BinaryMuse committed May 18, 2017
1 parent 11c1151 commit 8528021
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions script/lib/transpile-packages-with-custom-transpiler-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ module.exports = function () {
pathsToCompile.forEach(transpilePath)
}

// Now that we've transpiled everything in-place, we no longer want Atom to try to transpile
// the same files when they're being required.
delete metadata.atomTranspilers
fs.writeFileSync(metadataPath, JSON.stringify(metadata, null, ' '), 'utf8')

CompileCache.removeTranspilerConfigForPath(intermediatePackagePath)
rootPackageBackup.restore()
intermediatePackageBackup.restore()
Expand Down

0 comments on commit 8528021

Please sign in to comment.