Setup a CoSpace
to link multiple (mono)repos together!
-
Clone the iTwin Viewer and iTwin.js repos in sibling directories to this.
-
Run
pnpm setOverrides
to automatically update thepnpm.overrides
section of the CoSpace's package.json, to use the local package version from the workspace, disregarding semver. Useful for when you have pre-release versions of packages in your workspace. -
Run
pnpm install
to install all the packages you've added to your CoSpace. -
Run
pnpm build
to build all the packages you've added to your CoSpace using your monorepo task runner. I'm using lage, but turborepo should theoretically work. -
Run
pnpm dev
from the extension-dev directory to compile in watch mode while developing.