Skip to content

Commit 2027698

Browse files
authored
fix: support —moduleResolution node16 in compute-scroll-into-view (#1176)
1 parent 66bf81d commit 2027698

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,20 @@
2424
"license": "MIT",
2525
"author": "Cody Olsen",
2626
"sideEffects": false,
27-
"type": "module",
27+
"type": "commonjs",
2828
"exports": {
2929
".": {
3030
"types": "./dist/index.d.ts",
3131
"source": "./src/index.ts",
32-
"import": "./dist/index.js",
33-
"require": "./dist/index.cjs",
32+
"require": "./dist/index.js",
33+
"import": "./dist/index.mjs",
3434
"default": "./dist/index.js"
3535
},
3636
"./package.json": "./package.json"
3737
},
38-
"main": "./dist/index.cjs",
39-
"module": "./dist/index.js",
38+
"source": "./src/index.ts",
39+
"main": "./dist/index.js",
40+
"module": "./dist/index.mjs",
4041
"typings": "./dist/index.d.ts",
4142
"files": [
4243
"dist",
@@ -58,7 +59,7 @@
5859
"singleQuote": true
5960
},
6061
"dependencies": {
61-
"compute-scroll-into-view": "^3.0.0"
62+
"compute-scroll-into-view": "^3.0.1"
6263
},
6364
"devDependencies": {
6465
"@sanity/pkg-utils": "^2.2.5",

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"skipLibCheck": true,
1414
"noUnusedLocals": true,
1515
"noUnusedParameters": true,
16+
"esModuleInterop": true,
1617
"strict": true,
1718
"lib": ["dom", "dom.iterable", "esnext"]
1819
},

0 commit comments

Comments
 (0)