From ff1da007dbe7c8bfeffdc0d1e507342f347837c9 Mon Sep 17 00:00:00 2001 From: Andrei Vlad Birgaoanu <99738872+andreivladbrg@users.noreply.github.com> Date: Fri, 14 Jun 2024 15:48:54 +0300 Subject: [PATCH] Build/npm ignore file (#936) * build: add npm ignore file build: exclude *.t.sol files from NPM package * test: absolute paths in precompiles test * build: remove .npmignore build: add "!test/utils/*.t.sol" in package json files * build: npm ignore file in test utils --------- Co-authored-by: Paul Razvan Berg --- test/utils/.npmignore | 1 + test/utils/Precompiles.t.sol | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 test/utils/.npmignore 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 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";