fix: pnpm install not working#921
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
WalkthroughUpdates CRISP example packaging: modifies the wasm-pack build script to emit into a Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
examples/CRISP/packages/crisp-zk-inputs/package.json (1)
1-23: Add packageManager field for consistency with root package.json.The root
package.jsonspecifies"packageManager": "pnpm@10.7.1+...", which is important for ensuring all workspace members use the same toolchain. Consider adding this field to maintain consistency across the monorepo, especially given this PR targets a pnpm installation issue.Apply this diff to align with the root package configuration:
{ "name": "@enclave/crisp-zk-inputs", "type": "module", "description": "Core logic to pre-compute CRISP ZK inputs (WASM/JavaScript bindings).", "version": "0.1.0", "license": "LGPL-3.0-only", + "packageManager": "pnpm@10.7.1+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808", "repository": {
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
examples/CRISP/package.json(1 hunks)examples/CRISP/packages/crisp-zk-inputs/.gitignore(1 hunks)examples/CRISP/packages/crisp-zk-inputs/package.json(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: integration_prebuild
- GitHub Check: build_enclave_cli
- GitHub Check: test_net
- GitHub Check: rust_unit
- GitHub Check: rust_integration
- GitHub Check: build_sdk
- GitHub Check: test_contracts
🔇 Additional comments (3)
examples/CRISP/packages/crisp-zk-inputs/.gitignore (1)
1-1: LGTM!The
.gitignoreentry correctly prevents build artifacts from being tracked in version control, consistent with the new package output structure.examples/CRISP/packages/crisp-zk-inputs/package.json (1)
11-16: Verify files array completeness for wasm-pack output.The
filesarray lists the expected outputs fromwasm-pack build ... --out-name index. Confirm that all generated artifacts are included, especially if the WASM code generates snippets (inpkg/snippets/*). Also note thatsideEffectsdeclares./pkg/snippets/*but this directory may not exist if no JS snippets are generated by wasm-pack.examples/CRISP/package.json (1)
24-24: Build output path change is correct and properly aligned with package configuration.The package.json for
@enclave/crisp-zk-inputsis already configured to use thepkg/subdirectory as the output location ("main": "pkg/index.js"). The build script update correctly outputs to../../packages/crisp-zk-inputs/pkg, which aligns with this configuration. All imports use the scoped package name and will resolve correctly through npm's package resolution mechanism. No additional changes needed.
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
examples/CRISP/package.json(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: build_sdk
- GitHub Check: build_enclave_cli
- GitHub Check: test_net
- GitHub Check: rust_unit
- GitHub Check: integration_prebuild
- GitHub Check: test_contracts
- GitHub Check: rust_integration
🔇 Additional comments (1)
examples/CRISP/package.json (1)
24-24: Good:--no-packflag addresses previous review feedback.The addition of the
--no-packflag directly addresses cedoor's previous suggestion and aligns with the new package.json setup at the target location, eliminating the need for wasm-pack to auto-generate a package.json.
This solves #920
Summary by CodeRabbit