Use this baseline for Node-based example clients in this repository.
- Use
pnpmas package manager withpackageManagerpinned inpackage.json. - Pin direct dependencies to exact versions (no
latest,^,~). - Commit and use
pnpm-lock.yamlas the single lockfile source of truth. - Run installs in CI with
pnpm install --frozen-lockfile. - Keep dependency build scripts restricted to an explicit allowlist.
For project-level pnpm-workspace.yaml:
packages:
- .
minimumReleaseAge: 1440
blockExoticSubdeps: true
strictDepBuilds: true
savePrefix: ""For package.json build-script allowlist:
{
"pnpm": {
"onlyBuiltDependencies": ["esbuild", "lightningcss"]
}
}Minimum CI checks for Node example clients:
pnpm install --frozen-lockfilepnpm typecheckpnpm lintpnpm testpnpm buildpnpm audit --audit-level high --ignore GHSA-rmmr-r34h-pfm5
GHSA-rmmr-r34h-pfm5 is currently over-broad for TanStack dependencies. Keep this ignore narrow and temporary, and remove it once upstream advisory metadata is corrected.