Skip to content

Commit

Permalink
fix #1: does nothing on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascsd committed Jul 11, 2019
1 parent 9de4a8c commit e5faf0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ReadmeWriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class ReadmeWriter {

if (folders) {
const url = folders[0].uri;
const filePath = `${url.fsPath}\\README.md`;
const filePath = path.join(url.fsPath, 'README.md');

console.log(`url:${filePath}`);

Expand All @@ -42,7 +42,7 @@ export class ReadmeWriter {

if (folders) {
const url = folders[0].uri;
const pkgUrl = `${url.fsPath}\\package.json`;
const pkgUrl = path.join(url.fsPath, 'package.json');

if (fs.existsSync(pkgUrl)) {
const packageBuff = fs.readFileSync(pkgUrl);
Expand Down

0 comments on commit e5faf0f

Please sign in to comment.