Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite plugin task inference adds preview, serve, and serve-static for lib-only projects #29506

Open
4 tasks
oliveryasuna opened this issue Jan 3, 2025 · 0 comments

Comments

@oliveryasuna
Copy link

Current Behavior

The Vite plugin infers application tasks for library-only projects.

Expected Behavior

The Vite plugin should detect if the project is for building only (library).

GitHub Repo

https://github.com/oliveryasuna/nx-vite-plugin-lib-bug

Steps to Reproduce

See repo. Run nx show project my-lib. You'll see that the Vite plugin infers tasks preview, serve, and serve-static.

Nx Report

Node           : 20.16.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.8.1

nx (global)    : 20.3.0
nx             : 20.3.0
@nx/js         : 20.3.0
@nx/workspace  : 20.3.0
@nx/devkit     : 20.3.0
@nx/vite       : 20.3.0
typescript     : 5.6.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/vite/plugin

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

Thanks for reading my issue!

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

No branches or pull requests

1 participant