Skip to content

Commit

Permalink
Make the rust dev build use the dev profile, make better use of turbo…
Browse files Browse the repository at this point in the history
… and run build:dev before listeling for rust file changes
  • Loading branch information
dzervas committed May 24, 2024
1 parent a9fc641 commit f3ad048
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@
"dev": "turbo run dev",
"serve": "turbo run serve",
"test": "turbo run test",
"test:rust": "cd packages/cadmium && cargo test",
"clean": "turbo run clean",
"lint": "turbo run lint",
"format": "turbo run format",
"build:wasm:dev": "wasm-pack build --target web packages/cadmium --dev --no-typescript",
"build:wasm": "wasm-pack build --target web packages/cadmium && ./packages/cadmium/patchpackage.cjs"
"format": "turbo run format"
},
"devDependencies": {
"@playwright/test": "^1.42.1",
"turbo": "^1.13.2"
},
"engines": {
"node": ">=20.13.1",
"pnpm": ">=9.1.2"
"pnpm": ">=9.1.0"
}
}
}
8 changes: 4 additions & 4 deletions packages/cadmium/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "cadmium-root",
"scripts": {
"dev": "onchange 'src/**/*.rs' -- pnpm run build:dev",
"build:dev": "cargo check && pnpm run build:wasm",
"build:wasm": "wasm-pack build --target web && ./patchpackage.cjs",
"dev": "pnpm run build:dev; onchange 'src/**/*.rs' -- pnpm run build:dev",
"build:dev": "cargo check && wasm-pack build --target web --dev && ./patchpackage.cjs",
"build": "wasm-pack build --target web && ./patchpackage.cjs",
"test": "cargo test"
},
"devDependencies": {
"onchange": "^7.1.0"
}
}
}

0 comments on commit f3ad048

Please sign in to comment.