Skip to content

Commit

Permalink
chore(evm): use lerna cache (#676)
Browse files Browse the repository at this point in the history
* Update nx.json

* Cache build

* Del target
  • Loading branch information
sebastijankuzner authored Aug 6, 2024
1 parent ab4f8a4 commit b02cad2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"namedInputs": {
"default": ["{projectRoot}/source/**/!(*.test).ts"],
"default": [
"{projectRoot}/source/**/!(*.test).ts",
"{projectRoot}/core/**/*.rs",
"{projectRoot}/bindings/**/*.rs",
"{projectRoot}/**/Cargo.toml"
],
"production": ["default"]
},
"tasksRunnerOptions": {
Expand All @@ -16,7 +21,12 @@
"build": {
"dependsOn": ["^build"],
"inputs": ["default"],
"outputs": ["{projectRoot}/distribution"]
"outputs": [
"{projectRoot}/distribution",
"{projectRoot}/index.d.ts",
"{projectRoot}/index.js",
"{projectRoot}/evm.*.node"
]
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build": "pnpm run clean && pnpm run build-napi",
"build-napi": "napi build --platform --cargo-cwd bindings --release",
"build-napi:debug": "napi build --platform --cargo-cwd bindings",
"clean": "del index.js index.d.ts evm.*.node",
"clean": "del index.js index.d.ts evm.*.node target",
"prepublishOnly": "napi prepublish -t pnpm",
"release": "pnpm publish --access public",
"test": "cargo test --release",
Expand Down

0 comments on commit b02cad2

Please sign in to comment.