@taquito/ledger-signer
Version:
Ledger signer provider
27 lines (23 loc) • 794 B
text/typescript
import camelCase from 'lodash.camelcase';
import typescript from 'rollup-plugin-typescript2';
import json from 'rollup-plugin-json';
const pkg = require('./package.json');
const libraryName = 'taquito-ledger-signer';
export default {
input: `src/${libraryName}.ts`,
output: [
{ file: pkg.main, name: camelCase(libraryName), format: 'umd', sourcemap: true },
{ file: pkg.module, format: 'es', sourcemap: true },
],
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
//external: ['@ledgerhq/hw-transport-node-hid'],
watch: {
include: 'src/**',
},
plugins: [
// Allow json resolution
json(),
// Compile TypeScript files
typescript({ tsconfig: './tsconfig.prod.json', useTsconfigDeclarationDir: true }),
],
};