Skip to content

Commit

Permalink
feat: add contract abis in dist build (Open-Attestation#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
superical committed Feb 25, 2022
1 parent f4666b6 commit 4560895
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"build:js:copy-src": "babel src -d dist --ignore src/**/*.spec.ts,src/**/*.test.ts -x .js,.ts,.tsx --copy-files",
"build:js": "tsc && npm run build:js:copy-src",
"build:js:copy-types": "mkdir -p ./dist/types/contracts && cp ./src/contracts/*.d.ts ./dist/types/contracts",
"build": "npm run clean:build && npm run build:sol && npm run build:js && npm run build:js:copy-types",
"build:abi:copy": "mkdir -p ./dist/abis && cp -a ./artifacts/contracts/. ./dist/abis && rm -f ./dist/abis/**/*.dbg.json",
"build": "npm run clean:build && npm run build:sol && npm run build:js && npm run build:js:copy-types && npm run build:abi:copy",
"clean:build": "TS_NODE_TRANSPILE_ONLY=1 hardhat clean && rm -rf ./dist && rm -rf ./src/contracts",
"commit": "git-cz",
"commit:retry": "npm run commit -- --retry",
Expand Down
16 changes: 13 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,22 @@
"emitDeclarationOnly": true,
"baseUrl": ".",
"paths": {
"@tradetrust/contracts": ["./src/contracts"]
"@tradetrust/contracts": [
"./src/contracts"
]
}
},
"ts-node": {
"files": true
},
"include": ["./src/**/*", "./test/**/*", "./hardhat.config.ts", "./tasks/**/*", "./types"],
"exclude": ["./src/contracts/**/*"]
"include": [
"./src/**/*",
"./test/**/*",
"./hardhat.config.ts",
"./tasks/**/*",
"./types"
],
"exclude": [
"./src/contracts/**/*"
]
}

0 comments on commit 4560895

Please sign in to comment.