Skip to content

Commit f6fdba2

Browse files
committed
feat: add SDK E2E tests and configure npm publishing for all packages
1 parent 8bc2036 commit f6fdba2

7 files changed

Lines changed: 886 additions & 7 deletions

File tree

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99
"build": "turbo build",
1010
"typecheck": "turbo typecheck",
1111
"lint": "turbo lint",
12-
"test": "turbo test"
12+
"test": "turbo test",
13+
"test:e2e": "turbo test:e2e",
14+
"dev": "bun run --filter @sandchest/api dev",
15+
"db:generate": "bun run --filter @sandchest/db db:generate",
16+
"db:push": "bun run --filter @sandchest/db db:push",
17+
"db:migrate": "bun run --filter @sandchest/db db:migrate",
18+
"db:studio": "bun run --filter @sandchest/db db:studio"
1319
},
1420
"devDependencies": {
1521
"@eslint/js": "^10.0.1",

packages/cli/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
{
22
"name": "@sandchest/cli",
33
"version": "0.0.1",
4+
"description": "CLI for managing Sandchest sandbox environments",
45
"type": "module",
56
"bin": {
67
"sandchest": "./dist/index.js"
78
},
9+
"files": ["dist"],
10+
"keywords": ["sandchest", "cli", "sandbox", "firecracker", "code-execution"],
11+
"license": "MIT",
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/sandchest/sandchest",
15+
"directory": "packages/cli"
16+
},
17+
"engines": {
18+
"node": ">=20"
19+
},
20+
"publishConfig": {
21+
"access": "public"
22+
},
823
"scripts": {
924
"build": "tsup",
1025
"typecheck": "tsc --noEmit",

packages/contract/package.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,32 @@
11
{
22
"name": "@sandchest/contract",
33
"version": "0.0.1",
4+
"description": "Shared types, protobuf definitions, and ID utilities for the Sandchest platform",
45
"type": "module",
56
"main": "./dist/index.js",
67
"types": "./dist/index.d.ts",
78
"exports": {
89
".": {
9-
"import": "./dist/index.js",
10-
"types": "./dist/index.d.ts"
10+
"import": {
11+
"types": "./dist/index.d.ts",
12+
"default": "./dist/index.js"
13+
}
1114
}
1215
},
16+
"files": ["dist"],
17+
"keywords": ["sandchest", "contract", "types", "protobuf", "sandbox"],
18+
"license": "MIT",
19+
"repository": {
20+
"type": "git",
21+
"url": "https://github.com/sandchest/sandchest",
22+
"directory": "packages/contract"
23+
},
24+
"engines": {
25+
"node": ">=20"
26+
},
27+
"publishConfig": {
28+
"access": "public"
29+
},
1330
"scripts": {
1431
"build": "tsc",
1532
"typecheck": "tsc --noEmit",

packages/mcp/package.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@sandchest/mcp",
33
"version": "0.0.1",
4+
"description": "MCP server for Sandchest sandbox environments",
45
"type": "module",
56
"bin": {
67
"sandchest-mcp": "./dist/index.js"
@@ -9,10 +10,26 @@
910
"types": "./dist/index.d.ts",
1011
"exports": {
1112
".": {
12-
"import": "./dist/index.js",
13-
"types": "./dist/index.d.ts"
13+
"import": {
14+
"types": "./dist/index.d.ts",
15+
"default": "./dist/index.js"
16+
}
1417
}
1518
},
19+
"files": ["dist"],
20+
"keywords": ["sandchest", "mcp", "model-context-protocol", "sandbox", "ai-agent"],
21+
"license": "MIT",
22+
"repository": {
23+
"type": "git",
24+
"url": "https://github.com/sandchest/sandchest",
25+
"directory": "packages/mcp"
26+
},
27+
"engines": {
28+
"node": ">=20"
29+
},
30+
"publishConfig": {
31+
"access": "public"
32+
},
1633
"scripts": {
1734
"build": "tsc",
1835
"typecheck": "tsc --noEmit",

packages/sdk-ts/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,15 @@
2929
"engines": {
3030
"node": ">=20"
3131
},
32+
"publishConfig": {
33+
"access": "public"
34+
},
3235
"scripts": {
3336
"build": "tsup",
3437
"typecheck": "tsc --noEmit",
3538
"lint": "eslint src/",
36-
"test": "bun test"
39+
"test": "bun test --ignore='src/e2e.test.ts'",
40+
"test:e2e": "bun test src/e2e.test.ts"
3741
},
3842
"dependencies": {
3943
"@sandchest/contract": "workspace:*"

0 commit comments

Comments
 (0)