Skip to content

Commit

Permalink
feat: use rimraf for clean
Browse files Browse the repository at this point in the history
  • Loading branch information
rosmcmahon committed Feb 21, 2025
1 parent a8c146e commit 08d8430
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ jobs:
- name: Setup bun
uses: oven-sh/setup-bun@v1

- name: Install
run: bun install --frozen-lockfile

- name: Clean
shell: pwsh
run: make clean-cp
run: make clean

- name: Build
run: make build
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ else
endif


clean:
clean-bash:
@for dir in $(DIRS_TO_REMOVE); do \
rm -rf "$$dir" 2>/dev/null; \
done

clean:
@npx -y rimraf $(DIRS_TO_REMOVE)

# cross platform pwsh
clean-cp:
@pwsh -Command 'if(Test-Path $(OUTPUT_DIR)){Remove-Item -Force -Recurse $(OUTPUT_DIR)}'
Expand Down Expand Up @@ -99,7 +102,6 @@ build-container:
@docker build -f libsecp256k1/Dockerfile . -t $(LIBSECP256K1_BUILDER_TAG)

build: $(OUTPUT_DIR) $(LIBSECP256K1.JS) $(LIBSECP256K1.WASM) $(LIBSECP256K1.GLUE) $(OUTPUT_DIR)/secp256k1.js $(OUTPUT_DIR)/secp256k1.wasm
@bun install --frozen-lockfile
@bun run build

publish:
Expand Down
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@typescript-eslint/parser": "^8.19.0",
"eslint": "^9.17.0",
"eslint-plugin-unused-imports": "^4.1.4",
"rimraf": "^6.0.1",
"rollup": "^4.29.1",
"tslib": "^2.8.1",
"typescript": "^5.7.2"
Expand Down

0 comments on commit 08d8430

Please sign in to comment.