Skip to content

Commit

Permalink
Add $schema support in web extension manifest (#7975)
Browse files Browse the repository at this point in the history
  • Loading branch information
101arrowz committed Apr 20, 2022
1 parent 7d2568d commit a389964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -43,6 +43,7 @@ async function collectDependencies(
const filePath = asset.filePath;
const assetDir = path.dirname(filePath);
const isMV2 = program.manifest_version == 2;
delete program.$schema;
if (program.default_locale) {
const locales = path.join(assetDir, '_locales');
let err = !(await fs.exists(locales))
Expand Down
2 changes: 2 additions & 0 deletions packages/transformers/webextension/src/schema.js
Expand Up @@ -76,6 +76,7 @@ const warBase = {
};

const commonProps = {
$schema: string,
name: string,
version: {
type: 'string',
Expand Down Expand Up @@ -496,6 +497,7 @@ export const MV2Schema = ({
export const VersionSchema = ({
type: 'object',
properties: {
$schema: string,
manifest_version: {
type: 'number',
enum: [2, 3],
Expand Down

0 comments on commit a389964

Please sign in to comment.