Skip to content

Commit

Permalink
Merge pull request #52 from rndquu/build/export-utils
Browse files Browse the repository at this point in the history
build: export utils
  • Loading branch information
rndquu authored Sep 6, 2024
2 parents c01a2b2 + c8d198b commit 43a5b97
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"dist/types/*",
"dist/handlers/*",
"dist/core/*",
"dist/utils/*",
"README.md",
"package.json"
],
Expand All @@ -114,6 +115,11 @@
"require": "./dist/handlers/index.js",
"import": "./dist/handlers/index.js",
"types": "./dist/handlers/index.d.ts"
},
"./utils": {
"require": "./dist/utils/index.js",
"import": "./dist/utils/index.js",
"types": "./dist/utils/index.d.ts"
}
}
}
}
8 changes: 8 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ const config = [
},
plugins: [nodeResolve({ browser: true }), commonjs(), typescript(), yaml(), json(), generateDtsBundle(), terser()],
},
{
input: "src/utils/index.ts",
output: {
dir: "dist/utils",
format: "cjs",
},
plugins: [nodeResolve({ browser: true }), commonjs(), typescript(), yaml(), json(), generateDtsBundle(), terser()],
},
{
input: "src/index.ts",
output: {
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/generate-erc20-permit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { PERMIT2_ADDRESS, PermitTransferFrom, SignatureTransfer } from "@uniswap
import { ethers, keccak256, MaxInt256, parseUnits, toUtf8Bytes } from "ethers";
import { Context, Logger } from "../types/context";
import { PermitReward, TokenType } from "../types";
import { decryptKeys } from "../utils/keys";
import { decryptKeys } from "../utils";
import { getFastestProvider } from "../utils/get-fastest-provider";

export interface Payload {
Expand Down
1 change: 1 addition & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './keys';

0 comments on commit 43a5b97

Please sign in to comment.