Skip to content

Commit

Permalink
fix: support —moduleResolution node16 (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
long76 authored Apr 8, 2023
1 parent 6033f68 commit d4ad5e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion integration/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { compute } from '../dist/index.js'
import { compute } from '../dist/index.mjs'
window.computeScrollIntoView = compute

window.mapActions = (item) => ({
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,20 @@
"license": "MIT",
"author": "Cody Olsen",
"sideEffects": false,
"type": "module",
"type": "commonjs",
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"source": "./src/index.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"typings": "./dist/index.d.ts",
"files": [
"dist",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "nodenext",
"declaration": true,
"rootDir": "src",
"outDir": "dist",
Expand All @@ -13,6 +13,7 @@
"skipLibCheck": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"esModuleInterop": true,
"strict": true,
"lib": ["dom", "dom.iterable", "esnext"]
},
Expand Down

0 comments on commit d4ad5e1

Please sign in to comment.