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 +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 6969 "format:check" : " prettier --check ." ,
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" ,
72- "test:watch" : " npm run build:json-response-schemas && ava --watch"
72+ "test:watch" : " npm run build:json-response-schemas && ava --watch" ,
73+ "cli:dev" : " esr src/cli/index.ts"
74+ },
75+ "bin" : {
76+ "seamapi" : " ./dist/cli/index.js" ,
77+ "seam" : " ./dist/cli/index.js"
7378 },
7479 "repository" : " https://github.com/hello-seam/seamapi-javascript"
7580}
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22import commonOptions from "./global-options"
33
4- // todo: bash auto-completion
5-
64commonOptions
75 . commandDir ( "./commands" , {
8- extensions : [ "ts" ] ,
6+ extensions : [ process . env . NODE_ENV === "production" ? "js" : "ts" ] ,
97 visit : ( command ) => {
108 return command . default
119 } ,
Original file line number Diff line number Diff line change 11import { defineConfig } from "tsup"
22
33export default defineConfig ( {
4- entry : [ "src/index.ts" ] ,
4+ entry : [ "src/index.ts" , "src/cli/**/*.ts" ] ,
55 dts : true ,
66 sourcemap : true ,
77 format : [ "cjs" , "esm" ] ,
8+ env : {
9+ NODE_ENV : "production" ,
10+ } ,
811} )
You can’t perform that action at this time.
0 commit comments