This repository was archived by the owner on Nov 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 7070 "build:json-response-schemas" : " ts-json-schema-generator --path src/types/route-responses.ts -o src/types/route-responses.generated.json && ts-json-schema-generator --path src/types/models.ts -o src/types/models.generated.json" ,
7171 "test" : " npm run build:json-response-schemas && ava" ,
7272 "test:watch" : " npm run build:json-response-schemas && ava --watch" ,
73- "cli:dev" : " esr src/cli/index .ts"
73+ "cli:dev" : " esr src/cli/entry .ts"
7474 },
7575 "bin" : {
76- "seamapi" : " ./dist/cli/index .js" ,
77- "seam" : " ./dist/cli/index .js"
76+ "seamapi" : " ./dist/cli/entry .js" ,
77+ "seam" : " ./dist/cli/entry .js"
7878 },
7979 "repository" : " https://github.com/hello-seam/seamapi-javascript"
8080}
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+ import { cli } from "./index"
3+
4+ cli . parse ( )
Original file line number Diff line number Diff line change 1- #!/usr/bin/env node
21import commonOptions from "./global-options"
32
4- commonOptions
3+ export const cli = commonOptions
54 . commandDir ( "./commands" , {
65 extensions : [ process . env . NODE_ENV === "production" ? "js" : "ts" ] ,
76 visit : ( command ) => {
87 return command . default
98 } ,
109 } )
1110 . demandCommand ( )
12- . parse ( )
11+ . strict ( )
You can’t perform that action at this time.
0 commit comments