-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sh
executable file
·18 lines (16 loc) · 1 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# TODO: Would like to use `tsc --build` or `yarn workspaces run build` in the
# monorepo root here but `@sketch-hq/sketch-core-assistant` needs to be built
# using Babel since LinguiJS uses Babel Macros. That means we can't rely on
# TypeScript Project References to sort out the build order 100% across the
# monorepo, and it needs to be defined manually here - i.e. ensure the core
# rules assistant is built before packages that depend on it.
# Solution: implement an i18n approach in the core assistant that doesn't
# introduce a requirement to build its TypeScript with Babel.
set -e
yarn workspace @sketch-hq/sketch-assistant-types run build
yarn workspace @sketch-hq/sketch-assistant-utils run build
yarn workspace @sketch-hq/sketch-assistant-cli run build
yarn workspace @sketch-hq/sketch-core-assistant run build
yarn workspace @sketch-hq/sketch-tidy-assistant run build
yarn workspace @sketch-hq/sketch-naming-conventions-assistant run build
yarn workspace @sketch-hq/sketch-reuse-suggestions-assistant run build