Skip to content

Commit

Permalink
build: use pnpm run instead of lerna run
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyyaaa committed Jun 21, 2024
1 parent ed19c8f commit fdbedca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ const shouldSkipBundling = process.env.NO_BUILD === "true";
? platforms
: `{${cliConfig.platforms.join(",")}}`;

const filters = `--scope=@interchain-ui/${platformGlob}`;
const filters = `--filter "@interchain-ui/${platformGlob}"`;

const buildCmd = `lerna run --stream ${filters} build`;
const buildCmd = `pnpm run --stream ${filters} build`;

try {
await exec(buildCmd);

if (shouldMinify) {
const minifyCssCmd = `lerna run --stream ${filters} minifyCss`;
const minifyCssCmd = `pnpm run --stream ${filters} minifyCss`;
await exec(minifyCssCmd);
}
} catch (error) {
Expand Down

0 comments on commit fdbedca

Please sign in to comment.