Skip to content

Commit bdd975d

Browse files
committed
chore: use lerna env variable to get file changes
1 parent de86a49 commit bdd975d

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

lib/build-watch.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@ import copyfiles from 'copyfiles';
44
import fs from 'fs-extra';
55
import path from 'path';
66
import sass from 'sass';
7-
import yargs from 'yargs';
8-
import { hideBin } from 'yargs/helpers';
97

108
const env = process.env.NODE_ENV;
11-
const argv = yargs(hideBin(process.argv)).argv;
129

1310
// Start the compilation process
14-
runCompilation(argv.files.split(','));
11+
runCompilation(process.env.LERNA_FILE_CHANGES.split(','));
1512

1613
function runBuild() {
1714
buildSync({

lib/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
"postcss": "^8.4.21",
6262
"postcss-cli": "^10.1.0",
6363
"sass": "^1.58.0",
64-
"typescript": "^4.9.5",
65-
"yargs": "^17.6.2"
64+
"typescript": "^4.9.5"
6665
}
6766
}

pnpm-lock.yaml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)