feat: vendor permission system source

This commit is contained in:
云服务部-叶林立
2026-08-19 14:35:19 +08:00
parent 198584daf8
commit 410c50a3e5
809 changed files with 157793 additions and 139 deletions
@@ -0,0 +1,18 @@
import { dts } from "rollup-plugin-dts";
// Roll the public type surface into a self-contained declaration bundle.
// We ship .ts source, so we want only .d.ts — no JS emit.
// Internal #src/* modules are inlined; peer-dependency types are kept external.
const external = [/^@earendil-works\//, /^node:/];
export default [
// . entry: cross-extension service contract (Symbol.for() accessors,
// PermissionsService, permission-events types and channel constants)
{
input: "src/service.ts",
output: { file: "dist/public.d.ts", format: "es" },
external,
plugins: [dts({ tsconfig: "./tsconfig.json" })],
},
];