
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
vite-plugin-pack-info
Advanced tools
Vite plugin generates an information file or fingerprint of a package after the construction is complete
此插件为 vite 的扩展,用于在 vite build 命令执行的最后阶段,对构建产出目录之后进行生成相应的包的指纹信息或者版本信息,打包出来的文件名默认为robin-pack.json,里面包含git的信息 比如最后一次的提交信息,其中里面的version为package.json的version
npm/yarn/pnpm i -D vite-plugin-pack-info
// vite.config.js
import { defineConfig } from 'vite'
import packInfo from 'vite-plugin-pack-info'
export default defineConfig({
plugins: [packInfo()],
})
export interface Options {
/**
* Input Directory
* @default `dist`
*/
inDir?: string;
/**
* Output Directory
* @default `robin-json`
*/
outDir?: string;
/**
* file Name
* @default `robin.json`
*/
outFileName?: string;
/**
* version
* @default `timeStamp`
*/
version?: string| number;
/**
* Callback, which is executed after the zip file was created
* err is only defined if the save function fails
*/
done?: (err: Error | undefined) => void
}
MIT, see the license file
FAQs
Vite plugin generates an information file or fingerprint of a package after the construction is complete
We found that vite-plugin-pack-info demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.