Skip to content

Commit

Permalink
maint/dev ~ update rollup configuration (polish)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Aug 1, 2022
1 parent e529af4 commit 875e8c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .rollup.config.types.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// `rollup` configuration
// ref: <https://devhints.io/rollup>
// v2002-07-13 [rivy]
// v2002-07-14 [rivy]
// setup: `npm i rollup @rollup/plugin-typescript` or `npm i rollup rollup-plugin-typescript2` (for visible TS error output)

// spell-checker:ignore (people) Roy Ivy III * rivy

import dts from 'rollup-plugin-dts';

export default [
Expand All @@ -18,5 +20,6 @@ export default [
input: './build/types/src/mod.cjs.d.ts',
output: [{ file: './dist/types/mod.cjs.d.ts', format: 'cjs' }],
plugins: [dts()],
// * note: for correct interpretation of types by VSCode, './dist/types/mod.cjs.d.ts' requires a subsequent text replacement ("export { _default as default }" => "export = _default")
},
];

0 comments on commit 875e8c0

Please sign in to comment.