fix: install.sh always fetches latest git deps before build
rm -rf node_modules/@clawd before npm install ensures auth-runtime is always at the latest remote version, not cached. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
850bc75046
commit
2e23d74701
|
|
@ -13,8 +13,11 @@ DEST="${1:-$HOME/.openclaw/skills}"
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
# Always fetch latest git dependencies
|
||||||
|
rm -rf node_modules/@clawd
|
||||||
|
npm install
|
||||||
|
|
||||||
echo "Building $SKILL_NAME..."
|
echo "Building $SKILL_NAME..."
|
||||||
bun install --frozen-lockfile
|
|
||||||
bun build scripts/run.ts --outfile dist/run.js --target bun
|
bun build scripts/run.ts --outfile dist/run.js --target bun
|
||||||
|
|
||||||
mkdir -p "$DEST/$SKILL_NAME"
|
mkdir -p "$DEST/$SKILL_NAME"
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,6 @@
|
||||||
"package": "bun run build && cd .. && zip -r 1688-product-master.skill 1688-product-master/SKILL.md 1688-product-master/dist/run.js && echo 'Created: 1688-product-master.skill'"
|
"package": "bun run build && cd .. && zip -r 1688-product-master.skill 1688-product-master/SKILL.md 1688-product-master/dist/run.js && echo 'Created: 1688-product-master.skill'"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@clawd/auth-runtime": "git+http://192.168.0.108:3030/agent-skills/auth-runtime.git#v1.1.0"
|
"@clawd/auth-runtime": "git+http://192.168.0.108:3030/agent-skills/auth-runtime.git"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue