Skip to content

Commit 6cfd58b

Browse files
committed
Fix rootDir to use process.cwd() instead of a hardcoded path
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 760a5b6 commit 6cfd58b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/chubby-bats-brake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"swagger-typescript-api": patch
3+
---
4+
5+
Fix `rootDir` to use `process.cwd()` instead of a hardcoded path.

src/commands/generate-templates/templates-gen-process.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class TemplatesGenProcess {
1414
config: TemplatesGenConfig;
1515
fileSystem: FileSystem;
1616

17-
rootDir = path.resolve(__dirname, "../../../");
17+
rootDir = process.cwd();
1818

1919
paths = {
2020
baseTemplates: "templates/base",

0 commit comments

Comments
 (0)