Skip to content

Commit afe72ea

Browse files
committed
fix bug: wrong tsconfig dest file name for npm-package
1 parent b7f353e commit afe72ea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib/answerHandlers/createNewProjectFiles.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,7 @@ export class CreateNewProjectFiles {
136136
//copy a tsconfig file with declarations true if it is a npm module
137137
switch (this.answers['project-type']) {
138138
case 'npm-package':
139-
fs.copyFileSync(
140-
path.join(this.staticPath, 'tsconfig_npm_module.json'),
141-
path.join(this.path, 'tsconfig_npm_module.json')
142-
);
139+
fs.copyFileSync(path.join(this.staticPath, 'tsconfig_npm_module.json'), path.join(this.path, 'tsconfig.json'));
143140
break;
144141
default:
145142
fs.copyFileSync(path.join(this.staticPath, 'tsconfig.json'), path.join(this.path, 'tsconfig.json'));

0 commit comments

Comments
 (0)