Skip to content

Commit

Permalink
test: Test if file naming was the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilson Lim committed Feb 13, 2021
1 parent 6f8df5a commit 26995ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ For each keypoint, treat like commit messages, follow [Chris Beams' rules](https

## [Unreleased]

## [0.1.12] - 2021-02-13
### Changed:
- test: Test if file naming was the issue
## [0.1.11] - 2021-02-13
### Changed:
- chore: Add callback function to fs.copy
Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async function run() {
//*/

// 6.2 Replacing files with placeholder
const files = ['package.json', 'package-lock.json', 'LICENSE', 'CHANGELOG.md', 'README.md'];
const files = ['package.json', 'lock.json', 'LICENSE', 'CHANGELOG.md', 'README.md'];

const author = getAuthorName();

Expand All @@ -173,10 +173,12 @@ async function run() {
.replace(/__DATE__/g, dateString);

fs.writeFileSync(`${appDirectory}/${file}`, result, 'utf8');
shell.echo(`create file complete: ${path}`)
shell.echo(`create file complete: ${path}`);
}
});

fs.renameSync(`${appDirectory}/lock.json`, `${appDirectory}/package-lock.json`);

shell.cd(folderValue);
shell.rm('-rf', 'placeholder');
shell.echo(`${folderValue} created`);
Expand Down
File renamed without changes.

0 comments on commit 26995ff

Please sign in to comment.