一覧へ戻る
keithamus/rollup-plugin-lockfile(新しいタブで開きます)
主要言語: JavaScript
- star 数
- 0
- watcher 数
- 1
- fork 数
- 1
- issue 数
- 0
- 最終更新
- 2021/01/07
主要言語: JavaScript
It makes a *.lock file (based on the name of the entry point) while rollup is compiling that file.
That's it!
Lockfiles will be generated based on the input name(s), in the dir directory.
// rollup.config.js import typescript from 'rollup-plugin-typescript'; export default { input: './main.ts', plugins: [ lockfile({ dir: '/path/to/output/directory' }) ] }
The full filename can be configured by passing name
// rollup.config.js import typescript from 'rollup-plugin-typescript'; export default { input: './main.ts', plugins: [ lockfile({ name(name) { return myCustomLockfileFilenameDeterminer(name) } }) ] }