This post’s working example project can be found on GitHub. But in my opinion it’s worth it! I’d encourage you to split your project into multiple workspaces, whether that’s with NPM, Yarn, PNPM, or Lerna. And by veering off the beaten path, you’re more likely to encounter compatibility issues across the ecosystem. It’s not all sunshine and rainbows: if you want to organize your Node.js project, you’ll be responsible for more of the plumbing than you might in other ecosystems. Pros and Cons of Organizing Your TypeScript Project with Workspaces Workspaces meant solely for Node.js or the browser can target particular sets of language features, while portable shared code can use a lowest-common-denominator.
0 Comments
Leave a Reply. |