Skip to content

Commit

Permalink
vx: remove custom options from build
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Apr 2, 2022
1 parent 9fbc53a commit 2c8e73b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions vx/commands/build.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const buildPackage = require('vx/scripts/build/buildPackage');
const runOnActivePackages = require('vx/util/runOnActivePackages');

function build({ options }) {
runOnActivePackages(buildPackage, { options });
function build(options = {}) {
runOnActivePackages(buildPackage, options);
}

module.exports = build;
9 changes: 2 additions & 7 deletions vx/scripts/build/buildPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const opts = require('vx/opts');
const { usePackage } = require('vx/vxContext');
const vxPath = require('vx/vxPath');

function buildPackage({ options } = {}) {
function buildPackage(options = {}) {
const name = usePackage();
logger.info(`🛠 Building package: ${name}`);

Expand All @@ -23,12 +23,7 @@ function buildPackage({ options } = {}) {
}

builds.forEach(format => {
exec([
`rollup -c`,
vxPath.ROLLUP_CONFIG_PATH,
options,
`--format=${format}`,
]);
exec([`rollup -c`, vxPath.ROLLUP_CONFIG_PATH, `--format=${format}`]);
});
delete process.env.VX_PACKAGE_NAME;
delete process.env.VX_BUILD_SINGLE;
Expand Down

1 comment on commit 2c8e73b

@vercel
Copy link

@vercel vercel bot commented on 2c8e73b Apr 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vest-next – ./website

vest-next-ealush.vercel.app
vest-website.vercel.app
vest-next-git-latest-ealush.vercel.app
vest-next.vercel.app

Please sign in to comment.