From 9c2a96be77cb15ef5403afe5d19bf5a78709c81e Mon Sep 17 00:00:00 2001 From: vasyl Date: Thu, 30 Sep 2021 10:18:26 +1000 Subject: [PATCH] Make sure compatible with node.js any version --- .gitignore | 1 + package.json | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e55dd10..916ab73 100644 --- a/.gitignore +++ b/.gitignore @@ -105,3 +105,4 @@ dist package-lock.json .npmrc +.idea diff --git a/package.json b/package.json index 7702a2a..b9b0a77 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,13 @@ "version": "1.4.0", "description": "Mini 1k module for CSV, TSV, PSV file manipulations", "source": "src/lil-csv.js", - "main": "dist/lil-csv.js", - "exports": "./dist/lil-csv.modern.js", + "main": "dist/lil-csv.umd.js", + "exports": { + ".": { + "require": "./dist/lil-csv.umd.js", + "default": "./dist/lil-csv.modern.js" + } + }, "module": "dist/lil-csv.module.js", "unpkg": "dist/lil-csv.umd.js", "umd:main": "dist/lil-csv.umd.js",