Added the option to only bundle js in yarn deploy
This commit is contained in:
parent
f4f33dcd8d
commit
54480555a1
3 changed files with 12 additions and 7 deletions
|
@ -95,13 +95,17 @@ const packagesWhoseVersionsShouldBump = [
|
|||
console.log('Skipping typecheck and lint')
|
||||
}
|
||||
|
||||
const skipTypescriptEmit = argv['skip-ts'] === true
|
||||
|
||||
console.log('Assigning versions')
|
||||
await assignVersions(version)
|
||||
|
||||
console.log('Building all packages')
|
||||
await Promise.all(
|
||||
packagesToBuild.map(
|
||||
(workspace) => $`yarn workspace ${workspace} run build`,
|
||||
packagesToBuild.map((workspace) =>
|
||||
skipTypescriptEmit
|
||||
? $`yarn workspace ${workspace} run build:js`
|
||||
: $`yarn workspace ${workspace} run build`,
|
||||
),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue