Skip to content

Commit 3ca2e1e

Browse files
committed
Moved imports to deno.json for worker
1 parent 4c24356 commit 3ca2e1e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

worker/deno.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"name": "@effectionx/worker",
33
"version": "0.1.1",
44
"license": "MIT",
5-
"exports": "./mod.ts"
5+
"exports": "./mod.ts",
6+
"imports": {
7+
"effection": "npm:effection@4.0.0-alpha.4"
8+
}
69
}

worker/test-assets/shutdown-worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { call, suspend } from "npm:effection@4.0.0-alpha.4";
1+
import { call, suspend } from "effection";
22
import { workerMain } from "../worker.ts";
33

44
export interface ShutdownWorkerParams {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { suspend } from "npm:effection@4.0.0-alpha.4";
1+
import { suspend } from "effection";
22
import { workerMain } from "../worker.ts";
33

44
await workerMain(suspend);

0 commit comments

Comments
 (0)