leave upload path as /dist/

This commit is contained in:
Johannes Rieken
2018-08-13 20:40:22 +02:00
parent bb07163524
commit 06139b43d4
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ function fromLocal(extensionPath, sourceMappingURLBase) {
if (sourceMappingURLBase) {
var contents = data.contents.toString('utf8');
data.contents = Buffer.from(contents.replace(/\n\/\/# sourceMappingURL=(.*)$/gm, function (_m, g1) {
return "\n//# sourceMappingURL=" + sourceMappingURLBase + "/extensions/" + path.basename(extensionPath) + "/out/" + g1;
return "\n//# sourceMappingURL=" + sourceMappingURLBase + "/extensions/" + path.basename(extensionPath) + "/dist/" + g1;
}), 'utf8');
if (/\.js\.map$/.test(data.path)) {
if (!fs.existsSync(path.dirname(data.path))) {