Skip to content
Permalink
Browse files

[js] Set better execname in npm'able rakudo.js

  • Loading branch information...
pmurias committed Oct 31, 2018
1 parent 0e4969f commit 9df074ba3334e1b12716d7075a04444e647a0a97
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/vm/js/make-release.js
@@ -30,6 +30,9 @@ function prepare(oldPath, newPath) {
contents = contents.replace('nqp.libpath(["' + path.join(rakudoPath, "node_modules/") + '","' + path.join(nqpInstallPath, "share/nqp/lib/nqp-js-on-js/") + '"]);', 'nqp.libpath([{module: module, prefix:\'.\/\'}, {module: module, prefix:\'nqp-js-on-js/\'}]);\n');

contents = contents.replace('nqp.extraRuntime(\'perl6\', "' + path.join(rakudoPath, "src/vm/js/perl6-runtime") + '")', 'nqp.extraRuntime(\'perl6\', module);');

contents = contents.replace('nqp.execname("' + path.join(rakudoPath, "perl6-js") + '")', 'nqp.execname(module.filename, true)');

fs.writeFileSync(newPath, contents);
}

0 comments on commit 9df074b

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