Skip to content

Publish src/ for bundler consumers extending ChatWindow - #574

Open
agritheory wants to merge 1 commit into
advanced-chat:mainfrom
agritheory:upstream/publish-src
Open

Publish src/ for bundler consumers extending ChatWindow#574
agritheory wants to merge 1 commit into
advanced-chat:mainfrom
agritheory:upstream/publish-src

Conversation

@agritheory

Copy link
Copy Markdown

Summary

  • Include src/ in the published npm package (files field).
  • Add a ./src/* subpath export so Vite/Webpack consumers can import SFCs and SCSS when extending ChatWindow.vue via Vue extends, without vendoring or git-cloning the repo.

Motivation

The default npm tarball only ships dist/ and types/. Apps that extend upstream components (rather than using the web component entrypoint alone) need access to source SFCs and styles. We hit this integrating vue-advanced-chat into a Frappe desk bundle with a custom message footer.

No runtime/component behavior changes in this PR — packaging only.

Test plan

  • npm pack includes src/lib/ChatWindow.vue and src/styles/index.scss
  • Existing import { register } from 'vue-advanced-chat' consumers unchanged
  • Bundler can resolve vue-advanced-chat/src/lib/ChatWindow.vue

Made with Cursor

Include src in package files and add a ./src/* export map so bundlers
can import SFCs and styles without cloning the repository.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant