Skip to content

Commit 3574664

Browse files
committed
chore(packages): standardize package.json for consistency and safety
Standardized property ordering across 8 socketbin binary packages to follow the same logical grouping as main CLI packages (metadata → entry points → platform restrictions → files → config). Added "private": true to 27 test fixture packages to prevent accidental publishing to npm. Fixtures are for testing only and should never be published.
1 parent ab86e64 commit 3574664

File tree

35 files changed

+110
-83
lines changed

35 files changed

+110
-83
lines changed

packages/cli/test/fixtures/commands/cdxgen/npm/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "cdxgen-test-fixture",
3+
"private": true,
34
"version": "1.0.0",
45
"description": "Test fixture for cdxgen command testing",
56
"main": "index.js",

packages/cli/test/fixtures/commands/cdxgen/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "cdxgen-test-fixture",
3+
"private": true,
34
"version": "1.0.0",
45
"description": "Test fixture for cdxgen command testing",
56
"main": "index.js",

packages/cli/test/fixtures/commands/cdxgen/pnpm/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "cdxgen-test-fixture",
3+
"private": true,
34
"version": "1.0.0",
45
"description": "Test fixture for cdxgen command testing",
56
"main": "index.js",

packages/cli/test/fixtures/commands/cdxgen/yarn/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "cdxgen-test-fixture",
3+
"private": true,
34
"version": "1.0.0",
45
"description": "Test fixture for cdxgen command testing",
56
"main": "index.js",

packages/cli/test/fixtures/commands/fix/e2e-test-js/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "e2e-test-js",
3+
"private": true,
34
"version": "1.0.0",
45
"description": "E2E test fixture with known vulnerabilities",
56
"main": "index.js",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "@monorepo-npm/app",
3+
"private": true,
34
"version": "1.0.0",
45
"description": "App package in monorepo (npm)",
56
"main": "index.js",
67
"dependencies": {
78
"on-headers": "1.0.2"
89
}
9-
}
10+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "@monorepo-npm/lib",
3+
"private": true,
34
"version": "1.0.0",
45
"description": "Lib package in monorepo (npm)",
56
"main": "index.js",
67
"dependencies": {
78
"lodash": "4.17.20"
89
}
9-
}
10+
}

packages/cli/test/fixtures/commands/fix/npm/vulnerable-deps/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "vulnerable-deps-test-npm",
3+
"private": true,
34
"version": "1.0.0",
45
"description": "Test fixture with vulnerable dependencies (npm)",
56
"main": "index.js",
@@ -10,4 +11,4 @@
1011
"devDependencies": {
1112
"axios": "1.3.2"
1213
}
13-
}
14+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "@monorepo/app",
3+
"private": true,
34
"version": "1.0.0",
45
"description": "App package in monorepo",
56
"main": "index.js",
67
"dependencies": {
78
"on-headers": "1.0.2"
89
}
9-
}
10+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "@monorepo/lib",
3+
"private": true,
34
"version": "1.0.0",
45
"description": "Lib package in monorepo",
56
"main": "index.js",
67
"dependencies": {
78
"lodash": "4.17.20"
89
}
9-
}
10+
}

0 commit comments

Comments
 (0)