From 60893c38a6fa564f46f1f3584742b9f33f2008d6 Mon Sep 17 00:00:00 2001 From: long76 <18124433+long76@users.noreply.github.com> Date: Sun, 9 Apr 2023 14:42:56 +0300 Subject: [PATCH 1/2] revert package.json #882 --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ba5d2823..4da27722 100644 --- a/package.json +++ b/package.json @@ -20,20 +20,20 @@ "license": "MIT", "author": "Cody Olsen", "sideEffects": false, - "type": "commonjs", + "type": "module", "exports": { ".": { "types": "./dist/index.d.ts", "source": "./src/index.ts", - "require": "./dist/index.js", - "import": "./dist/index.mjs", + "require": "./dist/index.cjs", + "import": "./dist/index.js", "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "main": "./dist/index.js", - "module": "./dist/index.mjs", "source": "./src/index.ts", + "main": "./dist/index.cjs", + "module": "./dist/index.js", "typings": "./dist/index.d.ts", "files": [ "dist", From 81af1f7c2a5371c76659441b99ed9da70f298d9c Mon Sep 17 00:00:00 2001 From: long76 <18124433+long76@users.noreply.github.com> Date: Sun, 9 Apr 2023 14:44:53 +0300 Subject: [PATCH 2/2] revert utils.js --- integration/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/utils.js b/integration/utils.js index 6bcce6cb..c2265851 100644 --- a/integration/utils.js +++ b/integration/utils.js @@ -1,4 +1,4 @@ -import { compute } from '../dist/index.mjs' +import { compute } from '../dist/index.js' window.computeScrollIntoView = compute window.mapActions = (item) => ({