Skip to content

Commit

Permalink
Use tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgros committed Mar 14, 2024
1 parent c82d423 commit 554d2d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/synapse-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"get-spec": "pnpm get-spec:production",
"configure": "openapi-generator-cli version-manager set 7.4.0",
"generate": "MODEL_NAME_MAPPINGS=$(npx ts-node src/util/generateModelNameMappings.ts); pnpm configure && rimraf src/generated && openapi-generator-cli generate -i src/spec/openapispecification.json -c config.json -o src/generated -t out/ --model-name-mappings $MODEL_NAME_MAPPINGS ",
"build": "rimraf ./dist && pnpm generate && tsc",
"build": "rimraf ./dist && pnpm generate && tsup && tsc",
"test": "vitest"
},
"keywords": [],
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"moduleResolution": "bundler",
"allowJs": false,
"noEmit": false,
"emitDeclarationOnly": true,
"isolatedModules": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": false
Expand Down
7 changes: 7 additions & 0 deletions packages/synapse-client/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: { index: './src/index.ts' },
format: ['esm', 'cjs'],
dts: false, // handled by tsc
})

0 comments on commit 554d2d7

Please sign in to comment.