Skip to content

Commit

Permalink
Merge pull request #99 from decentdao/publish-file-update-js
Browse files Browse the repository at this point in the history
Update published file
  • Loading branch information
adamgall authored Jul 25, 2024
2 parents 979635a + 80ef839 commit c0468db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@fractal-framework/fractal-contracts",
"version": "1.2.1",
"version": "1.2.13",
"files": [
"index.ts",
"publish",
"contracts",
"!contracts/mock"
],
"main": "publish/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/decentdao/fractal-contracts.git"
Expand Down
10 changes: 6 additions & 4 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,8 +29,11 @@ rm abis.json

rm deployments.json

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

# Run TypeScript compilation
npx tsc ./publish/index.ts

0 comments on commit c0468db

Please sign in to comment.