mirror of
https://github.com/tutao/tutanota.git
synced 2025-12-08 06:09:50 +00:00
don't build rust code for browser-only tests
This commit is contained in:
parent
4e51d6f260
commit
bed43c6040
3 changed files with 8 additions and 4 deletions
|
|
@ -31,9 +31,13 @@ export async function buildRuntimePackages() {
|
|||
/**
|
||||
* Build all packages in packages directory.
|
||||
*/
|
||||
export async function buildPackages(pathPrefix = ".") {
|
||||
export async function buildPackages(pathPrefix = ".", exclude = []) {
|
||||
const packages = await glob(`${pathPrefix}/packages/*`, { deep: 1, onlyDirectories: true })
|
||||
for (const dir of packages) {
|
||||
if (exclude.some((p) => dir.endsWith(p))) {
|
||||
console.log(`skipping build for ${dir}`)
|
||||
continue
|
||||
}
|
||||
if (process.platform === "win32") {
|
||||
const before = process.cwd()
|
||||
cd(dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue