Skip to content

Commit 120f16c

Browse files
committed
fix: esm import issue in ts
1 parent 35b73e4 commit 120f16c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "jsonarrayfs",
33
"version": "1.1.1",
44
"description": "Efficiently handle JSON array files in Node.js with minimal memory usage. Perfect for processing large data volumes without worrying about memory limitations.",
5+
"main": "./dist/index.js",
6+
"module": "./dist/index.mjs",
7+
"types": "./dist/index.d.ts",
58
"exports": {
69
".": {
710
"require": "./dist/index.js",

src/modules/JsonArrayStreamer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ReadStream, createReadStream } from "fs";
22
import { once } from "events";
3-
import { ElementType, ReadStreamOptions } from "../index.types";
3+
import type { ElementType, ReadStreamOptions } from "../index.types";
44
import { CHARACTER } from "../constants";
55

66
class JsonArrayStreamer<T> {

0 commit comments

Comments
 (0)