From 9e1a0270f9dcd32b68036f2173be5fbdfa381c9b Mon Sep 17 00:00:00 2001 From: Tatiana Lagodich Date: Sun, 1 Sep 2024 17:31:04 +0400 Subject: [PATCH] fix: npm build --- package.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1451fde..8da0488 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,12 @@ "name": "iter8or", "version": "1.0.1", "description": "A versatile library for working with iterators and asynchronous iterators in JavaScript. It provides powerful methods for processing, filtering, combining, and transforming data, and even allows the creation of iterators from non-iterable objects.", - "main": "dist/iter8or.cjs.js", - "module": "dist/iter8or.esm.js", + "main": "iter8or.cjs.js", + "module": "iter8or.esm.js", + "exports": { + "import": "./iter8or.esm.js", + "require": "./iter8or.cjs.js" + }, "type": "module", "keywords": ["javascript", "javascript-library", "iterator", "iterators", "async-iterators", "async-iterator"], "author": "Tanya Lagodich", @@ -11,7 +15,8 @@ "license": "MIT", "homepage": "https://tanyalagodich.github.io/Iter8or/", "files": [ - "dist" + "iter8or.esm.js", + "iter8or.cjs.js" ], "scripts": { "build": "rollup -c",