Skip to content

Commit

Permalink
fix Chrome manifest copy to build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascurti committed Jul 22, 2020
1 parent 6073901 commit bdc455a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/chrome/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
validatePluginConfiguration,
} from "@auto-it/core";
import * as fs from "fs";
import * as path from "path";
import { inc, ReleaseType, gte } from "semver";
import { promisify } from "util";
import * as t from "io-ts";
Expand Down Expand Up @@ -164,7 +165,10 @@ export default class ChromeWebStorePlugin implements IPlugin {
JSON.stringify(manifest, undefined, 2)
);

await copyFile(this.options.manifest, this.options.build);
await copyFile(
this.options.manifest,
path.join(this.options.build, "manifest.json")
);

// commit new version
await execPromise("git", ["add", this.options.manifest]);
Expand Down

0 comments on commit bdc455a

Please sign in to comment.