Skip to content

Commit

Permalink
feat: expose mongo and pagerduty utils separately
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmnthn committed Dec 29, 2022
1 parent 3e43eb5 commit 9cbc592
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/utils/build.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: ['./src/index'],
entries: ['./src/index', './src/mongo', './src/pagerduty'],
declaration: true,
clean: true,
externals: ['@ethersproject/bignumber', '@ethersproject/units'],
Expand Down
10 changes: 10 additions & 0 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
},
"./mongo": {
"types": "./dist/mongo.d.ts",
"require": "./dist/mongo.cjs",
"import": "./dist/mongo.mjs"
},
"./pagerduty": {
"types": "./dist/pagerduty.d.ts",
"require": "./dist/pagerduty.cjs",
"import": "./dist/pagerduty.mjs"
}
},
"main": "dist/index.cjs",
Expand Down
2 changes: 0 additions & 2 deletions packages/utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
export * from './formatter'
export * from './mongo'
export * from './pagerduty'
export * from './web3'

export const simulateAsyncPause = (duration = 1000) =>
Expand Down

0 comments on commit 9cbc592

Please sign in to comment.