Skip to content

Commit

Permalink
fix: prevent README from being deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Dec 5, 2023
1 parent b444c03 commit 8864ce5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions rollup/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -840,11 +840,6 @@ export default (args: Record<string, string>): rollup.RollupOptions[] => {
}).code
}
},
copy({
targets: [
{ src: ['README.md'], dest: 'dist/main' }
]
}),
metadataPlugin({
// generate package.json and service-override packages
getGroup (id: string, options) {
Expand Down Expand Up @@ -1114,12 +1109,18 @@ export default (args: Record<string, string>): rollup.RollupOptions[] => {
}), {
name: 'clean-src',
async generateBundle () {
// Delete intermediate sources before writing to make sur there is no unused files
// Delete intermediate sources before writing to make sure there is no unused files
await fsPromise.rm(DIST_DIR_MAIN, {
recursive: true
})
}
}
},
copy({
hook: 'generateBundle',
targets: [
{ src: ['README.md'], dest: 'dist/main' }
]
})
]
}])
}
Expand Down

0 comments on commit 8864ce5

Please sign in to comment.