Skip to content

Commit

Permalink
chore: refactored postbuild to use tsup and emit declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
petertonysmith94 committed Mar 18, 2024
1 parent 13333ed commit 253e64b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/abi-typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"pretest": "pnpm build:forc",
"build": "tsup",
"build:forc": "pnpm fuels-forc build -p test/fixtures/forc-projects --release",
"postbuild": "tsx ../../scripts/postbuild.ts"
"postbuild": "tsup --config tsup.config.dts.ts"
},
"license": "Apache-2.0",
"dependencies": {
Expand Down
13 changes: 13 additions & 0 deletions packages/abi-typegen/tsup.config.dts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Options } from 'tsup';

import tsupDefaults from './tsup.config';

const configs: Options = {
...tsupDefaults,
tsconfig: 'tsconfig.dts.json',
'sourcemap': true,
'dts': true,
clean: false
};

export default configs;

0 comments on commit 253e64b

Please sign in to comment.