Skip to main content

Check if a project is using vite.

This package works with Cloudflare Workers, Node.js, Deno, Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
2 months ago (0.2.1)
v
configs

vite supported config files

f
createDepValidator

Create a validator to check if vite is included in given type of deps of package.json

T
DepValidator
No documentation available
f
hasVite

check if hasViteConfig or hasViteInPkg return true

f
hasViteConfig

check if vite.config.{js,ts,cjs,cts,mjs,mts} exists in cwd

v
hasViteDep

check if dependencies includes vite in package.json

v
hasViteDevDep

check if devDependencies includes vite in package.json

f
hasViteInPkg

check if dependencies, devDependencies, or peerDependencies includes vite in package.json

v
hasVitePeerDep

check if peerDependencies includes vite in package.json

T
PkgDepType

package json filed for createDepValidator

f
readPkg

read package.json