Building a mono repo package environment using Lerna, Rollup, TypeScript, semantic-release-monorepo and GitHub Packages.
packages/sample-one
+-- dist
| +-- esm
| +-- index.js
| +-- index.js.map
| +-- main.js.map
| +-- cjs
| +-- index.js
+-- +-- index.js.mapWe use ttypescript and typescript-transform-paths due to path reference problem in index.d.ts file when using absolute path in the packages.(eg, sample-one, sample-two)
.npmrcfile must be added to the root of the project.
@soyoung210:registry=https://npm.pkg.github.com/soyoung210The package name should follow the format:
