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:
+7
-1
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user