mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Mkdir with directory
This commit is contained in:
parent
0cbe73c527
commit
2df2b4c53d
1 changed files with 3 additions and 2 deletions
|
@ -30,7 +30,8 @@ class BuildManifest {
|
|||
}
|
||||
|
||||
apply(compiler) {
|
||||
const distManifestFile = path.resolve(__dirname, "../dist/manifest.json");
|
||||
const distFolder = path.resolve(__dirname, "../dist/");
|
||||
const distManifestFile = path.resolve(distFolder, "manifest.json");
|
||||
|
||||
// Add missing manifest elements
|
||||
if (this.options.browser.toLowerCase() === "firefox") {
|
||||
|
@ -42,7 +43,7 @@ class BuildManifest {
|
|||
let result = JSON.stringify(manifest);
|
||||
if (this.options.pretty) result = JSON.stringify(manifest, null, 2);
|
||||
|
||||
fs.mkdirSync(distManifestFile, {recursive: true});
|
||||
fs.mkdirSync(distFolder, {recursive: true});
|
||||
fs.writeFileSync(distManifestFile, result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue