manzt / zarrita.js

A JavaScript toolkit for working with chunked, compressed, n-dimensional arrays
https://zarrita.dev
MIT License
39 stars 5 forks source link

feat: simplify monorepo with package.json `publishConfig` overrides #101

Closed manzt closed 1 year ago

manzt commented 1 year ago

Right now you need to run TypeScript in watch mode with vitest to see changes updated across packages. This PR uses the publishConfig in the package.json to link TypeScript (and vitest) to the TypeScript subpackage source within the monorepo. This means that we don't need to recompile TypeScript for vitest to work, and instead vitest will be tracking changes across all files in the repo. However, when we publish to NPM we update the package.json package exports to point to the build typescript code.