Skip to content

Commit

Permalink
chore: include types in the release package
Browse files Browse the repository at this point in the history
  • Loading branch information
b00ste committed Mar 1, 2024
1 parent c6d840e commit 2679dfe
Show file tree
Hide file tree
Showing 12 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
npm run build
npm run build:js
npm run package
npm run build:types
- name: Publish on NPM
if: ${{ steps.release.outputs.release_created }}
Expand Down
3 changes: 3 additions & 0 deletions packages/lsp-smart-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"!contracts/Mocks/**/*.sol",
"artifacts/*.json",
"dist",
"types",
"!types/factories",
"./README.md",
"./CONTRIBUTING.md",
"./LICENSE"
Expand Down Expand Up @@ -53,6 +55,7 @@
"build": "hardhat compile --show-stack-traces",
"build:foundry": "forge build",
"build:js": "unbuild",
"build:types": "npx typechain --target=ethers-v6 ./artifacts/*.json --out-dir types",
"build:docs": "hardhat dodoc && prettier -w ./docs",
"clean": "hardhat clean && rm -Rf dist/",
"format": "prettier --write .",
Expand Down
4 changes: 4 additions & 0 deletions packages/lsp0-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"!contracts/Mocks/**/*.sol",
"artifacts/*.json",
"dist",
"types",
"!types/factories",
"./README.md"
],
"keywords": [
Expand All @@ -34,8 +36,10 @@
"Solidity"
],
"scripts": {
"package": "hardhat prepare-package",
"build": "hardhat compile --show-stack-traces",
"build:js": "unbuild",
"build:types": "npx typechain --target=ethers-v6 ./artifacts/*.json --out-dir types",
"clean": "hardhat clean && rm -Rf dist/",
"format": "prettier --write .",
"lint": "eslint . --ext .ts,.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/lsp1delegate-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"!contracts/Mocks/**/*.sol",
"artifacts/*.json",
"dist",
"types",
"!types/factories",
"./README.md"
],
"keywords": [
Expand All @@ -34,8 +36,10 @@
"Solidity"
],
"scripts": {
"package": "hardhat prepare-package",
"build": "hardhat compile --show-stack-traces",
"build:js": "unbuild",
"build:types": "npx typechain --target=ethers-v6 ./artifacts/*.json --out-dir types",
"clean": "hardhat clean && rm -Rf dist/",
"format": "prettier --write .",
"lint": "eslint . --ext .ts,.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/lsp23-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"!contracts/Mocks/**/*.sol",
"artifacts/*.json",
"dist",
"types",
"!types/factories",
"./README.md"
],
"keywords": [
Expand All @@ -34,7 +36,9 @@
"Solidity"
],
"scripts": {
"package": "hardhat prepare-package",
"build": "hardhat compile --show-stack-traces",
"build:types": "npx typechain --target=ethers-v6 ./artifacts/*.json --out-dir types",
"clean": "hardhat clean && rm -Rf dist/",
"format": "prettier --write .",
"lint": "eslint . --ext .ts,.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/lsp4-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"!contracts/Mocks/**/*.sol",
"artifacts/*.json",
"dist",
"types",
"!types/factories",
"./README.md"
],
"keywords": [
Expand All @@ -34,8 +36,10 @@
"Solidity"
],
"scripts": {
"package": "hardhat prepare-package",
"build": "hardhat compile --show-stack-traces",
"build:js": "unbuild",
"build:types": "npx typechain --target=ethers-v6 ./artifacts/*.json --out-dir types",
"clean": "hardhat clean && rm -Rf dist/",
"format": "prettier --write .",
"lint": "eslint . --ext .ts,.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/lsp6-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"!contracts/Mocks/**/*.sol",
"artifacts/*.json",
"dist",
"types",
"!types/factories",
"./README.md"
],
"keywords": [
Expand All @@ -34,9 +36,11 @@
"Solidity"
],
"scripts": {
"package": "hardhat prepare-package",
"build": "hardhat compile --show-stack-traces",
"build:foundry": "forge build",
"build:js": "unbuild",
"build:types": "npx typechain --target=ethers-v6 ./artifacts/*.json --out-dir types",
"clean": "hardhat clean && rm -Rf dist/",
"format": "prettier --write .",
"lint": "eslint . --ext .ts,.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/lsp7-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"!contracts/Mocks/**/*.sol",
"artifacts/*.json",
"dist",
"types",
"!types/factories",
"./README.md"
],
"keywords": [
Expand All @@ -34,8 +36,10 @@
"Solidity"
],
"scripts": {
"package": "hardhat prepare-package",
"build": "hardhat compile --show-stack-traces",
"build:js": "unbuild",
"build:types": "npx typechain --target=ethers-v6 ./artifacts/*.json --out-dir types",
"clean": "hardhat clean && rm -Rf dist/",
"format": "prettier --write .",
"lint": "eslint . --ext .ts,.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/lsp8-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"!contracts/Mocks/**/*.sol",
"artifacts/*.json",
"dist",
"types",
"!types/factories",
"./README.md"
],
"keywords": [
Expand All @@ -34,8 +36,10 @@
"Solidity"
],
"scripts": {
"package": "hardhat prepare-package",
"build": "hardhat compile --show-stack-traces",
"build:js": "unbuild",
"build:types": "npx typechain --target=ethers-v6 ./artifacts/*.json --out-dir types",
"clean": "hardhat clean && rm -Rf dist/",
"format": "prettier --write .",
"lint": "eslint . --ext .ts,.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/lsp9-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"!contracts/Mocks/**/*.sol",
"artifacts/*.json",
"dist",
"types",
"!types/factories",
"./README.md"
],
"keywords": [
Expand All @@ -34,8 +36,10 @@
"Solidity"
],
"scripts": {
"package": "hardhat prepare-package",
"build": "hardhat compile --show-stack-traces",
"build:js": "unbuild",
"build:types": "npx typechain --target=ethers-v6 ./artifacts/*.json --out-dir types",
"clean": "hardhat clean && rm -Rf dist/",
"format": "prettier --write .",
"lint": "eslint . --ext .ts,.js",
Expand Down
11 changes: 11 additions & 0 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,21 @@
"EVM",
"Solidity"
],
"files": [
"contracts/**/*.sol",
"!contracts/Mocks/**/*.sol",
"artifacts/*.json",
"dist",
"types",
"!types/factories",
"./README.md"
],
"scripts": {
"package": "hardhat prepare-package",
"build": "hardhat compile --show-stack-traces",
"build:foundry": "forge build",
"build:js": "unbuild",
"build:types": "npx typechain --target=ethers-v6 ./artifacts/*.json --out-dir types",
"clean": "hardhat clean && rm -Rf dist/",
"format": "prettier --write .",
"lint": "eslint . --ext .ts,.js",
Expand Down
4 changes: 4 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"cache": true
},
"clean": {},
"build:types": {
"outputs": ["**/types/**"],
"cache": true
},
"lint": {
"env": [
"CONTRACT_VERIFICATION_TESTNET_PK",
Expand Down

0 comments on commit 2679dfe

Please sign in to comment.