Skip to content

Commit

Permalink
SDK: Cleaner scripts (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin authored May 21, 2024
1 parent eb00f09 commit a660f24
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 56 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.PHONY: clean
clean:
rm -rf node_modules
npm run clean
cd solana && $(MAKE) clean

.PHONY: clean-install
Expand Down
9 changes: 5 additions & 4 deletions evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm run build:esm && npm run build:cjs",
"generate": "typechain --target=ethers-v5 --out-dir=ts/src/types out/*/*.json"
"generate": "typechain --target=ethers-v5 --out-dir=ts/src/types out/*/*.json",
"clean":"rm -rf dist && rm -rf node_modules"
},
"dependencies": {
"@wormhole-foundation/sdk-base":"^0.7.0-beta.3",
"@wormhole-foundation/sdk-definitions":"^0.7.0-beta.3",
"@wormhole-foundation/sdk-evm":"^0.7.0-beta.3",
"@wormhole-foundation/sdk-base":"^0.7.0-beta.4",
"@wormhole-foundation/sdk-definitions":"^0.7.0-beta.4",
"@wormhole-foundation/sdk-evm":"^0.7.0-beta.4",
"@wormhole-foundation/example-liquidity-layer-definitions":"0.0.1",
"ethers": "^5.7.2"
},
Expand Down
74 changes: 37 additions & 37 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build": "npm run build --workspaces --if-present",
"generate":"npm run generate --workspaces --if-present",
"pack":"npm run build && npm pack --workspaces",
"build:universal":"npm run build --workspace universal/ts"
"build:universal":"npm run build --workspace universal/ts",
"clean":"npm run clean --workspaces --if-present"
},
"devDependencies": {
"typescript": "^5.4.5"
Expand Down
11 changes: 6 additions & 5 deletions solana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check",
"build:esm":"npx tsc -p tsconfig.esm.json",
"build:cjs":"npx tsc -p tsconfig.cjs.json",
"build":"npm run build:esm && npm run build:cjs"
"build":"npm run build:esm && npm run build:cjs",
"clean":"rm -rf dist && rm -rf node_modules"
},
"dependencies": {
"@certusone/wormhole-spydk": "^0.0.1",
"@wormhole-foundation/example-liquidity-layer-definitions": "0.0.1",
"@wormhole-foundation/sdk-base":"^0.7.0-beta.3",
"@wormhole-foundation/sdk-definitions":"^0.7.0-beta.3",
"@wormhole-foundation/sdk-solana":"^0.7.0-beta.3",
"@wormhole-foundation/sdk-solana-core":"^0.7.0-beta.3",
"@wormhole-foundation/sdk-base":"^0.7.0-beta.4",
"@wormhole-foundation/sdk-definitions":"^0.7.0-beta.4",
"@wormhole-foundation/sdk-solana":"^0.7.0-beta.4",
"@wormhole-foundation/sdk-solana-core":"^0.7.0-beta.4",
"@coral-xyz/anchor": "^0.30.0",
"@solana/spl-token": "^0.4.6",
"@solana/spl-token-group":"^0.0.4",
Expand Down
4 changes: 2 additions & 2 deletions solana/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"rootDir": "ts/src",
"rootDir": "ts",
"resolveJsonModule": true,
"esModuleInterop": true,
"module": "ESNext",
"moduleResolution": "Bundler"
},
"include": ["ts/src/**/*.ts", "ts/src/**/*.json"]
"include": ["ts/src", "ts/src/**/*.json"]
}
9 changes: 5 additions & 4 deletions solver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
"scripts": {
"execute":"tsx src/executeOrder/app.ts",
"improve":"tsx src/improveOffer/app.ts",
"relayer":"tsx src/vaaAuctionRelayer/app/ts"
"relayer":"tsx src/vaaAuctionRelayer/app/ts",
"clean":"rm -rf node_modules"
},
"dependencies": {
"@wormhole-foundation/sdk-base":"^0.7.0-beta.3",
"@wormhole-foundation/sdk-definitions":"^0.7.0-beta.3",
"@wormhole-foundation/sdk-solana":"^0.7.0-beta.3",
"@wormhole-foundation/sdk-base":"^0.7.0-beta.4",
"@wormhole-foundation/sdk-definitions":"^0.7.0-beta.4",
"@wormhole-foundation/sdk-solana":"^0.7.0-beta.4",
"@wormhole-foundation/example-liquidity-layer-solana":"0.0.1",
"@wormhole-foundation/example-liquidity-layer-evm":"0.0.1",
"@solana/spl-token": "^0.4.6"
Expand Down
7 changes: 4 additions & 3 deletions universal/ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm run build:esm && npm run build:cjs",
"test:layouts":"npx ts-mocha -p ./tsconfig.json tests/layouts.ts",
"test":"npm run test:layouts"
"test":"npm run test:layouts",
"clean":"rm -rf node_modules && rm -rf dist"
},
"dependencies": {
"@wormhole-foundation/sdk-base":"^0.7.0-beta.3",
"@wormhole-foundation/sdk-definitions":"^0.7.0-beta.3"
"@wormhole-foundation/sdk-base":"^0.7.0-beta.4",
"@wormhole-foundation/sdk-definitions":"^0.7.0-beta.4"
},
"devDependencies": {
"envfile": "^6.18.0",
Expand Down

0 comments on commit a660f24

Please sign in to comment.