feat: npx/git-install support — prepare script + files whitelist

prepare builds dist on git-clone installs (npx/npm i -g from the gitea
URL); files whitelist overrides .gitignore so dist ships in the pack.
This commit is contained in:
yeuimu
2026-09-23 04:33:17 +00:00
parent 73e189fd97
commit b4d83f4f58
+7 -1
View File
@@ -15,12 +15,18 @@
"inkreach-teable": "./dist/bin.js" "inkreach-teable": "./dist/bin.js"
}, },
"main": "dist/bin.js", "main": "dist/bin.js",
"files": [
"dist",
"skills",
"docs"
],
"scripts": { "scripts": {
"build": "tsc -p tsconfig.build.json", "build": "tsc -p tsconfig.build.json",
"dev": "tsc -p tsconfig.build.json --watch", "dev": "tsc -p tsconfig.build.json --watch",
"typecheck": "tsc -p tsconfig.json --noEmit", "typecheck": "tsc -p tsconfig.json --noEmit",
"test": "vitest run", "test": "vitest run",
"clean": "rimraf dist tsconfig.build.tsbuildinfo" "clean": "rimraf dist tsconfig.build.tsbuildinfo",
"prepare": "npm run build"
}, },
"dependencies": { "dependencies": {
"commander": "^12.1.0" "commander": "^12.1.0"