ts-monorepo
TypeScript
ts-monorepo | TypeScript | |
---|---|---|
14 | 1,446 | |
1,597 | 105,748 | |
1.1% | 0.7% | |
9.2 | 9.6 | |
6 days ago | 4 days ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ts-monorepo
-
[AskJS] Is there a silver bullet for consuming Typescript libraries in a Monorepo?
1. Linking libs with tsconfig paths. This approach involves setting a tsconfig.json paths object which maps the package name, to the local filesystem location. Eg. "paths": {"@org/lib":"../libs/lib"} - Nx uses this approach for their Integrated Monorepo configuration https://nx.dev/tutorials/integrated-repo-tutorial https://github.com/NiGhTTraX/ts-monorepo.
-
Recommendations for lerna/yarn mono repos?
FYI I tried renaming packages/bar/index.ts to index.js and adding allowJs: true in its tsconfig.json and tsconfig.build.json and everything works as expected.
-
Structuring packages and working with workspaces
Give https://github.com/NiGhTTraX/ts-monorepo a try :) It uses path aliases to map your imports to the source code inside the monorepo.
-
How to use npm workspace with create-react-app and typescript?
Make sure you've copied the jest craco config and that you've set up path aliases accordingly.
-
Handling TypeScript in a monorepo
You can check https://github.com/NiGhTTraX/ts-monorepo.
-
You might not need TypeScript project references
FWIW https://github.com/NiGhTTraX/ts-monorepo works in a similar way by using path aliases instead. The result is the same (imports resolve to monorepo source code), but this approach doesn't prevent you from publishing any of the packages (check the repo and the linked docs for more details).
-
using references in tsconfig.json to point to library code
You didn't give an example of how your imports look, but I'm assuming you're trying to use absolute imports for the lib files like from 'lib/src/...'. Project references don't rewrite the imports in any way, they just optimize the builds by caching referenced projects. You'll want to use path aliases instead. Feel free to check out https://github.com/NiGhTTraX/ts-monorepo for full examples.
-
[Question] Setting up monorepo: How be able to debug and build in the same project without changing package.json?
You can use two tsconfig.json files and in one of them configure path aliases to map your package names to the source code, effectively "overriding" package.json#main. You can find examples here https://github.com/NiGhTTraX/ts-monorepo.
-
Monorepo with Yarn Workspaces + TS + Docker Templates
Here is one I liked that is very basic, although I removed lerna from it personally. Shows examples of package sharing and a bunch of popular libraries. Next not nuxt but you get the idea. https://github.com/NiGhTTraX/ts-monorepo
- How do you manage TypeScript monorepos?
TypeScript
- TypeScript: Enable Strict Mode by Default
- Node.js can now execute TypeScript files
-
$160M VC-backed company just killed my EU trademark for a small OSS project
I can't give advice about the trademark, other than that I've been through this kind of thing before and it sucks.
What I can say... is that I love what you've been doing on your Deepkit, and I was horrified to hear that this was happening to you.
Seriously, I've only lurked in the community so far, but it's possibly the most forward-thinking foundational library in the web space that I've seen.
Strong typing with annotations that can simultaneously influence runtime ORM and frontend generation, while being fully compliant Typescript? A hand-rolled lightning-fast Typescript compiler that emits the runtime reflection capabilities? Full-fledged DI as an inherent part of the design, not an afterthought?
It's such an incredible blend of beautiful tooling with pragmatic applications.
For anyone curious about this, https://web.archive.org/web/20230916074647/https://deepkit.i... is a fascinating read.
https://github.com/microsoft/TypeScript/issues/47658#issueco... provides context on why some of TypeScript's design goals around erasure hold it back from these features. My vision of the web is that it would be an even more vibrant and innovative place if TypeScript were to cast off those restrictions.
DeepKit actually solving this by implementing its own compiler, bytecode, and interpreter... it's truly incredible.
Marc, know that there are people out there who love your work, and who will continue to follow it avidly regardless of the name. You're doing amazing things.
- I Built LeedPDF - Open Source PDF Drawing & Annotation That Feels Like Sketching ✏️
-
A parser for TypeScript types, written in TypeScript types
This parser is not written in TS types, and this kind of pedantry (when claiming "no js here") is important. In fact, the parser includes both the use of ternary operators as well as the rest operator, both of which are absolutely not part of the type system and are most certainly part of JS.
While this tries to reach the levels of "TypeScript is Turing complete[1]" (which happens to be super cool), it is, in my humble opinion, not even remotely interesting.
[1] https://github.com/Microsoft/TypeScript/issues/14833
-
Build a Fullstack Stock Portfolio Agent with Mastra and AG-UI
TypeScript- a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.
- 300ms live captions that actually work: vocallq's real-time performance deep dive
- building sales agents that know their stuff: vocallq's domain expertise approach
- Tabs vs. Spaces: The War Is Over
-
Comctx: A Better Cross-Context Communication Library Than Comlink
Type Safety TypeScript support is as good as Comlink, with all the type inference you expect.
What are some alternatives?
tsconfig-paths - Load node modules according to tsconfig paths, in run-time or via API.
bolt.new - Prompt, run, edit, and deploy full-stack web applications. -- bolt.new -- Help Center: https://support.bolt.new/ -- Community Support: https://discord.com/invite/stackblitz
alias-hq - The end-to-end solution for configuring, refactoring, maintaining and using path aliases
Tailwind CSS - A utility-first CSS framework for rapid UI development.
babel-plugin-tsconfig-paths-module-resolver - Use tsconfig-paths in any bundler that supports a custom babel config.
zx - A tool for writing better scripts