From 45d778eaff5ae933bc7aaeb1e8d369f9c76c8103 Mon Sep 17 00:00:00 2001 From: UmamiAppearance Date: Wed, 24 Aug 2022 13:36:47 +0200 Subject: [PATCH] v0.1.2 --- package.json | 6 ++++-- test/test.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a96afd0..b4f7cce 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,11 @@ "name": "import-manager", "version": "0.1.2", "description": "A class to analyze and manipulate JavaScript import statements from source code files.", - "main": "./src/core.js", + "main": "./cjs/import-manager.cjs", + "module": "./src/core.js", "exports": { - "import": "./src/core.js" + "import": "./src/core.js", + "require": "./cjs/import-manager.cjs" }, "type": "module", "scripts": { diff --git a/test/test.js b/test/test.js index 3c09423..aba390e 100644 --- a/test/test.js +++ b/test/test.js @@ -1,5 +1,5 @@ import test from "ava"; -import ImportManager from "../src/core.js"; +import { ImportManager } from "../src/core.js"; // NOTE: the main testing will happen at the rollup plugin