Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Do not delete coffeescript files for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingramz committed Sep 17, 2016
1 parent 2ed2121 commit bc0b498
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion script/lib/transpile-coffee-script-paths.js
Expand Up @@ -30,5 +30,4 @@ function getPathsToTranspile () {
function transpileCoffeeScriptPath (coffeePath) {
const jsPath = coffeePath.replace(/coffee$/g, 'js')
fs.writeFileSync(jsPath, CompileCache.addPathToCache(coffeePath, CONFIG.atomHomeDirPath))
fs.unlinkSync(coffeePath)
}
2 changes: 1 addition & 1 deletion src/compile-cache.js
Expand Up @@ -99,7 +99,7 @@ function writeCachedJavascript (relativeCachePath, code) {

function addSourceURL (jsCode, filePath) {
if (process.platform === 'win32') {
filePath = '/' + path.resolve(filePath).replace(/\\/g, '/')
filePath = 'file:///' + path.resolve(filePath).replace(/\\/g, '/')
}
return jsCode + '\n' + '//# sourceURL=' + encodeURI(filePath) + '\n'
}
Expand Down

0 comments on commit bc0b498

Please sign in to comment.