Skip to content

Commit f2b434e

Browse files
committed
only export types in node build
1 parent 95b1c1c commit f2b434e

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

typescript/packages/common-memory/interface.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import type { Reference } from "merkle-reference";
22

33
export type { Reference };
44

5+
export type Command = {
6+
watch?: In<Selector>;
7+
unwatch?: In<Selector>;
8+
};
9+
510
/**
611
* Unique identifier for the store.
712
*/

typescript/packages/common-memory/lib.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ interface MemoryServiceSession {
3737
router: Router.Router;
3838
}
3939

40-
export type Command = {
41-
watch?: In<Selector>;
42-
unwatch?: In<Selector>;
43-
};
4440

4541
class Service implements MemoryService {
4642
constructor(public router: Router.Router) {}

typescript/packages/common-memory/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "@commontools/memory",
3+
"type": "module",
34
"exports": {
4-
".": "./lib.ts"
5+
".": "./interface.ts"
56
},
67
"dependencies": {
78
"merkle-reference": "^2.0.1"

0 commit comments

Comments
 (0)