1.1.1 • Published 3 years ago

rollup-plugin-lockfile v1.1.1

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

rollup-plugin-lockfile

It makes a *.lock file (based on the name of the entry point) while rollup is compiling that file.

That's it!

Usage:

Simple usage

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'
    })
  ]
}

Advanced usage

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)
      }
    })
  ]
}
1.1.1

3 years ago

1.1.0

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago