chore: Prepare package for npm publication
This commit is contained in:
parent
c071cad50a
commit
3a20e9558b
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2025 TTTK contributors
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
28
package.json
28
package.json
|
|
@ -6,24 +6,32 @@
|
||||||
"bin": {
|
"bin": {
|
||||||
"tttk": "./dist/cli/index.js"
|
"tttk": "./dist/cli/index.js"
|
||||||
},
|
},
|
||||||
"main": "./dist/index.js",
|
"files": [
|
||||||
"module": "./dist/index.js",
|
"dist",
|
||||||
"exports": {
|
"LICENSE",
|
||||||
".": "./dist/index.js",
|
"README.md"
|
||||||
"./components": "./dist/components/index.js",
|
],
|
||||||
"./markdown": "./dist/markdown/index.js"
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/hypercross/ttrpg-tools"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "rsbuild dev",
|
"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",
|
"preview": "rsbuild preview",
|
||||||
"analyze": "cross-env ANALYZE=true rsbuild build",
|
"analyze": "cross-env ANALYZE=true rsbuild build",
|
||||||
"cli:dev": "tsc -p tsconfig.cli.json --watch",
|
"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",
|
"ttrpg": "node --loader ts-node/esm ./src/cli/index.ts",
|
||||||
"tttk": "node --loader ts-node/esm ./src/cli/index.ts",
|
"tttk": "node --loader ts-node/esm ./src/cli/index.ts",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"prepare": "npx husky"
|
"prepare": "npx husky",
|
||||||
|
"prepublishOnly": "npm run build"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"ttrpg",
|
"ttrpg",
|
||||||
|
|
@ -31,7 +39,7 @@
|
||||||
"markdown",
|
"markdown",
|
||||||
"toolbox"
|
"toolbox"
|
||||||
],
|
],
|
||||||
"author": "",
|
"author": "hypercross",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@modelcontextprotocol/sdk": "^0.5.0",
|
"@modelcontextprotocol/sdk": "^0.5.0",
|
||||||
|
|
|
||||||
|
|
@ -18,5 +18,5 @@
|
||||||
"types": ["node", "jest"],
|
"types": ["node", "jest"],
|
||||||
},
|
},
|
||||||
"include": ["src/**/*"],
|
"include": ["src/**/*"],
|
||||||
"exclude": ["node_modules", "dist"],
|
"exclude": ["node_modules", "dist", "src/cli"],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue