Skip to content

Commit

Permalink
fix: copy readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Jun 11, 2023
1 parent 4a7aca6 commit 0eddf49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
docker
lib
CHANGELOG.md
9 changes: 3 additions & 6 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,10 @@ fetch(pomUrl).then((response: any) => {

const fromReadme = path.resolve(process.cwd(), 'README.md');
if (fs.existsSync(fromReadme)) {
console.log(`Copying ${fromReadme} to builddir`);
fs.copyFileSync(
fromReadme,
path.resolve(workFolder, 'builddir', 'README.md')
);
console.log(`Copying ${fromReadme} to ${workFolder}`);
fs.copyFileSync(fromReadme, path.resolve(workFolder, 'README.md'));
} else {
console.log(`Not copying any README to builddir`);
console.log(`Not copying ${fromReadme} to ${workFolder}`);
}

const command = exec(
Expand Down

0 comments on commit 0eddf49

Please sign in to comment.