Skip to content

Commit

Permalink
fix: mark modules as side-effect-free
Browse files Browse the repository at this point in the history
  • Loading branch information
andipaetzold committed Oct 15, 2021
1 parent 2f06374 commit 235029e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"types": "./lib/types/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"require": "./lib/cjs/index.js",
Expand Down
1 change: 1 addition & 0 deletions scripts/create-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ for (const module of modules) {
main: `../lib/cjs/${module}/index.js`,
module: `../lib/esm/${module}/index.js`,
types: `../lib/types/${module}/index.d.ts`,
sideEffects: false,
};

if (!fs.existsSync(module)) {
Expand Down

0 comments on commit 235029e

Please sign in to comment.