Skip to content

Commit

Permalink
Merge pull request #281 from CodinGame/fix-missing-readme
Browse files Browse the repository at this point in the history
Prevent README from being deleted
  • Loading branch information
CGNonofr authored Dec 5, 2023
2 parents b444c03 + 8864ce5 commit c699bbe
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 c699bbe

Please sign in to comment.