@playcademy/sandbox 0.3.13 → 0.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +77713 -78095
- package/dist/config.js +40 -14
- package/dist/constants.js +75 -5
- package/dist/infrastructure/api/index.d.ts +1 -1
- package/dist/mocks/timeback.d.ts +1 -1
- package/dist/pglite.data +0 -0
- package/dist/pglite.wasm +0 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +77671 -78059
- package/dist/test.d.ts +11 -0
- package/package.json +10 -3
package/dist/test.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface SandboxTestContext {
|
|
2
|
+
url: string;
|
|
3
|
+
reset: () => Promise<void>;
|
|
4
|
+
stop: () => Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Spin up an in-memory sandbox server (PGlite) for integration tests.
|
|
8
|
+
* The server starts once and is reused across a test file.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createTestSandbox(preferredPort?: number): Promise<SandboxTestContext>;
|
|
11
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcademy/sandbox",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"description": "Local development server for Playcademy game development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
"./constants": {
|
|
20
20
|
"import": "./dist/constants.js",
|
|
21
21
|
"types": "./dist/constants.d.ts"
|
|
22
|
+
},
|
|
23
|
+
"./test": {
|
|
24
|
+
"import": "./src/test.ts",
|
|
25
|
+
"types": "./src/test.ts"
|
|
22
26
|
}
|
|
23
27
|
},
|
|
24
28
|
"bin": {
|
|
@@ -29,7 +33,6 @@
|
|
|
29
33
|
],
|
|
30
34
|
"scripts": {
|
|
31
35
|
"build": "bun run build.ts",
|
|
32
|
-
"check": "bunx @typescript/native-preview --noEmit",
|
|
33
36
|
"dev": "bun --watch src/cli",
|
|
34
37
|
"docs": "typedoc",
|
|
35
38
|
"pub": "bun publish.ts",
|
|
@@ -44,7 +47,8 @@
|
|
|
44
47
|
"hono": "^4.6.3",
|
|
45
48
|
"jose": "^5.2.3",
|
|
46
49
|
"json-colorizer": "^3.0.1",
|
|
47
|
-
"picocolors": "^1.1.1"
|
|
50
|
+
"picocolors": "^1.1.1",
|
|
51
|
+
"zod": "^3.25.53"
|
|
48
52
|
},
|
|
49
53
|
"devDependencies": {
|
|
50
54
|
"@inquirer/prompts": "^7.8.6",
|
|
@@ -53,7 +57,10 @@
|
|
|
53
57
|
"@playcademy/constants": "0.0.1",
|
|
54
58
|
"@playcademy/data": "0.0.1",
|
|
55
59
|
"@playcademy/logger": "0.0.1",
|
|
60
|
+
"@playcademy/sdk": "0.3.2",
|
|
56
61
|
"@playcademy/timeback": "0.0.1",
|
|
62
|
+
"@playcademy/types": "0.0.1",
|
|
63
|
+
"@playcademy/utils": "0.0.1",
|
|
57
64
|
"@types/bun": "latest",
|
|
58
65
|
"aws-jwt-verify": "^5.1.0",
|
|
59
66
|
"rollup": "^4.50.2",
|