Skip to content

Commit

Permalink
feat(parser-stream): Add CJS build (#716)
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Nov 16, 2022
1 parent 8953620 commit 254a250
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/parse5-parser-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,25 @@
"streaming"
],
"license": "MIT",
"main": "dist/index.js",
"main": "dist/cjs/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": "./dist/index.js",
"exports": {
"import": "./dist/index.js",
"require": "./dist/cjs/index.js"
},
"dependencies": {
"parse5": "^7.0.0"
},
"scripts": {
"build:cjs": "tsc --module CommonJS --target ES6 --outDir dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json"
},
"repository": {
"type": "git",
"url": "git://github.com/inikulin/parse5.git"
},
"files": [
"dist/cjs/package.json",
"dist/**/*.js",
"dist/**/*.d.ts"
]
Expand Down

0 comments on commit 254a250

Please sign in to comment.