Files
zotero-notes-export-org/zotero-plugin.config.ts
T
Ignacio Ballesteros 8393cca8dd
CI / build (push) Successful in 21s
feat: add Zotero 10 support
Bump strict_max_version to 10.0.* and esbuild target to firefox140
(Zotero 9/10 Firefox 140 ESR base). Update docs accordingly.
2026-09-29 17:34:28 +02:00

35 lines
995 B
TypeScript

import { defineConfig } from "zotero-plugin-scaffold";
import pkg from "./package.json";
const GITEA_BASE = "https://gitea.bueso.eu/ignacio.ballesteros/zotero-notes-export-org";
export default defineConfig({
source: ["src", "addon"],
dist: ".scaffold/build",
name: pkg.config.addonName,
id: pkg.config.addonID,
namespace: pkg.config.addonRef,
// Explicit URLs are required because zotero-plugin-scaffold's URL parser
// only handles .com domains and cannot parse our self-hosted Gitea instance.
xpiDownloadLink: `${GITEA_BASE}/releases/download/v{{version}}/{{xpiName}}.xpi`,
updateURL: `${GITEA_BASE}/releases/download/release/{{updateJson}}`,
build: {
esbuildOptions: [
{
entryPoints: ["src/index.ts"],
bundle: true,
target: "firefox140",
outfile: ".scaffold/build/addon/content/scripts/index.js",
},
],
},
server: {
asProxy: true,
},
release: {
bumpp: {
execute: "npm run build",
},
},
});