Skip to content
Permalink
Browse files

[js] Include source maps in rakudo releases

  • Loading branch information...
pmurias committed Oct 29, 2018
1 parent 9457f7e commit ea69c0a0ac14f294d03ccfa8076ec81a179459cf
Showing with 12 additions and 5 deletions.
  1. +12 −5 src/vm/js/make-release.js
@@ -34,13 +34,20 @@ function prepare(oldPath, newPath) {
}

for (const file of fs.readdirSync(precompiledPerl6)) {
if (!/\.js$/.test(file)) continue;

const oldPath = path.join(precompiledPerl6, file);
const newPath = path.join(releaseDir, file);
prepare(oldPath, newPath);
if (/\.js$/.test(file)) {
const oldPath = path.join(precompiledPerl6, file);
const newPath = path.join(releaseDir, file);
prepare(oldPath, newPath);
} else if (/\.map$/.test(file)) {
const oldPath = path.join(precompiledPerl6, file);
const newPath = path.join(releaseDir, file);
fs.copyFileSync(oldPath, newPath);
} else {
console.log('skipping', file);
}
}

fs.copyFileSync('rakudo.js.map', path.join(releaseDir, 'rakudo.js.map'));
prepare('rakudo.js', path.join(releaseDir, 'rakudo.js'));

fs.copyFileSync('src/vm/js/rakudo-library.js', path.join(releaseDir, 'rakudo-library.js'));

0 comments on commit ea69c0a

Please sign in to comment.
You can’t perform that action at this time.