-
Notifications
You must be signed in to change notification settings - Fork 3
patch #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
patch #657
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||
| { | ||||||
| "name": "browzarr", | ||||||
| "version": "0.7.0", | ||||||
| "version": "0.7.1", | ||||||
| "description": "A browser-based visualization toolkit for exploring and analyzing Zarr data stores.", | ||||||
| "type": "module", | ||||||
| "keywords": [ | ||||||
|
|
@@ -46,13 +46,12 @@ | |||||
| "browzarr": "./cli.mjs" | ||||||
| }, | ||||||
| "scripts": { | ||||||
| "postinstall": "node src/hooks/copy-wasm.mjs", | ||||||
| "prBuild": "pnpm buildRepo", | ||||||
| "prLint": "pnpm lint", | ||||||
| "dev": "next dev", | ||||||
| "dev": "node src/hooks/copy-wasm.mjs && next dev", | ||||||
| "buildRepo": "pnpm rmBuild && pnpm build", | ||||||
| "rmBuild": "pnpm -r exec rm -rf out", | ||||||
| "build": "next build", | ||||||
| "build": "node src/hooks/copy-wasm.mjs && next build", | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Following the suggestion to move
Suggested change
|
||||||
| "start": "next start", | ||||||
| "prepublishOnly": "pnpm run rmBuild && pnpm run build", | ||||||
| "test": "vitest", | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script
copy-wasm.mjsis located insrc/hooks/. In React/Next.js projects,src/hooks/is conventionally reserved for custom React hooks (e.g.,useSomething). Placing a build-time Node.js script here can be confusing for maintainers. Consider moving this script to a root-levelscripts/directory (e.g.,scripts/copy-wasm.mjs) to keep the project structure clean and conventional. (Note: You will also need to move the actual file to the new location).