Skip to content

Commit

Permalink
chore: copy README to dist during build
Browse files Browse the repository at this point in the history
  • Loading branch information
brionmario committed Apr 10, 2024
1 parent c26b142 commit 2607be4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"prettier": "^2.8.1",
"rimraf": "^4.4.1",
"rollup": "^3.20.2",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-preserve-shebang": "^1.0.1",
Expand Down
4 changes: 4 additions & 0 deletions lib/rollup.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

const commonjs = require('@rollup/plugin-commonjs');
const copy = require('rollup-plugin-copy');
const {nodeResolve} = require('@rollup/plugin-node-resolve');
const terser = require('@rollup/plugin-terser');
const json = require('@rollup/plugin-json');
Expand Down Expand Up @@ -61,6 +62,9 @@ module.exports = [
tsconfig: './tsconfig.lib.json',
}),
terser(),
copy({
targets: [{dest: 'dist', src: '../README.md'}],
}),
],
},
{
Expand Down

0 comments on commit 2607be4

Please sign in to comment.