Skip to content

Commit 53d0062

Browse files
committed
chore(workspace): register tools/* + vendor/* as workspace packages
Adds two workspace globs to pnpm-workspace.yaml so internal developer utilities can declare workspace dependencies without brittle relative paths: - tools/* — developer-only utilities (audits, codemods, scripts). Not published, not part of the dist tree. - vendor/* — vendored upstream code shipped as workspace packages so tools can reference it via `workspace:*` instead of `../../../vendor/...`. Adds matching infrastructure entries so vendor/ + tools/ never leak into linter, formatter, size-check, or published-exports output: - .oxfmtrc.json: skip **/vendor. - .oxlintrc.json: skip **/vendor. - scripts/validate/file-size.mts: skip 'vendor' in SKIP_DIRS. - scripts/fix/generate-package-exports.mts: ignore tools/** and vendor/** so the published @socketsecurity/lib package.json doesn't pick up developer-tool exports on every regen. Setup for the prim primordials-audit tool landing in a follow-up commit.
1 parent 33fd9cf commit 53d0062

5 files changed

Lines changed: 18 additions & 1 deletion

File tree

.oxfmtrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"perf/**/fixtures",
3434
"scripts/templates",
3535
"test/**/fixtures",
36-
"test/**/packages"
36+
"test/**/packages",
37+
"tools/**/node_modules",
38+
"**/vendor"
3739
]
3840
}

.oxlintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"**/patches",
5757
"**/test/fixtures",
5858
"**/test/packages",
59+
"**/vendor",
5960
"**/*.d.ts",
6061
"**/*.d.ts.map",
6162
"**/*.tsbuildinfo"

pnpm-workspace.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
# Register .claude/hooks/* as workspace packages so taze (run via
22
# `pnpm run update`) sees and bumps their package.json manifests
33
# alongside the root. Keeps hook deps in lockstep with the main tree.
4+
#
5+
# tools/* — developer-only utilities (audit/codemod scripts). Not
6+
# published, not part of the dist tree.
7+
#
8+
# vendor/* — vendored upstream code shipped as workspace packages so
9+
# tools can reference it via `workspace:*` instead of brittle
10+
# `../../../vendor/...` relative paths.
411
packages:
512
- .claude/hooks/*
13+
- tools/*
14+
- vendor/*
615

716
allowBuilds:
817
esbuild: true

scripts/fix/generate-package-exports.mts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ async function main(): Promise<void> {
8181
'dist/external/**',
8282
'scripts/**',
8383
'src/**',
84+
// tools/ and vendor/ are workspace packages for internal use,
85+
// not public exports of @socketsecurity/lib.
86+
'tools/**',
87+
'vendor/**',
8488
// Files prefixed with _ are private helpers, not public API.
8589
'dist/**/_*',
8690
],

scripts/validate/file-size.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const SKIP_DIRS = new Set([
3737
'.vercel',
3838
'.vscode',
3939
'tmp',
40+
'vendor',
4041
])
4142

4243
/**

0 commit comments

Comments
 (0)