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 4 replies

Comment options

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

@LinusBorg
Comment options

Answer selected by quantix-dev
@pavi2410
Comment options

@johnwc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants