This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
npm install @dcrackel/hematournamentui SFCs, check out the script setup docs to learn more.
Copy code
node -v
npm -v
`
2. Preparing Your Storybook Library
a. Building the Library
Compile your library with Vite or your bundler:
`
vite build
`
b. Update package.json
Ensure the following fields are set:
name: Name of your package.
version: Version number.
main: Main entry file (e.g., dist/index.js).
files: Files to include, e.g., ["dist"].
3. Logging in to NPM
Login to npm (if you haven't already):
`
npm login
`
Provide your username, password, and email.
4. Publishing to NPM
a. Default (Private Package)
For scoped private packages (@username/project-name):
`
npm publish
`
b. Public Package
For public packages:
`
npm publish --access=public
`
5. Verifying Your Package
Check on the npm website to verify your package's publication.
Check the registry name
`
npm get registry
`
6. Installing and Using the Library
To install the library:
`
npm install your-library-name
``