Skip to content

Commit

Permalink
feat(build): include types generation in build make target
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Nov 5, 2020
1 parent d481cfe commit 39da664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ package-types-%: ##@1 packages build a package types
@-rm -rf ./packages/${*}/dist/tsconfig.tsbuildinfo
@yarn tsc -b ./packages/${*}

package-build-%: ##@1 packages build a package
package-build-%: package-types-% ##@1 packages build a package
@echo "${YELLOW}Building package ${WHITE}@nivo/${*}${RESET}"
@-rm -rf ./packages/${*}/dist
@export PACKAGE=${*}; NODE_ENV=production BABEL_ENV=production ./node_modules/.bin/rollup -c conf/rollup.config.js
Expand All @@ -202,7 +202,7 @@ packages-publish-next: ##@1 packages publish all packages for @next npm tag
@echo "${YELLOW}Publishing packages${RESET}"
@./node_modules/.bin/lerna publish --exact --npm-tag=next

package-watch-%: ##@1 packages build package (es flavor) on change, eg. `package-build-watch-bar`
package-watch-%: ##@1 packages build package (es flavor) on change, eg. `package-watch-bar`
@echo "${YELLOW}Running build watcher for package ${WHITE}@nivo/${*}${RESET}"
@rm -rf ./packages/${*}/cjs
@rm -rf ./packages/${*}/umd
Expand Down

0 comments on commit 39da664

Please sign in to comment.