SoYoung210 / lerna-rollup-github-package-example

πŸ‰ Lerna With Rollup And GitHub Packages Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

πŸ‰ Lerna With Rollup And GitHub Packages Example


Languages

Language:JavaScript 93.8%Language:TypeScript 6.2%