Skip to content

Commit

Permalink
fix: update bin entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Sep 20, 2023
1 parent 61bf2de commit 1f05932
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 21 deletions.
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.

18 changes: 1 addition & 17 deletions packages/api/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
{
"extends": ["@readme/eslint-config/esm"],
"overrides": [
{
"files": ["bin/api"],
"rules": {
"import/extensions": "off",
"import/no-unresolved": "off"
}
},
{
"files": ["example.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"no-console": "off"
}
}
]
"extends": ["@readme/eslint-config/esm"]
}
2 changes: 0 additions & 2 deletions packages/api/bin/api

This file was deleted.

2 changes: 2 additions & 0 deletions packages/api/bin/api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
import '../dist/src/bin.js';
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "7.0.0-alpha.1",
"description": "Magical SDK generation from an OpenAPI definition 🪄",
"bin": {
"api": "./bin/api"
"api": "./bin/api.js"
},
"scripts": {
"build": "tsc",
Expand Down

0 comments on commit 1f05932

Please sign in to comment.