Skip to content

Commit

Permalink
feat(scripts): Update to Node 20 & Replace ts-node with tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
wottpal committed Nov 26, 2023
1 parent 64bf46b commit 896526a
Show file tree
Hide file tree
Showing 3 changed files with 298 additions and 148 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v20
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"test": "bash test-all.sh",
"build": "bash build-all.sh",
"node": "substrate-contracts-node --dev --base-path ./.node-data",
"script:cwd": "node --no-warnings=ExperimentalWarning --loader ts-node/esm",
"script": "f() { node --no-warnings=ExperimentalWarning --loader ts-node/esm ./scripts/$1; }; f \"$@\"",
"script": "f() { tsx ./scripts/$1; }; f \"$@\"",
"deploy": "pnpm run script deploy",
"contracts-ui": "open https://contracts-ui.substrate.io/?rpc=ws://127.0.0.1:9944",
"explorer-ui": "open https://polkadot.js.org/apps/#/explorer?rpc=ws://127.0.0.1:9944",
Expand All @@ -31,7 +30,7 @@
"@polkadot/util": "^12.6.1",
"@polkadot/util-crypto": "^12.6.1",
"@scio-labs/use-inkathon": "0.6.0",
"@types/node": "^18.18.13",
"@types/node": "^20.10.0",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"bn.js": "^5.2.1",
Expand All @@ -44,7 +43,7 @@
"js-sha3": "^0.9.2",
"merkletreejs": "^0.3.11",
"prettier": "^3.1.0",
"ts-node": "^10.9.1",
"tsx": "^4.5.0",
"typescript": "^5.3.2"
}
}
Loading

0 comments on commit 896526a

Please sign in to comment.