Skip to content

Commit

Permalink
move file into publish directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Jul 25, 2024
1 parent aee3bc4 commit 3cdad07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"contracts",
"!contracts/mock"
],
"main": "publish/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/decentdao/fractal-contracts.git"
Expand Down
5 changes: 2 additions & 3 deletions scripts/prepublish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ npm run test

npx hardhat export --export-all deployments.json

rm index.ts
rm -rf publish && mkdir publish

# Step 1: Remove the `abi`, `name`, and `chainId` keys
Expand All @@ -30,11 +29,11 @@ rm abis.json

rm deployments.json

cat << EOF > index.ts
cat << EOF > publish/index.ts
import abis from "./publish/abis";
import addresses from "./publish/addresses";
export { abis, addresses };
EOF

# Run TypeScript compilation
tsc index.ts
tsc publish/index.ts --outDir publish

0 comments on commit 3cdad07

Please sign in to comment.