chore: Prepare package for npm publication

This commit is contained in:
hyper
2026-07-09 16:23:40 +08:00
parent c071cad50a
commit 3a20e9558b
3 changed files with 40 additions and 11 deletions
+18 -10
View File
@@ -6,24 +6,32 @@
"bin": {
"tttk": "./dist/cli/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"exports": {
".": "./dist/index.js",
"./components": "./dist/components/index.js",
"./markdown": "./dist/markdown/index.js"
"files": [
"dist",
"LICENSE",
"README.md"
],
"repository": {
"type": "git",
"url": "https://github.com/hypercross/ttrpg-tools"
},
"engines": {
"node": ">=18"
},
"scripts": {
"dev": "rsbuild dev",
"build": "rsbuild build",
"build": "npm run build:web && npm run build:cli",
"build:web": "rsbuild build",
"build:cli": "tsc -p tsconfig.cli.json",
"preview": "rsbuild preview",
"analyze": "cross-env ANALYZE=true rsbuild build",
"cli:dev": "tsc -p tsconfig.cli.json --watch",
"cli:build": "tsc -p tsconfig.cli.json",
"cli:build": "npm run build:cli",
"ttrpg": "node --loader ts-node/esm ./src/cli/index.ts",
"tttk": "node --loader ts-node/esm ./src/cli/index.ts",
"test": "jest",
"prepare": "npx husky"
"prepare": "npx husky",
"prepublishOnly": "npm run build"
},
"keywords": [
"ttrpg",
@@ -31,7 +39,7 @@
"markdown",
"toolbox"
],
"author": "",
"author": "hypercross",
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^0.5.0",