From 99e6a6ea53c32b13b7ff69111866ff5bee1f076c Mon Sep 17 00:00:00 2001 From: andreivladbrg Date: Tue, 28 May 2024 22:21:24 +0300 Subject: [PATCH 1/4] build: add npm ignore file build: exclude *.t.sol files from NPM package --- .npmignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 000000000..b031dc988 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +test/utils/*.t.sol \ No newline at end of file From 742a55bc67aac12d9d63c7d6738b3dc059f50d13 Mon Sep 17 00:00:00 2001 From: Paul Razvan Berg Date: Mon, 20 May 2024 16:27:16 +0100 Subject: [PATCH 2/4] test: absolute paths in precompiles test --- test/utils/Precompiles.t.sol | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/utils/Precompiles.t.sol b/test/utils/Precompiles.t.sol index 50b1037ee..5dcd11e88 100644 --- a/test/utils/Precompiles.t.sol +++ b/test/utils/Precompiles.t.sol @@ -3,11 +3,11 @@ pragma solidity >=0.8.22 <0.9.0; import { LibString } from "solady/src/utils/LibString.sol"; -import { Precompiles } from "../../precompiles/Precompiles.sol"; -import { ISablierV2LockupDynamic } from "../../src/interfaces/ISablierV2LockupDynamic.sol"; -import { ISablierV2LockupLinear } from "../../src/interfaces/ISablierV2LockupLinear.sol"; -import { ISablierV2LockupTranched } from "../../src/interfaces/ISablierV2LockupTranched.sol"; -import { ISablierV2NFTDescriptor } from "../../src/interfaces/ISablierV2NFTDescriptor.sol"; +import { Precompiles } from "precompiles/Precompiles.sol"; +import { ISablierV2LockupDynamic } from "src/interfaces/ISablierV2LockupDynamic.sol"; +import { ISablierV2LockupLinear } from "src/interfaces/ISablierV2LockupLinear.sol"; +import { ISablierV2LockupTranched } from "src/interfaces/ISablierV2LockupTranched.sol"; +import { ISablierV2NFTDescriptor } from "src/interfaces/ISablierV2NFTDescriptor.sol"; import { Base_Test } from "../Base.t.sol"; From 8052f315fdb955cb485cee1468448bd1910da357 Mon Sep 17 00:00:00 2001 From: andreivladbrg Date: Wed, 29 May 2024 15:21:28 +0300 Subject: [PATCH 3/4] build: remove .npmignore build: add "!test/utils/*.t.sol" in package json files --- .npmignore | 1 - package.json | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index b031dc988..000000000 --- a/.npmignore +++ /dev/null @@ -1 +0,0 @@ -test/utils/*.t.sol \ No newline at end of file diff --git a/package.json b/package.json index 841cfd588..e9b17b3fe 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "precompiles", "src", "test/utils", + "!test/utils/*.t.sol", "CHANGELOG.md", "LICENSE-GPL.md" ], From 0b41622a4e4d34830cf0f9075d60e9cea3097549 Mon Sep 17 00:00:00 2001 From: Paul Razvan Berg Date: Fri, 14 Jun 2024 12:34:19 +0100 Subject: [PATCH 4/4] build: npm ignore file in test utils --- package.json | 1 - test/utils/.npmignore | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 test/utils/.npmignore diff --git a/package.json b/package.json index e9b17b3fe..841cfd588 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "precompiles", "src", "test/utils", - "!test/utils/*.t.sol", "CHANGELOG.md", "LICENSE-GPL.md" ], diff --git a/test/utils/.npmignore b/test/utils/.npmignore new file mode 100644 index 000000000..c607d373a --- /dev/null +++ b/test/utils/.npmignore @@ -0,0 +1 @@ +*.t.sol