diff --git a/scripts/prerelease_check.sh b/scripts/prerelease_check.sh index eb6e42a..2e61f7a 100755 --- a/scripts/prerelease_check.sh +++ b/scripts/prerelease_check.sh @@ -18,7 +18,7 @@ git_tag=$(git describe --tags --abbrev=0) package_version=$(get_json_version "./package.json") # Get the version from manifest.json -manifest_version=$(get_json_version "./manifest.json") +manifest_version=$(get_json_version "./src/manifest.json") # Get the version from dist/manifest.json dist_manifest_version=$(get_json_version "./dist/manifest.json") diff --git a/manifest.json b/src/manifest.json similarity index 55% rename from manifest.json rename to src/manifest.json index a5ef471..7269e3e 100644 --- a/manifest.json +++ b/src/manifest.json @@ -1,14 +1,22 @@ { "manifest_version": 3, "name": "QuickCite", - "version": "1.0", + "version": "1.0.0", "description": "Injects buttons on various sites to copy formatted information to clipboard", "author": { "email": "jon@jonfriesen.ca" }, "homepage_url": "https://quickcite.link", - "permissions": ["clipboardWrite", "webNavigation", "storage"], - "host_permissions": ["https://github.com/*", "https://www.instagram.com/*", "https://www.linkedin.com/*"], + "permissions": [ + "clipboardWrite", + "webNavigation", + "storage" + ], + "host_permissions": [ + "https://github.com/*", + "https://www.instagram.com/*", + "https://www.linkedin.com/*" + ], "action": { "default_popup": "src/popup/popup.html", "default_icon": { @@ -28,14 +36,26 @@ }, "content_scripts": [ { - "matches": ["https://github.com/*", "https://www.instagram.com/*", "https://www.linkedin.com/*"], - "js": ["src/content/content.js"] + "matches": [ + "https://github.com/*", + "https://www.instagram.com/*", + "https://www.linkedin.com/*" + ], + "js": [ + "src/content/content.js" + ] } ], "web_accessible_resources": [ { - "resources": ["assets/*"], - "matches": ["https://github.com/*", "https://www.instagram.com/*", "https://www.linkedin.com/*"] + "resources": [ + "assets/*" + ], + "matches": [ + "https://github.com/*", + "https://www.instagram.com/*", + "https://www.linkedin.com/*" + ] } ] } \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 18ea0a8..bfb4431 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,7 +2,7 @@ import { defineConfig } from 'vite' import { crx } from '@crxjs/vite-plugin' import tailwindcss from 'tailwindcss' import autoprefixer from 'autoprefixer' -import manifest from './manifest.json' +import manifest from './src/manifest.json' export default defineConfig({ plugins: [crx({ manifest })],