Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,6 @@ Network Trash Folder
Temporary Items
.apdisk

# End of https://www.toptal.com/developers/gitignore/api/osx,node,npm
# End of https://www.toptal.com/developers/gitignore/api/osx,node,npm

bin
2 changes: 1 addition & 1 deletion package-lock.json

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

339 changes: 0 additions & 339 deletions packages/openapi-typescript-server/bin/index.cjs

This file was deleted.

4 changes: 2 additions & 2 deletions packages/openapi-typescript-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"directory": "packages/openapi-typescript-server"
},
"type": "module",
"bin": "./bin/index.cjs",
"bin": "./bin/cli/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
Expand All @@ -21,7 +21,7 @@
"scripts": {
"test": "node --test",
"build:lib": "tsup src/lib/index.ts --dts --format cjs,esm --clean",
"build:cli": "tsup src/cli/index.ts --format cjs --out-dir bin --clean",
"build:cli": "tsup src/cli/index.ts --format cjs --out-dir bin/cli --clean",
"build": "npm run build:lib && npm run build:cli"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-typescript-server/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const program = new Command();
program
.name("openapi-typescript-server")
.description("CLI to generate Open API server stub")
.version("0.0.1") // TODO: How to align this with the package.json version?
.version(process.env.npm_package_version || "unknown")
.argument("<spec>", "Path to Open API spec file")
.description("Output generated code")
.option(
Expand Down