Fixed typos and other improvements per code review

This commit is contained in:
placatus 2019-03-01 00:01:35 +02:00
parent 292108c5ee
commit 6c73d7f708
4 changed files with 22 additions and 14 deletions

View file

@ -58,9 +58,8 @@ function bundleOne(moduleId, exclude) {
}
function updateImports(moduleId) {
console.log(`ESM: updating relative imports paths for ${moduleId}...`);
const filePath = path.join(REPO_ROOT, 'release/esm/' + moduleId + '.js');
var fileContents = fs.readFileSync(filePath).toString();
let fileContents = fs.readFileSync(filePath).toString();
fileContents = fileContents.replace(/vs\/basic-languages\//g, "../../basic-languages/");
fs.writeFileSync(filePath, fileContents);
}