fix string.replace (for #167239) (#167259)

This commit is contained in:
Martin Aeschlimann 2022-11-25 15:45:57 +01:00 committed by GitHub
parent a2a90a4e76
commit 86ff830c3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -76,7 +76,7 @@ function fromLocal(extensionPath: string, forWeb: boolean): Stream {
delete data.dependencies;
delete data.devDependencies;
if (data.main) {
data.main = data.main.replace('/out/', /dist/);
data.main = data.main.replace('/out/', '/dist/');
}
return data;
});