Skip to content

Commit

Permalink
Prep for build
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree committed Oct 6, 2024
1 parent 9ca47c5 commit 3e15ea3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 40 deletions.
29 changes: 5 additions & 24 deletions packages/drift/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,16 @@
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./cache": {
"types": "./dist/cache.d.ts",
"default": "./dist/cache.js"
},
"./contract": {
"types": "./dist/contract.d.ts",
"default": "./dist/contract.js"
},
"./errors": {
"types": "./dist/errors.d.ts",
"default": "./dist/errors.js"
},
"./network": {
"types": "./dist/network.d.ts",
"default": "./dist/network.js"
},
"./stubs": {
"types": "./dist/stubs.d.ts",
"default": "./dist/stubs.js"
"./testing": {
"types": "./dist/testing.d.ts",
"default": "./dist/testing.js"
},
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"cache": ["./dist/cache.d.ts"],
"contract": ["./dist/contract.d.ts"],
"errors": ["./dist/errors.d.ts"],
"network": ["./dist/network.d.ts"],
"stubs": ["./dist/stubs.d.ts"]
".": ["./dist/index.d.ts"],
"testing": ["./dist/testing.d.ts"]
}
},
"scripts": {
Expand Down
5 changes: 0 additions & 5 deletions packages/drift/src/adapter/MockAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,3 @@ export class MockAdapter implements ReadWriteAdapter {
})();
}
}

export type AdapterOnWriteParams<
TAbi extends Abi = Abi,
TFunctionName extends FunctionName<TAbi> = FunctionName<TAbi>,
> = OptionalKeys<AdapterWriteParams<TAbi, TFunctionName>, "args" | "address">;
File renamed without changes.
6 changes: 6 additions & 0 deletions packages/drift/src/exports/testing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export { MockAdapter } from "src/adapter/MockAdapter";
export {
type MockContractParams,
MockContract,
} from "src/client/Contract/MockContract";
export { MockDrift } from "src/client/Drift/MockDrift";
12 changes: 1 addition & 11 deletions packages/drift/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import { defineConfig } from "tsup";

export default defineConfig({
// Splitting the entry points in foundational packages like this makes it
// easier for wrapper packages to selectively re-export `*` from some entry
// points and while augmenting or modifying others.
entry: [
"src/exports/cache.ts",
"src/exports/contract.ts",
"src/exports/errors.ts",
"src/exports/index.ts",
"src/exports/network.ts",
"src/exports/stubs.ts",
],
entry: ["src/exports/index.ts", "src/exports/testing.ts"],
format: ["esm"],
sourcemap: true,
dts: true,
Expand Down

0 comments on commit 3e15ea3

Please sign in to comment.