Skip to content

Commit bf45b5b

Browse files
authored
feat: add @socketsecurity/lib and @socketsecurity/sdk as workspace packages (#881)
* feat: add @socketsecurity/lib and @socketsecurity/sdk workspace packages Add @socketsecurity/lib v3.2.8 and @socketsecurity/sdk v3.1.3 as internal workspace packages. This establishes the foundation for local development and testing of core infrastructure libraries within the monorepo. - Add packages/lib/ with core utilities and infrastructure for Socket.dev security tools - Add packages/sdk/ providing SDK for Socket API client - Both packages include comprehensive test suites, build scripts, and documentation * chore: add lib and sdk packages to workspace configuration Update pnpm-workspace.yaml to include the new lib and sdk workspace packages for local development and dependency resolution. * refactor: migrate to workspace dependencies for lib and sdk Update all package dependencies to reference @socketsecurity/lib and @socketsecurity/sdk as workspace packages instead of catalog versions. This enables local development and testing of core libraries within the monorepo. Changed packages: - bootstrap - build-infra - cli (adds sdk workspace dependency) - codet5-models-builder - minilm-builder - models - node-smol-builder - onnxruntime - sbom-generator - socket - yoga-layout * chore: remove lib and sdk from root dependencies Remove @socketsecurity/lib and @socketsecurity/sdk from root package dependencies and overrides since they are now managed as workspace packages. Individual packages will reference them via workspace protocol. * chore: update lockfile for workspace package changes Update pnpm-lock.yaml to reflect workspace package structure with lib and sdk as internal workspace dependencies. This lockfile update ensures dependency resolution aligns with the new workspace configuration. * chore: remove duplicate CLAUDE.md files from workspace packages Remove CLAUDE.md files from lib and sdk packages as they duplicate the main CLI CLAUDE.md. Package-specific guidance is already covered in the root CLAUDE.md file.
1 parent 1a8f8b2 commit bf45b5b

File tree

451 files changed

+189546
-491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

451 files changed

+189546
-491
lines changed

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@
3535
"@socketregistry/packageurl-js": "catalog:",
3636
"@socketregistry/yocto-spinner": "catalog:",
3737
"@socketsecurity/config": "catalog:",
38-
"@socketsecurity/lib": "catalog:",
3938
"@socketsecurity/registry": "catalog:",
40-
"@socketsecurity/sdk": "catalog:",
4139
"@types/cmd-shim": "catalog:",
4240
"@types/ink": "catalog:",
4341
"@types/js-yaml": "catalog:",
@@ -110,7 +108,6 @@
110108
"overrides": {
111109
"@octokit/graphql": "catalog:",
112110
"@octokit/request-error": "catalog:",
113-
"@socketsecurity/lib": "catalog:",
114111
"aggregate-error": "catalog:",
115112
"ansi-regex": "catalog:",
116113
"brace-expansion": "catalog:",

packages/bootstrap/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@babel/types": "catalog:",
2323
"@socketsecurity/build-infra": "workspace:*",
2424
"@socketsecurity/cli": "workspace:*",
25-
"@socketsecurity/lib": "catalog:",
25+
"@socketsecurity/lib": "workspace:*",
2626
"del-cli": "catalog:",
2727
"esbuild": "catalog:",
2828
"magic-string": "catalog:",

packages/build-infra/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"dependencies": {
2626
"@babel/parser": "catalog:",
2727
"@babel/traverse": "catalog:",
28-
"@socketsecurity/lib": "catalog:",
28+
"@socketsecurity/lib": "workspace:*",
2929
"magic-string": "catalog:"
3030
}
3131
}

packages/cli/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"@coana-tech/cli": "catalog:",
7676
"@gitbeaker/rest": "catalog:",
7777
"@socketsecurity/build-infra": "workspace:*",
78-
"@socketsecurity/lib": "catalog:",
78+
"@socketsecurity/lib": "workspace:*",
79+
"@socketsecurity/sdk": "workspace:*",
7980
"ajv-dist": "catalog:",
8081
"compromise": "catalog:",
8182
"del-cli": "catalog:",

packages/codet5-models-builder/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
},
1212
"dependencies": {
1313
"@socketsecurity/build-infra": "workspace:*",
14-
"@socketsecurity/lib": "catalog:"
14+
"@socketsecurity/lib": "workspace:*"
1515
}
1616
}

0 commit comments

Comments
 (0)