Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

SoYoung210/lerna-rollup-github-package-example

Repository files navigation

Lerna, Rollup, TypeScript, GitHub Packages

Building a mono repo package environment using Lerna, Rollup, TypeScript, semantic-release-monorepo and GitHub Packages.

🎩 Build Output

packages/sample-one
+-- dist
|   +-- esm
|      +-- index.js
|      +-- index.js.map
|      +-- main.js.map
|   +-- cjs
|      +-- index.js
+--    +-- index.js.map

🔫 Trouble Shooting

Type Definition

We 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)

GitHub Package Registry

.npmrcfile must be added to the root of the project.

@soyoung210:registry=https://npm.pkg.github.com/soyoung210

Check Your Package name

The package name should follow the format:

package-name-format