We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed13de7 commit 1b36eafCopy full SHA for 1b36eaf
package.json
@@ -3,10 +3,14 @@
3
"version": "2.0.5",
4
"description": "This Package converts Html Document to Json and vice-versa.",
5
"main": "lib/index.js",
6
+ "module": "lib/index.mjs",
7
+ "types": "lib/index.d.ts",
8
"scripts": {
9
"test": "jest",
10
"prepare": "npm run build",
- "build": "esbuild src/index.tsx --bundle --outdir=lib --minify && tsc --emitDeclarationOnly --outDir lib"
11
+ "build:cjs": "esbuild src/index.tsx --bundle --outdir=lib --platform=node --minify",
12
+ "build:esm": "esbuild src/index.tsx --bundle --outdir=lib --format=esm --out-extension:.js=.mjs --minify",
13
+ "build": "npm run build:cjs && npm run build:esm && tsc --emitDeclarationOnly --outDir lib"
14
},
15
"repository": {
16
"type": "git",
0 commit comments