Files
bookmarkmagic/package.json
T
poli0981andClaude Opus 5.5 779335802a build(firefox): a second package, MV3, held to its own manifest gate
wxt.config.ts now builds for the target browser (docs/08 §1, §9):

- `manifestVersion: 3` for every target — WXT built Firefox as MV2;
- Firefox gets browser_specific_settings.gecko — the permanent id
  bookmarkmagic@poli0981.dev, strict_min_version 140.0 (the first that
  accepts data_collection_permissions, which AMO requires of new add-ons),
  and data_collection_permissions { required: ["none"] } — and no
  minimum_chrome_version; Chrome keeps its floor of 136;
- Vite targets firefox140 for that package;
- the sources archive AMO reviews leaves out coverage, captures, store copy,
  docs, tests and tools.

Permissions, CSP, pages and icons are identical in both packages.
check-manifest.mjs takes --browser chrome|firefox, mapped through a fixed
table to .output/<target>-mv3 (still no path from the command line), and
pins each package's exact key set and floor; the gecko block is compared key
order aside. New npm scripts: build:firefox, zip:firefox; verify:full builds
and checks both packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:10:35 +07:00

58 lines
2.0 KiB
JSON

{
"name": "bookmarkmagic",
"private": true,
"version": "1.2.1",
"type": "module",
"description": "Import, export & edit bookmarks between browsers — offline, no account, no cloud.",
"license": "GPL-3.0-or-later",
"author": "skullmute (poli0981)",
"homepage": "https://github.com/poli0981/bookmarkmagic",
"repository": {
"type": "git",
"url": "git+https://github.com/poli0981/bookmarkmagic.git"
},
"bugs": {
"url": "https://github.com/poli0981/bookmarkmagic/issues"
},
"engines": {
"node": ">=26"
},
"scripts": {
"postinstall": "wxt prepare",
"dev": "wxt",
"dev:firefox": "wxt -b firefox",
"build": "wxt build",
"build:firefox": "wxt build -b firefox",
"zip": "wxt zip",
"zip:firefox": "wxt zip -b firefox",
"check": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings && tsc --noEmit && tsc -p tsconfig.scripts.json",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"knip": "knip",
"guard": "node scripts/guard.mjs",
"check:manifest": "node scripts/check-manifest.mjs",
"check:licenses": "node scripts/check-licenses.mjs",
"icons": "node scripts/gen-icons.mjs",
"test": "vitest run",
"test:watch": "vitest",
"coverage": "vitest run --coverage",
"verify": "npm run lint && npm run check && npm run knip && npm run guard && npm run check:licenses && npm run test",
"verify:full": "npm run verify && npm run coverage && npm run build && npm run check:manifest && npm run build:firefox && npm run check:manifest -- --browser firefox"
},
"devDependencies": {
"@biomejs/biome": "2.6.6",
"@sveltejs/vite-plugin-svelte": "^7.3.1",
"@types/node": "^26.6.6",
"@typescript/native": "npm:typescript@~7.0.2",
"@vitest/coverage-v8": "^5.1.0",
"@wxt-dev/module-svelte": "^2.0.5",
"jsdom": "^31.0.0",
"knip": "^6.44.2",
"svelte": "^5.57.3",
"svelte-check": "^4.7.8",
"typescript": "npm:@typescript/typescript6@~6.0.2",
"vitest": "^5.1.0",
"wxt": "^0.21.5"
}
}