Skip to content

Commit 2a54d4a

Browse files
js2melarrybotha
andauthored
Release 3.0.1 (master branch update) (#94)
* fix(cli): fix invalid default templates path - closes #92 * docs: update CHANGELOG; bump: up version to 3.0.1 Co-authored-by: Larry Botha <[email protected]>
1 parent 1f6e21b commit 2a54d4a

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# next release
22

33

4+
# 3.0.1
5+
6+
Fixes:
7+
- invalid default templates path (#92, thanks @larrybotha for quick fix)
8+
49
# 3.0.0
510

611
BREAKING_CHANGES:

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ generateApi({
6060
generateResponses: responses,
6161
input: resolve(process.cwd(), path),
6262
output: resolve(process.cwd(), output || "."),
63-
templates: resolve(templates ? process.cwd() : __dirname, templates || "./src/templates"),
63+
templates: resolve(
64+
templates ? process.cwd() : __dirname,
65+
templates || "./src/templates/defaults",
66+
),
6467
toJS: !!js,
6568
});

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swagger-typescript-api",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "Create typescript api module from swagger schema",
55
"scripts": {
66
"cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts",

0 commit comments

Comments
 (0)