Skip to content

Commit

Permalink
chore(clang-format-node): add chmod command to package.json's `po…
Browse files Browse the repository at this point in the history
…st`, `pre` scripts (#78)
  • Loading branch information
lumirlumir authored Nov 5, 2024
1 parent 15b28e7 commit 83aae8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test-cross-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ jobs:
- name: Build
run: npm run build

- name: Chmod
run: npx lerna run postinstall

- name: Debug Permission
if: runner.os != 'Windows'
run: ls -alR packages/clang-format-node/build/bin
Expand Down
8 changes: 5 additions & 3 deletions packages/clang-format-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
"node": ">=16"
},
"scripts": {
"postinstall": "find ./build/bin -type f -exec chmod 755 {} + || true",
"postinstall": "npm run chmod",
"prepublishOnly": "npm run build",
"build": "npx babel src -d build --ignore **/*.test.js && cp -r src/bin build && cp ../../LICENSE ../../README.md .",
"pretest": "find ./src/bin -type f -exec chmod 755 {} + || true",
"test": "node --test"
"postbuild": "npm run chmod",
"pretest": "npm run chmod",
"test": "node --test",
"chmod": "find ./src/bin ./build/bin -type f -exec chmod 755 {} + || true"
}
}

0 comments on commit 83aae8c

Please sign in to comment.