Skip to content

The 'standard' for writing a vue component library #9545

Discussion options

You must be logged in to vote

Here's where I build the lib's type for production.

https://github.com/LinusBorg/vue-lib-template/blob/ffabdf3212cfdd57056428dbf7eca0105719c19a/packages/lib/package.json#L32

Also check the other options in package.json for the correct exports of those types.

The playground app doesnt rely on those as its vite config aliases the lib package directly to the lib's src entrypoint during dev, so we don't need to build the lib for the playground.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@quantix-dev
Comment options

@LinusBorg
Comment options

Answer selected by quantix-dev
@pavi2410
Comment options

@johnwc
Comment options

@derwaldgeist
Comment options

@skirtles-code
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy