Skip to content

Commit 9676248

Browse files
authored
fix(esm): add node.module condition (#22)
1 parent d7f8145 commit 9676248

File tree

2 files changed

+1336
-821
lines changed

2 files changed

+1336
-821
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"source": "./src/index.ts",
2323
"require": "./dist/pt-to-html.js",
2424
"node": {
25-
"import": "./dist/pt-to-html.cjs.mjs",
26-
"require": "./dist/pt-to-html.js"
25+
"module": "./dist/pt-to-html.esm.js",
26+
"import": "./dist/pt-to-html.cjs.mjs"
2727
},
2828
"import": "./dist/pt-to-html.esm.js",
2929
"default": "./dist/pt-to-html.esm.js"
@@ -121,7 +121,7 @@
121121
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
122122
"@commitlint/cli": "^17.4.2",
123123
"@commitlint/config-conventional": "^17.4.2",
124-
"@sanity/pkg-utils": "^2.2.3",
124+
"@sanity/pkg-utils": "^2.4.8",
125125
"@sanity/semantic-release-preset": "^4.0.0",
126126
"@types/tap": "^15.0.7",
127127
"@typescript-eslint/eslint-plugin": "^5.11.0",

0 commit comments

Comments
 (0)