From 7de5e13661af0574377ebcfee175563bdc6ac329 Mon Sep 17 00:00:00 2001 From: Ritesh Date: Thu, 3 Dec 2020 20:00:23 +0530 Subject: [PATCH] fix: main and module entry in package --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index cecdc4f..7027242 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "fp-kudojs", "version": "0.0.0-development", "description": "A utility library to write code in functional programming style in Javascript", - "main": "index.js", + "main": "kudo.cjs.js", + "module": "kudo.es.js", "types": "index.d.ts", "scripts": { "test": "cross-env npm run build:clean && NODE_ENV=test TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\", \"noImplicitAny\": false}' nyc tape src/*.test.ts src/**/**/*.test.ts | tap-spec",