UNPKG

@kodex-data/testing

Version:

```typescript import '@kodex-data/testing' ```

42 lines (40 loc) 965 B
import commonjs from '@rollup/plugin-commonjs' import resolve from '@rollup/plugin-node-resolve' import typescript from '@rollup/plugin-typescript' import json from '@rollup/plugin-json' import external from 'rollup-plugin-peer-deps-external' import packageJson from './package.json' export default [ { input: 'source/index.ts', output: [ { file: packageJson.module, format: 'esm', sourcemap: true }, { file: packageJson.main, format: 'cjs', exports: 'named', sourcemap: true } ], external: [ /@kodex-data\/*/, /@ethersproject\/*/, ...Object.keys(packageJson.dependencies || {}), 'mocha-logger', ], plugins: [ external(), json(), resolve({ preferBuiltins: false }), commonjs(), typescript({ tsconfig: './tsconfig.json', compilerOptions: { declarationDir: './types' } }) ] } ]