From 28b35e7f84efe76938d381c91885bba0f684e64d Mon Sep 17 00:00:00 2001 From: Caven Date: Sun, 31 Mar 2024 11:35:17 +0800 Subject: [PATCH 1/2] chore: bump @types/chrome in templates to 0.0.263 --- template/base/package.json | 7 +++++-- template/config/manifestV2+3/src/manifest.js | 4 +++- template/config/manifestV2/src/manifest.js | 4 +++- template/config/manifestV3/src/manifest.js | 4 +++- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/template/base/package.json b/template/base/package.json index 63feb83..152ef27 100644 --- a/template/base/package.json +++ b/template/base/package.json @@ -1,7 +1,10 @@ { "name": "vite-web-extension", "displayName": "Vite Web Extension", - "author": "@samrum/vite-plugin-web-extension", + "author": { + "name": "@samrum/vite-plugin-web-extension", + "email": "dev@rubenmedina.com" + }, "version": "1.0.0", "description": "A @samrum/vite-plugin-web-extension web extension", "type": "module", @@ -15,7 +18,7 @@ "license": "MIT", "devDependencies": { "@samrum/vite-plugin-web-extension": "^5.0.0", - "@types/chrome": "^0.0.254", + "@types/chrome": "^0.0.263", "@types/webextension-polyfill": "^0.10.6", "vite": "^5.0.0", "web-ext": "^7.8.0" diff --git a/template/config/manifestV2+3/src/manifest.js b/template/config/manifestV2+3/src/manifest.js index 9e2c74b..754491c 100644 --- a/template/config/manifestV2+3/src/manifest.js +++ b/template/config/manifestV2+3/src/manifest.js @@ -61,7 +61,9 @@ const ManifestV3 = { export function getManifest(manifestVersion) { const manifest = { - author: pkg.author, + author: { + email: pkg.author.email, + }, description: pkg.description, name: pkg.displayName ?? pkg.name, version: pkg.version, diff --git a/template/config/manifestV2/src/manifest.js b/template/config/manifestV2/src/manifest.js index e2e591a..aac6894 100644 --- a/template/config/manifestV2/src/manifest.js +++ b/template/config/manifestV2/src/manifest.js @@ -42,7 +42,9 @@ const manifest = { export function getManifest() { return { - author: pkg.author, + author: { + email: pkg.author.email, + }, description: pkg.description, name: pkg.displayName ?? pkg.name, version: pkg.version, diff --git a/template/config/manifestV3/src/manifest.js b/template/config/manifestV3/src/manifest.js index 7e6b6fd..a239832 100644 --- a/template/config/manifestV3/src/manifest.js +++ b/template/config/manifestV3/src/manifest.js @@ -40,7 +40,9 @@ const manifest = { export function getManifest() { return { - author: pkg.author, + author: { + email: pkg.author.email, + }, description: pkg.description, name: pkg.displayName ?? pkg.name, version: pkg.version, From b9f58d56f7e978a525c7500394b0df066644c6c4 Mon Sep 17 00:00:00 2001 From: Caven Date: Thu, 4 Apr 2024 22:24:46 +0800 Subject: [PATCH 2/2] feat(template/config): remove the author field from the manifest --- template/base/package.json | 5 +---- template/config/manifestV2+3/src/manifest.js | 3 --- template/config/manifestV2/src/manifest.js | 3 --- template/config/manifestV3/src/manifest.js | 3 --- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/template/base/package.json b/template/base/package.json index 152ef27..f7c0a68 100644 --- a/template/base/package.json +++ b/template/base/package.json @@ -1,10 +1,7 @@ { "name": "vite-web-extension", "displayName": "Vite Web Extension", - "author": { - "name": "@samrum/vite-plugin-web-extension", - "email": "dev@rubenmedina.com" - }, + "author": "@samrum/vite-plugin-web-extension", "version": "1.0.0", "description": "A @samrum/vite-plugin-web-extension web extension", "type": "module", diff --git a/template/config/manifestV2+3/src/manifest.js b/template/config/manifestV2+3/src/manifest.js index 754491c..fbfbb12 100644 --- a/template/config/manifestV2+3/src/manifest.js +++ b/template/config/manifestV2+3/src/manifest.js @@ -61,9 +61,6 @@ const ManifestV3 = { export function getManifest(manifestVersion) { const manifest = { - author: { - email: pkg.author.email, - }, description: pkg.description, name: pkg.displayName ?? pkg.name, version: pkg.version, diff --git a/template/config/manifestV2/src/manifest.js b/template/config/manifestV2/src/manifest.js index aac6894..ee1b886 100644 --- a/template/config/manifestV2/src/manifest.js +++ b/template/config/manifestV2/src/manifest.js @@ -42,9 +42,6 @@ const manifest = { export function getManifest() { return { - author: { - email: pkg.author.email, - }, description: pkg.description, name: pkg.displayName ?? pkg.name, version: pkg.version, diff --git a/template/config/manifestV3/src/manifest.js b/template/config/manifestV3/src/manifest.js index a239832..cc460b9 100644 --- a/template/config/manifestV3/src/manifest.js +++ b/template/config/manifestV3/src/manifest.js @@ -40,9 +40,6 @@ const manifest = { export function getManifest() { return { - author: { - email: pkg.author.email, - }, description: pkg.description, name: pkg.displayName ?? pkg.name, version: pkg.version,