Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cgutwin/tsc-monorepo
๐๐งถ An example monorepo with Typescript, built on Yarn v2.
https://github.com/cgutwin/tsc-monorepo
lerna monorepo typescript yarn yarn-workspaces yarn2
Last synced: 9 days ago
JSON representation
๐๐งถ An example monorepo with Typescript, built on Yarn v2.
- Host: GitHub
- URL: https://github.com/cgutwin/tsc-monorepo
- Owner: cgutwin
- License: mit
- Created: 2020-07-24T02:14:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-24T19:05:35.000Z (over 4 years ago)
- Last Synced: 2024-10-10T20:40:55.270Z (about 1 month ago)
- Topics: lerna, monorepo, typescript, yarn, yarn-workspaces, yarn2
- Language: TypeScript
- Homepage:
- Size: 29.5 MB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tsc-monorepo
This repository makes use of [Yarn zero-installs](https://yarnpkg.com/features/zero-installs), just clone and run.
Included are two example packages to build off: `@tsc-monorepo/pkg-01` and `@tsc-monorepo/pkg-02`. `pkg-02` is
dependent on `pkg-01`.### Running Included Packages
I compile my Typescript into a relative `lib` folder, which is excluded in this repository.
`@tsc-monorepo/pkg-02` is the productive package. To start it, run `yarn typescript`, then `yarn pkg02 node lib`.
### Local Dependency Typings
Local dependency typings are made available through Typescript references in the root `tsconfig.json` file.
Package names in the respective `package.json` need to match the folder name it's contained in. \
\
Ex. The package name is @tsc-monorepo/pkg01, then the name of the folder for it will be pkg01.### Other Notes
Lerna link issues when resolving `workspace: ` defined dependencies: \
[feat: Support the \`workspace:` protocol #2450](https://github.com/lerna/lerna/pull/2450).### License
MIT