From 3381144f79538b136eefa056a4da2b74949ea0d5 Mon Sep 17 00:00:00 2001 From: Igor Savin Date: Sun, 21 Jan 2024 23:21:36 +0200 Subject: [PATCH] Adjust configuration --- build.config.js | 6 ++++++ src/index.js => index.js | 0 package.json | 1 - tests/crc.test.js | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 build.config.js rename src/index.js => index.js (100%) diff --git a/build.config.js b/build.config.js new file mode 100644 index 0000000..6ad5e9d --- /dev/null +++ b/build.config.js @@ -0,0 +1,6 @@ +export default { + entries: ["./index.js"], + rollup: { + emitCJS: true, + }, +}; \ No newline at end of file diff --git a/src/index.js b/index.js similarity index 100% rename from src/index.js rename to index.js diff --git a/package.json b/package.json index e361f99..a3d553d 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "node": ">=8.0.0" }, "license": "MIT", - "type": "module", "exports": { ".": { "import": "./dist/index.mjs", diff --git a/tests/crc.test.js b/tests/crc.test.js index 048801b..9b8cb27 100644 --- a/tests/crc.test.js +++ b/tests/crc.test.js @@ -1,4 +1,4 @@ -const crc32 = require('..'); +const crc32 = require('../index.js'); const test = require('tap').test; test('simple crc32 is no problem', function (t) {