Skip to content

Commit 8383e0b

Browse files
committed
fix: add legacy main field
1 parent 9f1d150 commit 8383e0b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"lib",
3333
"!**/*.spec.js"
3434
],
35+
"main": "./lib/commonjs/stream.js",
36+
"types": "./lib/commonjs/stream.d.ts",
3537
"exports": {
3638
"./package.json": "./package.json",
3739
".": {

src/stream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { hostname } from 'node:os'
22
import { ack, createClient, initStreams, readAckDelete } from './redis.js'
3-
import {
3+
import type {
44
RedisStreamOptions,
55
RedisClient,
66
XEntryResult,

0 commit comments

Comments
 (0)