From 3093cbddca79aaab4ea1dfb83edaaa65be12ff50 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Thu, 20 Jan 2022 14:50:25 -0800 Subject: [PATCH 1/2] package.json: use file extensions for esmodules compatibility --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 09bdd66..7834c48 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "bin": { "crc32": "./bin/crc32.njs" }, - "main": "./crc32", - "types": "types", + "main": "./crc32.js", + "types": "./types/index.d.ts", "dependencies": { "printj": "~1.1.0", "exit-on-epipe": "~1.0.1" -- 2.34.1 From 49af36393a109910880a8647506a0951eb0eb6d9 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Thu, 20 Jan 2022 20:21:19 -0800 Subject: [PATCH 2/2] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7834c48..5f3655e 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "bin": { "crc32": "./bin/crc32.njs" }, - "main": "./crc32.js", - "types": "./types/index.d.ts", + "main": "crc32.js", + "types": "types/index.d.ts", "dependencies": { "printj": "~1.1.0", "exit-on-epipe": "~1.0.1" -- 2.34.1