-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build pipeline, workspace, release flow, etc.. (#1118)
* fix(build): add html-webpack-plugin * fix(defender): workspace package name * chore(pnpm): migrate to pnpm * chore(bump): sdk version bump * chore(pnpm): fix build errors * chore(build): remove faulty export * fix(build): default export to contracts * chore(npm): reinstate factory export * chore(release): contracts 0.8.3 * chore(release): contracts 0.8.5 * chore(release): contract 0.8.6 * chore(release): sdk 0.8.6 - fixed packages * chore(bump): version bump * fix(build): transpile SDK in NextJS app * fix(build): update github workflow to use pnpm * fix(build): install pnpm in github actions --------- Co-authored-by: bitbeckers <[email protected]>
- Loading branch information
1 parent
22c2c0e
commit a311a1a
Showing
42 changed files
with
29,372 additions
and
42,415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
hoist-pattern=!@hypercerts-org/contracts | ||
link-workspace-packages=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@hypercerts-org/contracts", | ||
"description": "EVM compatible protocol for managing impact claims", | ||
"version": "0.7.1", | ||
"version": "0.8.6", | ||
"author": { | ||
"name": "Hypercerts Foundation", | ||
"url": "https://github.com/hypercerts-org/hypercerts" | ||
|
@@ -21,13 +21,6 @@ | |
"import": "./dist/esm/index.js", | ||
"types": "./dist/index.d.ts" | ||
}, | ||
"packageManager": "[email protected]", | ||
"workspaces": { | ||
"nohoist": [ | ||
"prettier-plugin-solidity", | ||
"solhint" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.1.2", | ||
"@commitlint/config-conventional": "^17.1.0", | ||
|
@@ -41,14 +34,14 @@ | |
"@nomiclabs/hardhat-ethers": "^2.2.1", | ||
"@nomiclabs/hardhat-etherscan": "^3.1.3", | ||
"@openzeppelin/hardhat-defender": "^1.8.2", | ||
"@openzeppelin/hardhat-upgrades": "^1.22.1", | ||
"@openzeppelin/hardhat-upgrades": "^1.28", | ||
"@primitivefi/hardhat-dodoc": "^0.2.3", | ||
"@rollup/plugin-commonjs": "^24.0.1", | ||
"@rollup/plugin-json": "^6.0.0", | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"@trivago/prettier-plugin-sort-imports": "^3.3.0", | ||
"@typechain/ethers-v5": "^10.2.0", | ||
"@typechain/hardhat": "^6.1.5", | ||
"@typechain/ethers-v5": "^11.1.1", | ||
"@typechain/hardhat": "^9.0.0", | ||
"@types/chai": "^4.3.4", | ||
"@types/mocha": "9.1.0", | ||
"@types/node": "^18.11.11", | ||
|
@@ -62,25 +55,26 @@ | |
"eslint": "^8.23.1", | ||
"eslint-config-prettier": "^8.5.0", | ||
"ethers": "^5.7.2", | ||
"hardhat": "^2.13.0", | ||
"hardhat": "2.13.1", | ||
"hardhat-abi-exporter": "^2.10.1", | ||
"hardhat-gas-reporter": "^1.0.9", | ||
"hardhat-preprocessor": "^0.1.5", | ||
"husky": "^8.0.1", | ||
"lint-staged": "^13.0.3", | ||
"prettier": "^2.7.1", | ||
"prettier-plugin-solidity": "^1.1.3", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^3.17.2", | ||
"rimraf": "^5.0.5", | ||
"rollup": "^4.0.2", | ||
"rollup-plugin-auto-external": "^2.0.0", | ||
"rollup-plugin-dts": "^5.2.0", | ||
"rollup-plugin-esbuild": "^5.0.0", | ||
"rollup-plugin-dts": "^6.1.0", | ||
"rollup-plugin-esbuild": "^6.1.0", | ||
"rollup-plugin-node-polyfills": "^0.2.1", | ||
"shx": "^0.3.4", | ||
"solhint": "^3.3.7", | ||
"solidity-coverage": "^0.8.2", | ||
"ts-node": "^10.9.1", | ||
"typechain": "^8.1.1", | ||
"typescript": "^4.9.3" | ||
"typechain": "^8.3.1", | ||
"typescript": "^4.9.4" | ||
}, | ||
"keywords": [ | ||
"blockchain", | ||
|
@@ -93,23 +87,24 @@ | |
"template" | ||
], | ||
"scripts": { | ||
"build": "yarn clean && hardhat compile && rollup -c", | ||
"build": "pnpm clean && hardhat compile && pnpm tsc -p tsconfig.build.json && rollup -c", | ||
"build:forge": "forge build", | ||
"build:hardhat": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat compile && yarn build:ts:esm && yarn build:ts:cjs && yarn build:declarations", | ||
"build:ts:esm": "npx tsc --build tsconfig.esm.json", | ||
"build:ts:cjs": "npx tsc --build tsconfig.cjs.json", | ||
"build:hardhat": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat compile && pnpm build:declarations", | ||
"build:declarations": "shx cp ./src/types/*.d.ts ./dist/index.d.ts", | ||
"clean": "rimraf cache out dist typechain abi", | ||
"docs": "hardhat dodoc", | ||
"lint": "yarn lint:sol && yarn prettier:check", | ||
"lint": "pnpm lint:sol && pnpm prettier:check", | ||
"lint:sol": "solhint -w 5 \"./{src,test}/**/*.sol\"", | ||
"prettier": "prettier --config \"./.prettierrc.yml\" --write \"**/*.{json,md,sol,yml}\"", | ||
"prettier:check": "prettier --config \"./.prettierrc.yml\" --check \"**/*.{json,md,sol,yml}\"", | ||
"slither": "slither ./src", | ||
"test": "yarn test:hardhat && yarn test:forge", | ||
"test": "pnpm test:hardhat && pnpm test:forge", | ||
"test:forge": "forge test", | ||
"test:hardhat": "hardhat test", | ||
"test:gas": "forge test --match-path test/foundry/PerformanceTesting.t.sol --gas-report", | ||
"hardhat": "hardhat" | ||
}, | ||
"dependencies": { | ||
"@hypercerts-org/contracts": "link:" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"baseUrl": ".", | ||
"allowSyntheticDefaultImports": true, | ||
"assumeChangesOnlyAffectDirectDependencies": true, | ||
"declaration": true, | ||
"declarationMap": true, | ||
"emitDecoratorMetadata": true, | ||
"esModuleInterop": true, | ||
"experimentalDecorators": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"incremental": true, | ||
"composite": true, | ||
"lib": ["esnext"], | ||
"moduleResolution": "nodenext", | ||
"noImplicitThis": true, | ||
"lib": ["es6"], | ||
"module": "ESNext", | ||
"moduleResolution": "node", | ||
"noImplicitAny": true, | ||
"noImplicitOverride": false, | ||
"removeComments": true, | ||
"resolveJsonModule": true, | ||
"rootDir": "src", | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"strictNullChecks": true | ||
"target": "ESNext", | ||
"outDir": "build" | ||
}, | ||
"files": ["src/index.ts"], | ||
"include": ["src/**/*.ts", "src/abi/*.json"], | ||
"exclude": ["node_modules"] | ||
"include": ["./src"], | ||
"files": [ | ||
"src/abi/HypercertMinter.json", | ||
"src/types/src/AllowlistMinter.ts", | ||
"src/types/src/HypercertMinter.ts", | ||
"src/types/src/interfaces/IAllowlist.ts", | ||
"src/types/src/interfaces/IHypercertToken.ts", | ||
"src/types/src/libs/Errors.ts" | ||
] | ||
} |
Oops, something went wrong.