Skip to content

Commit

Permalink
build: install forge-std as NPM packaged
Browse files Browse the repository at this point in the history
build: add peerDependencies field
build: ignore src/test/ path in coverage
  • Loading branch information
andreivladbrg committed Oct 30, 2023
1 parent 64d5843 commit 4d6dc03
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 22 deletions.
8 changes: 0 additions & 8 deletions .gitmodules

This file was deleted.

1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
comment: false
ignore:
- "script"
- "src/test/"
- "test"
1 change: 0 additions & 1 deletion lib/forge-std
Submodule forge-std deleted from 73d44e
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
"bugs": {
"url": "https://github.com/PaulRBerg/prb-proxy/issues"
},
"dependencies": {
"@prb/test": "0.6.4"
},
"devDependencies": {
"@forge/std": "github:foundry-rs/forge-std#e8a047e3f40f13fa37af6fe14e6e06283d9a060e",
"@prb/test": "0.6.4",
"prettier": "^2.8.8",
"solhint-community": "^3.5.2"
},
Expand All @@ -32,6 +31,10 @@
"solidity"
],
"license": "MIT",
"peerDependencies": {
"@forge/std": "github:foundry-rs/forge-std#e8a047e3f40f13fa37af6fe14e6e06283d9a060e",
"@prb/test": "0.6.4"
},
"publishConfig": {
"access": "public"
},
Expand Down
15 changes: 11 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion remappings.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@forge-std/=node_modules/@forge/std/
@prb/test/=node_modules/@prb/test
forge-std/=lib/forge-std/src/
2 changes: 1 addition & 1 deletion script/Base.s.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19 <=0.9.0;

import { Script } from "forge-std/Script.sol";
import { Script } from "@forge-std/src/Script.sol";

abstract contract BaseScript is Script {
/// @dev Included to enable compilation of the script without a $MNEMONIC environment variable.
Expand Down
4 changes: 2 additions & 2 deletions test/Base.t.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <=0.9.0;

import { StdCheats } from "@forge-std/src/StdCheats.sol";
import { StdUtils } from "@forge-std/src/StdUtils.sol";
import { eqString } from "@prb/test/src/Helpers.sol";
import { StdCheats } from "forge-std/StdCheats.sol";
import { StdUtils } from "forge-std/StdUtils.sol";

import { IPRBProxy } from "../src/interfaces/IPRBProxy.sol";
import { IPRBProxyRegistry } from "../src/interfaces/IPRBProxyRegistry.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/proxy/execute/execute.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <=0.9.0;

import { stdError } from "forge-std/StdError.sol";
import { stdError } from "@forge-std/src/StdError.sol";

import { IPRBProxy } from "src/interfaces/IPRBProxy.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/proxy/run-plugin/runPlugin.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18 <0.9.0;

import { stdError } from "forge-std/StdError.sol";
import { stdError } from "@forge-std/src/StdError.sol";

import { IPRBProxy } from "src/interfaces/IPRBProxy.sol";

Expand Down

0 comments on commit 4d6dc03

Please sign in to comment.