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) {