Some housekeeping on unnecessary dependencies (#48)

* Some housekeeping on unnecessary dependencies

 * Remove `@types/json-schema` dependency (not used) (`world`)
 * Remove `@types/node` from being a peerDependency (`world`)
 * Move `@types/watchpack` to be a devDependency (`cli`)

* .
This commit is contained in:
Nathan Rajlich
2025-10-25 12:42:09 -07:00
committed by GitHub
parent 5e6789fc18
commit d3a4ed34f4
9 changed files with 29 additions and 1066 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@workflow/world": patch
---
Remove `@types/json-schema` dependency (not used)
+5
View File
@@ -0,0 +1,5 @@
---
"@workflow/world": patch
---
Remove `@types/node` from being a peerDependency
+5
View File
@@ -0,0 +1,5 @@
---
"@workflow/cli": patch
---
Move `@types/watchpack` to be a devDependency
+1 -1
View File
@@ -38,13 +38,13 @@
},
"devDependencies": {
"@types/node": "catalog:",
"@types/watchpack": "2.4.4",
"@workflow/tsconfig": "workspace:*"
},
"dependencies": {
"@oclif/core": "^4.0.0",
"@oclif/plugin-help": "^6.0.0",
"@swc/core": "1.11.24",
"@types/watchpack": "2.4.4",
"@workflow/swc-plugin": "workspace:*",
"@workflow/errors": "workspace:*",
"@workflow/core": "workspace:*",
+2 -2
View File
@@ -119,10 +119,10 @@ export class WorkflowServerWritableStream extends WritableStream<Uint8Array> {
}
const world = getWorld();
super({
write: async (chunk: string | Uint8Array | Buffer) => {
async write(chunk) {
await world.writeToStream(name, chunk);
},
close: async () => {
async close() {
await world.closeStream(name);
},
});
-3
View File
@@ -22,13 +22,10 @@
"dev": "tsc --watch"
},
"peerDependencies": {
"@types/node": "catalog:",
"@types/json-schema": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@types/node": "catalog:",
"@types/json-schema": "catalog:",
"zod": "catalog:",
"@workflow/tsconfig": "workspace:*"
},
+1 -4
View File
@@ -33,10 +33,7 @@ import type {
} from './steps.js';
export interface Streamer {
writeToStream(
name: string,
chunk: string | Uint8Array | Buffer
): Promise<void>;
writeToStream(name: string, chunk: string | Uint8Array): Promise<void>;
closeStream(name: string): Promise<void>;
readFromStream(
name: string,
+10 -1055
View File
File diff suppressed because it is too large Load Diff
-1
View File
@@ -5,7 +5,6 @@ packages:
catalog:
'@biomejs/biome': ^2.2.5
'@types/json-schema': ^7.0.15
'@types/node': 24.6.2
'@vercel/functions': ^3.1.4
'@vercel/oidc': ^3.0.3