From e2059185ea34b3ed0a9dccf3bf3a3b0be53f5f0e Mon Sep 17 00:00:00 2001 From: plouc Date: Sat, 13 May 2023 18:47:13 +0900 Subject: [PATCH] fix(deploy): debugging vercel build --- Makefile | 7 +++++-- conf/rollup.config.mjs | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0ecc95d9a..4ae68e3d8 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 @@ -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 diff --git a/conf/rollup.config.mjs b/conf/rollup.config.mjs index edca6353a..950072672 100644 --- a/conf/rollup.config.mjs +++ b/conf/rollup.config.mjs @@ -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' @@ -56,7 +56,7 @@ const commonPlugins = [ modulesOnly: true, }), babel(babelConfig), - !isWatching && terser(), + // !isWatching && terser(), cleanup() ]