Skip to content

Commit

Permalink
Merge pull request #249 from yearn/chore/module-common-js
Browse files Browse the repository at this point in the history
fix: Change module to CommonJS
  • Loading branch information
Majorfi committed May 25, 2023
2 parents fe22973 + 2d8a1fd commit 5e2a7fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/web-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"exportStyle": "npx tailwindcss --postcss -c ./tailwind.config.cjs -i style.css -o dist/build.css --minify && sed -i -e 's/rem/em/g' dist/build.css",
"exportNextStyle": "npx tailwindcss --postcss -c ./tailwind.config.cjs -i style.css -o dist/build.css --minify && sed -i -e 's/rem/em/g' dist/build.css",
"prebuild": "rm -rf dist",
"build": "bump && tsc --module es2022 --outDir dist --jsx react",
"buildNoBump": "tsc --module es2022 --outDir dist --jsx react",
"build": "bump && tsc",
"buildNoBump": "tsc",
"postbuild": "sh ./scripts/postbuild.sh && npm run exportStyle && npm run exportNextStyle",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"test": "jest"
Expand Down
7 changes: 4 additions & 3 deletions packages/web-lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
"@yearn-finance/web-lib/types/*": ["types/*"],
"@yearn-finance/web-lib/types": ["types"],
},
"outDir": "dist",
"jsx": "react",
"target": "esnext",
"module": "esnext",
"target": "ESNext",
"module": "CommonJS",
"lib": [
"es6",
"es7",
Expand All @@ -43,7 +44,7 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noFallthroughCasesInSwitch": true
},
"exclude": ["node_modules"],
"include": [
Expand Down

0 comments on commit 5e2a7fe

Please sign in to comment.