Skip to content

Commit

Permalink
Revert "Added npm script compile:types:post-hook to modify TS decla…
Browse files Browse the repository at this point in the history
…ration file to be compatible with CommonJS setup (#68)"

This reverts commit 49b38dc.
  • Loading branch information
chrisbottin committed Jan 20, 2024
1 parent 9234cbf commit 52dacf6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
"scripts": {
"lint": "eslint . --ext=js,ts",
"clean": "rm -rf ./dist",
"compile": "npm run clean && npm run lint && npm run compile:commonjs && npm run compile:esnext && npm run compile:types && npm run compile:types:post-hook && npm run compile:browser",
"compile": "npm run clean && npm run lint && npm run compile:commonjs && npm run compile:esnext && npm run compile:types && npm run compile:browser",
"compile:commonjs": "tsc --module commonjs --outDir ./dist/cjs --noEmit false",
"compile:esnext": "tsc --module esnext --outDir ./dist/esm --noEmit false",
"compile:types": "tsc --emitDeclarationOnly --declaration --declarationMap --outDir ./dist/types --noEmit false",
"compile:types:post-hook": "sed -i '' 's/export default/export =/g' ./dist/types/index.d.ts",
"compile:browser": "mkdir -p ./dist/browser && npm run compile:browser:require && npm run compile:browser:singleton",
"compile:browser:require": "browserify -g [ babelify --presets [ @babel/preset-env ] ] -r ./dist/cjs/index.js:xml-formatter -o ./dist/browser/xml-formatter.js",
"compile:browser:singleton": "browserify -g [ babelify --presets [ @babel/preset-env ] ] -r ./dist/cjs/index.js:xml-formatter -o ./dist/browser/xml-formatter-singleton.js -s xmlFormatter",
Expand Down

0 comments on commit 52dacf6

Please sign in to comment.