Skip to content

Commit

Permalink
release(3.beta.7): for real cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
vajahath committed Jan 1, 2020
1 parent 758a04d commit 094dca1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion generator/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-ts-np",
"version": "3.0.0-beta.6",
"version": "3.0.0-beta.7",
"description": "Yeoman Generator For Building Node Packages With Typescript",
"main": "dist/app/index.js",
"typings": "dist/app/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion generator/src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class Tsnp extends Generator {
this.registerTransformStream(
rename(filePath => {
if (filePath.basename?.includes('yo-rc')) {
return;
console.log(filePath);
return filePath;
}

if (filePath.basename || filePath.extname) {
Expand Down
4 changes: 3 additions & 1 deletion generator/tests/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ test('verify there are all files', async () => {
baseFiles = baseFiles.map(val => val.split('/base-structure/')[1]);
files = files.map(val => val.split(upath.toUnix(tmpFolder) + '/')[1]);

// expect(files.includes('.yo-rc.json')).toBeTruthy();
expect(files.includes('.yo-rc.json')).toBeTruthy();
expect(baseFiles.every(f => files.includes(f))).toBeTruthy();

console.log({ files });
});

0 comments on commit 094dca1

Please sign in to comment.