diff --git a/index.ts b/index.ts index 6ca6bbf93..515806496 100644 --- a/index.ts +++ b/index.ts @@ -1,6 +1 @@ -export * from "./test/fixtures/SpokePool.Fixture"; -export * from "./test/fixtures/HubPool.Fixture"; -export * from "./test/fixtures/MerkleLib.Fixture"; -export * from "./test/constants"; -export * from "./test/utils"; export * from "./typechain"; diff --git a/package.json b/package.json index cc35fc5c0..7c21103d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@across-protocol/contracts-v2", - "version": "0.0.24", + "version": "0.0.25", "author": "UMA Team", "license": "AGPL-3.0", "repository": { diff --git a/test-utils.ts b/test-utils.ts new file mode 100644 index 000000000..fd65e9ddd --- /dev/null +++ b/test-utils.ts @@ -0,0 +1,10 @@ +// Note: this file sits on a separate export path and is intended to export test utilities and code: +// You can import it like this: import * as testUtils from "@across-protocol/contracts-v2/dist/test-utils". +// This is separated because this code assumes the caller has a hardhat config because it imports +// hardhat. For non-test code, import the standard index file: +// import * as contracts-v2 from "@across-protocol/contracts-v2" +export * from "./test/fixtures/SpokePool.Fixture"; +export * from "./test/fixtures/HubPool.Fixture"; +export * from "./test/fixtures/MerkleLib.Fixture"; +export * from "./test/constants"; +export * from "./test/utils"; diff --git a/tsconfig.json b/tsconfig.json index 3d233e5df..c4b670412 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,6 @@ "declaration": true, "skipLibCheck": true }, - "include": ["./scripts", "./test", "./typechain", "./index.ts"], + "include": ["./scripts", "./test", "./typechain", "./index.ts", "./test-utils.ts"], "files": ["./hardhat.config.ts"] }