Skip to content

chore: add prim workspace devDep + expose xport.schema.json export#191

Merged
John-David Dalton (jdalton) merged 6 commits into
mainfrom
prim-workspace-devdep
Apr 26, 2026
Merged

chore: add prim workspace devDep + expose xport.schema.json export#191
John-David Dalton (jdalton) merged 6 commits into
mainfrom
prim-workspace-devdep

Conversation

@jdalton

Copy link
Copy Markdown
Collaborator

Summary

Two related package.json bumps:

  • prim: workspace:* in devDependencies — makes pnpm exec prim work alongside the existing pnpm prim script. Without the devDep, pnpm doesn't symlink tools/prim/'s bin into node_modules/.bin so the exec form failed with Command not found. The pnpm prim npm-script form was unaffected.
  • ./xport.schema.json added to exports — consumers can now import schema from '@socketsecurity/lib/xport.schema.json' from the published package.

Test plan

  • pnpm install — lockfile updates cleanly
  • pnpm exec prim --help — resolves the binary
  • CI passes

ultrathink commit 1cabb284a swaps the wasm boundary to read JS objects
via js_sys handles (no serde_json round-trip) and drops the full regex
crate in favor of regex-lite for AQS under wasm. Pull the rebuilt
artifact in.

Functionality unchanged — 62/62 wasm parity tests pass on the new
binary, including 8 new boundary edge cases (undefined/null options,
sparse arrays, countNodes shape, null start/end on findNodeAt).
…te literal detection

Sync from template@000943d. Hook + gate now flag template-literal build
paths; allowlist replaces ±2 line tolerance with exact-line OR
snippet_hash match. New --show-hashes flag prints SHA-256 prefix for
allowlist entries that survive reformatting.
…ents.mts

Sync from socket-repo-template@bb21ab5. Mantra: 1 path, 1 reference.
Hook and gate now both import STAGE_SEGMENTS, BUILD_ROOT_SEGMENTS,
MODE_SEGMENTS, and KNOWN_SIBLING_PACKAGES from a single canonical
.claude/hooks/path-guard/segments.mts so they can no longer drift on
what counts as a build-output path.
Pre-existing format drift in 7 files — collapsed multi-line array/arg
literals where oxfmt would have inlined them. No semantic changes.
Surfaced by the pre-commit hook running `oxfmt --check .` against the
whole repo.
Two related package.json bumps:

  * `prim: workspace:*` in devDependencies — makes `pnpm exec prim`
    work alongside the existing `pnpm prim` script. Without the
    devDep, pnpm doesn't symlink tools/prim's bin into
    node_modules/.bin so the `exec` form failed with "Command not
    found". `pnpm prim` (npm-script form) was unaffected.
  * `./xport.schema.json` added to the package's exports map so
    consumers can `import schema from '@socketsecurity/lib/xport.schema.json'`.
@jdalton John-David Dalton (jdalton) merged commit ad89f70 into main Apr 26, 2026
10 checks passed
@jdalton John-David Dalton (jdalton) deleted the prim-workspace-devdep branch April 26, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant