diff --git a/.github/workflows/node-version-bump.yml b/.github/workflows/node-version-bump.yml index 9c1dcd3..e8484f4 100644 --- a/.github/workflows/node-version-bump.yml +++ b/.github/workflows/node-version-bump.yml @@ -36,6 +36,7 @@ jobs: run: | npm run "bump:${{ inputs.increment }}" for PACKAGE in packages/chdman-*; do + # shellcheck disable=SC2005 echo "$(jq '. + (input|{description,keywords,homepage,bugs,license,author,funding,repository,publishConfig})' "${PACKAGE}/package.json" packages/chdman/package.json)" > "${PACKAGE}/package.json" done git add --all diff --git a/packages/chdman/package.json b/packages/chdman/package.json index c37f711..0ec726c 100644 --- a/packages/chdman/package.json +++ b/packages/chdman/package.json @@ -26,7 +26,7 @@ ], "main": "dist/index.js", "bin": { - "chdman": "./dist/src/bin.js" + "chdman": "dist/src/bin.js" }, "repository": { "type": "git", @@ -37,6 +37,7 @@ "provenance": true }, "scripts": { + "postinstall": "node --eval \"if(require('fs').existsSync('dist')===false){process.exit(1);}\" || npm run build", "start": "node --loader ts-node/esm src/bin.ts", "build": "tsc --build --verbose && node --eval \"if(process.platform!=='win32'){process.exit(1);}\" || chmod +x dist/index.js", "lint": "eslint .",