If you did it before, you can skip it.
-
Create an access token with permmision
read:packages
.See: How to create a persional access token for the command line
-
Apply token to your
.npmrc
. (replacePERSONAL-ACCESS-TOKEN
with your access token)echo "//npm.pkg.github.com/:_authToken=PERSONAL-ACCESS-TOKEN" >> ~/.npmrc
-
Set
@whatasoda
namespace to use GitHub registry.echo "@whatasoda:registry=https://npm.pkg.github.com/" >> ~/.npmrc
npm i -D @whatasoda/tsconfig
tsconfig.json
{
"extends": "@whatasoda/tsconfig",
"compilerOptions": {
"rootDir": "./"
}
}