mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
chore(dsh-plugin-browserskill): prepare the package for npm publishing
- @browser-skill/ui and @remixicon/react move to devDependencies (the client bundle inlines both; the host face never imports them — verified). - Drop private, add license: MIT, ship the repo-root MIT LICENSE in files. - peerDependencies: add the runtime-required @deepseek-ai/schemastery, and the previously dangling meta entries @deepseek-ai/dsh-attachment and @deepseek-ai/dsh-llm (optional, matching actual type-level use). - prepack runs the full build; npm pack now yields exactly 7 files (lib/index.mjs, lib/index.d.mts, lib/client.cjs, cordis.patch.yml, README.md, LICENSE, package.json). - publint clean: the client face ships as lib/client.cjs (CJS extension in a type:module package); add lint:publint script. Built declarations pass a NodeNext consumer typecheck (strict, skipLibCheck false).
This commit is contained in:
1 parent
43ebfab7ba
commit
51df868008
4 files changed
+39
-15
No files matched your search
@@ -6,7 +6,7 @@ import { defineConfig, type UserConfig } from "tsdown";
|
||||
/**
|
||||
* Two build faces of the dual-face package:
|
||||
* - host: the Cordis tool plugin (lib/index.mjs, ESM, dsh packages external);
|
||||
* - client: the Web UI bundle (lib/client.js) in dsh's closure-factory shape —
|
||||
* - client: the Web UI bundle (lib/client.cjs, CJS in a type:module package) in dsh's closure-factory shape —
|
||||
* the artifact registers itself through `window.__ModuleLoader__.load`, with
|
||||
* platform modules resolved from the loader's frozen module table and every
|
||||
* other dependency inlined. Mirrors deepseek-harness `packages/client/tsdown.client.ts`.
|
||||
@@ -108,7 +108,7 @@ const client: UserConfig = {
|
||||
},
|
||||
],
|
||||
outputOptions: {
|
||||
entryFileNames: "client.js",
|
||||
entryFileNames: "client.cjs",
|
||||
banner: `window.__ModuleLoader__.load({ id: ${JSON.stringify(CLIENT_ID)}, factory: (require) => {`,
|
||||
footer: "return module.exports; } });",
|
||||
intro: "var module = { exports: {} }; var exports = module.exports;",
|
||||
|
||||
Reference in new issue
Block a user