Back to results
keithamus/rollup-plugin-lockfile(opens in a new tab)
Language: JavaScript
- stars
- 0
- watchers
- 1
- forks
- 1
- open issues
- 0
- Last updated
- 01/07/2021
Language: 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) } }) ] }