Skip to content

Commit

Permalink
fix(deploy): debugging vercel build
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed May 13, 2023
1 parent 911010f commit e205918
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ help: ##prints help

.PHONY: install
install: ##@0 global install
@pnpm install --frozen-lockfile
pnpm install --frozen-lockfile

.PHONY: init
init: ##@0 global cleanup/install/bootstrap
Expand Down Expand Up @@ -167,9 +167,11 @@ pkgs-test-cover: ##@1 packages run tests for all packages with code coverage
pkgs-build: pkgs-types ##@1 packages build all packages
@# Using exit code 255 in case of error as it'll make xargs stop immediately.
@# Skipping type generation as it's already done via `pkgs-types` in one go.
@# | xargs -I '{}' sh -c '$(MAKE) pkg-build-{} || exit 255'
@export SKIP_TYPES=TRUE; find ./packages -type d -maxdepth 1 ! -path ./packages \
| sed 's|^./packages/||' \
| xargs -I '{}' sh -c '$(MAKE) pkg-build-{} || exit 255'
| sort \
| xargs -I '{}' sh -c '$(MAKE) pkg-build-{}'
@echo "${GREEN}Packages built${RESET}"

.PHONY: pkgs-types
Expand All @@ -193,6 +195,7 @@ pkg-types-%: ##@1 packages generate types for a specific package
fi;

pkg-build-%: pkg-types-% ##@1 packages build a package
@echo "${YELLOW}Building package ${WHITE}@nivo/${*}${RESET}"
@-rm -rf ./packages/${*}/dist/nivo-${*}*
@export PACKAGE=${*}; NODE_ENV=production BABEL_ENV=production ./node_modules/.bin/rollup -c conf/rollup.config.mjs

Expand Down
4 changes: 2 additions & 2 deletions conf/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import stripBanner from 'rollup-plugin-strip-banner'
import cleanup from 'rollup-plugin-cleanup'
import size from 'rollup-plugin-size'
import { visualizer } from 'rollup-plugin-visualizer'
import terser from "@rollup/plugin-terser"
import terser from '@rollup/plugin-terser'

const pkg = process.env.PACKAGE
const isWatching = process.env.ROLLUP_WATCH === 'true'
Expand Down Expand Up @@ -56,7 +56,7 @@ const commonPlugins = [
modulesOnly: true,
}),
babel(babelConfig),
!isWatching && terser(),
// !isWatching && terser(),
cleanup()
]

Expand Down

0 comments on commit e205918

Please sign in to comment.