0.0.0 • Published 4 years ago
biletiniz v0.0.0
biletiniz
Publishing private packages like @biletiniz/eslint-config
Creating @biletiniz/eslint-config package
- Create
eslint
folder
mkdir `packages\configs\eslint`
- Navigate to the root directory of your package
cd packages\configs\eslint
- In the package root directory, run the
npm init
commandnpm init --scope=@biletiniz
Write the code for your package.
Publishing @biletiniz/eslint-config package
- By default, scoped packages are published with private visibility.
First of all you need to login to npm account using
npm adduser
adding your npm user name and password and email and then do these steps:
- On the command line, navigate to the root directory of your package.
cd packages\configs\eslint
- To publish the package to the npm registry, run:
npm publish
To see your private package page, visit https://www.npmjs.com/package/@biletiniz/eslint-config, Private packages will say private below the package name on the npm website.
References
Creating and publishing private packages
https://docs.npmjs.com/creating-and-publishing-private-packages
Writing & Publishing your First NPM Package!
https://www.youtube.com/watch?v=4zzbNac6f6Q