vite-plugin-package-version

v1.0.2
vite plugin to load package version into env
vite typescript package version environment

clean

rimraf {dist,package-lock.json,node_modules} && npm i

test

jest

dev

tsup src/index.ts --dts --watch

build

rimraf dist && tsup src/index.ts --dts

demo:clean

rimraf demo/{dist,package-lock.json,node_modules} && npm -C demo install

demo:dev

npm -C demo run dev

demo:prod

npm -C demo run build && npm -C demo run serve

prepublishOnly

npm run build && npm run test

Metadata

  • MIT
  • Whatever
  • Simon Haugen
  • released 5/5/2021

Downloads

Maintainers