Skip to content

Commit

Permalink
chore: Update clean make target (#838)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Lewis <[email protected]>
  • Loading branch information
Ian Lewis authored Oct 4, 2023
1 parent 98a4ff6 commit 322b6f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,9 @@ yamllint: ## Runs the yamllint linter.

.PHONY: clean
clean: ## Delete temporary files.
rm -rf vendor node_modules
rm -rf vendor node_modules coverage.out
@set -e;\
PATHS=$$(find actions/ -not -path '*/node_modules/*' -name package.json -type f | xargs dirname); \
for path in $$PATHS; do \
make -C $$path clean; \
done
4 changes: 3 additions & 1 deletion actions/issue-reopener/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,17 @@ node_modules/.installed: package.json package-lock.json

.PHONY: action
action: node_modules/.installed ## Builds the action.
rm -rf lib
npm run build

.PHONY: package
package: action ## Builds the distribution package.
rm -rf dist
npm run package

.PHONY: clean
clean:
rm -rf dist lib node_modules
rm -rf lib node_modules coverage

## Tools
#####################################################################
Expand Down

0 comments on commit 322b6f2

Please sign in to comment.