0.0.0 • Published 4 years ago

biletiniz v0.0.0

Weekly downloads
3
License
-
Repository
-
Last release
4 years ago

biletiniz

Publishing private packages like @biletiniz/eslint-config

Creating @biletiniz/eslint-config package

  1. Create eslint folder
mkdir `packages\configs\eslint` 
  1. Navigate to the root directory of your package
cd packages\configs\eslint
  1. In the package root directory, run the npm init command
    npm init --scope=@biletiniz
  2. 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:
  1. On the command line, navigate to the root directory of your package.
cd packages\configs\eslint
  1. 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