Skip to content

Commit

Permalink
🔧 [tool-git-cipher] chore: copy config files after build
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon-clown committed Aug 10, 2020
1 parent ddf49ab commit b5d1b39
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/git-cipher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"devDependencies": {
"@barusu/eslint-config": "^0.0.23",
"@barusu/rollup-config": "^0.0.23",
"@barusu/rollup-plugin-copy": "^0.0.23",
"@types/chai": "^4.2.11",
"@types/mocha": "^7.0.2",
"chai": "^4.2.0",
Expand Down
18 changes: 17 additions & 1 deletion tools/git-cipher/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from 'path'
import { createRollupConfig } from '@barusu/rollup-config'
import { copy } from '@barusu/rollup-plugin-copy'
import manifest from './package.json'


Expand Down Expand Up @@ -29,7 +30,22 @@ const baseConfig = createRollupConfig({

const { external, plugins } = baseConfig[0]
const config = [
...baseConfig,
{
...baseConfig[0],
plugins: [
...plugins,
copy({
copyOnce: true,
verbose: true,
targets: [
{
src: resolvePath('src/config/*'),
dest: resolvePath('lib/config'),
}
]
})
]
},
{
input: resolvePath('src/cli.ts'),
output: [
Expand Down

0 comments on commit b5d1b39

Please sign in to comment.