pnpm install
pnpm start
pnpm start
- start myHDF5
pnpm install
- install dependenciespnpm add [-D] <pkg-name>
- add a dependencypnpm [run] <script> [--<arg>]
- run a scriptpnpm [exec] <binary>
- run a binary located innode_modules/.bin
(equivalent tonpx <pkg-name>
for a package installed in the workspace)pnpm dlx <pkg-name>
- fetch a package from the registry and run its default command binary (equivalent tonpx <pkg-name>
)pnpm why <pkg-name>
- show all packages that depend on the specified packagepnpm outdated
- list outdated dependenciespnpm up -L <pkg-name>
- update a package to the latest version
- Run
pnpm outdated
to list dependencies that can be upgraded. - Read the changelogs and release notes of the dependencies you'd like to upgrade. Look for potential breaking changes, and for bug fixes and new features that may help improve the codebase.
- Run
pnpm up -L <pkg-name>
to upgrade a dependency to the latest version. Alternatively, you can also editpackage.json
manually and runpnpm install
(but make sure to specify an exact dependency version rather than a range – i.e. don't prefix the version with a caret or a tilde).
If you run into peer dependency warnings and other package resolution issues, note that
pnpm
offers numerous solutions for dealing with them, likepnpm.peerDependencyRules.allowedVersions
.
DefinitelyTyped packages
The major versions of @types/*
packages must be aligned with the major
versions of the packages they provide types for—i.e. foo@x.y.z
requires
@types/foo@^x
.
For convenience, @types
packages can be quickly upgraded to their latest
minor/patch version by running pnpm up
.
pnpm build
- build myHDF5 for productionpnpm preview
- serve production build locally
pnpm lint
- run all linting and code formatting commandspnpm lint:eslint
- lint all TS and JS files with ESLintpnpm lint:tsc
- type-check the whole project, test files includedpnpm lint:prettier
- check that all files have been formatted with Prettierpnpm analyze
- inspect the size and content of the JS bundles (afterpnpm build
)
pnpm lint:eslint --fix
- auto-fix linting issuespnpm lint:prettier --write
- format all files with Prettier
Most editors support fixing and formatting files automatically on save. The configuration for VSCode is provided out of the box, so all you need to do is install the recommended extensions.
- The project's
main
branch is manually deployed to Netlify.