mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-21 21:09:49 +08:00
<!--
Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md
-->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Prepares `@hexclave/shared-backend` for npm publishing with a proper
build, dual ESM/CJS exports, and bundled types. Also simplifies an
import parsing helper for safer matching.
- New Features
- Configure build with `tsdown`; output CJS/ESM and `.d.ts` to `dist/`
and `dist/esm/`.
- Add export map for `.` and `./config-agent` with `require` and
`default` entries plus types.
- Update publish settings: set `main`/`types` to built files, include
only `dist`, exclude tests, and add `build`, `dev`, `clean` scripts.
- Add repository field and `tsdown.config.ts`.
- Bug Fixes
- Simplified import specifier parsing in `src/index.ts` to push matches
directly and remove unnecessary error throwing.
<sup>Written for commit 9f18bc019a.
Summary will update on new commits.</sup>
<a
href="https://cubic.dev/pr/hexclave/hexclave/pull/1598?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
|
"name": "@hexclave/shared-backend",
|
|
"version": "1.0.17",
|
|
"repository": "https://github.com/hexclave/hexclave",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"require": {
|
|
"default": "./dist/index.js"
|
|
},
|
|
"default": "./dist/esm/index.js"
|
|
},
|
|
"./config-agent": {
|
|
"types": "./dist/config-agent.d.ts",
|
|
"require": {
|
|
"default": "./dist/config-agent.js"
|
|
},
|
|
"default": "./dist/esm/config-agent.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "rimraf dist && tsdown",
|
|
"clean": "rimraf dist && rimraf node_modules",
|
|
"dev": "tsdown --watch",
|
|
"lint": "eslint --ext .tsx,.ts .",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"!dist/**/*.test.*",
|
|
"CHANGELOG.md",
|
|
"LICENSE"
|
|
],
|
|
"dependencies": {
|
|
"@anthropic-ai/claude-agent-sdk": "^0.2.73",
|
|
"@hexclave/shared": "workspace:*",
|
|
"jiti": "^2.4.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "20.17.6",
|
|
"typescript": "5.9.3"
|
|
},
|
|
"packageManager": "pnpm@11.5.0"
|
|
}
|