diff --git a/examples/nodejs/yarn.lock b/examples/nodejs/yarn.lock index c2e3027..6292b0f 100644 --- a/examples/nodejs/yarn.lock +++ b/examples/nodejs/yarn.lock @@ -12,11 +12,6 @@ lodash-es@^4.17.15: resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.15.tgz#21bd96839354412f23d7a10340e5eac6ee455d78" integrity sha512-rlrc3yU3+JNOpZ9zj5pQtxnx2THmvRykwL4Xlxoa8I9lHBlVbbyPhgyPMioxVZ4NqyxaVVtaJnzsyOidQIhyyQ== -lodash@^4.17.20: - version "4.17.20" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" - integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== - loose-envify@^1.1.0, loose-envify@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" @@ -73,5 +68,4 @@ scheduler@^0.19.1: "use-viewport@file:../..": version "0.2.0" dependencies: - lodash "^4.17.20" lodash-es "^4.17.15" diff --git a/examples/simple-viewport/package.json b/examples/simple-viewport/package.json index c030fef..05f49de 100644 --- a/examples/simple-viewport/package.json +++ b/examples/simple-viewport/package.json @@ -1,8 +1,4 @@ { - "name": "example", - "version": "1.0.0", - "main": "index.js", - "license": "MIT", "scripts": { "start": "parcel index.html", "build": "parcel build index.html" diff --git a/examples/simple-viewport/tsconfig.json b/examples/simple-viewport/tsconfig.json index 7b4fc20..78a4557 100644 --- a/examples/simple-viewport/tsconfig.json +++ b/examples/simple-viewport/tsconfig.json @@ -16,7 +16,6 @@ "types": ["node"], "esModuleInterop": true, "skipLibCheck": true, - "importHelpers": true, "forceConsistentCasingInFileNames": true } } diff --git a/package.json b/package.json index 81ca666..429f373 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,11 @@ "author": "Aragon Association ", "license": "MIT", "main": "dist/index.js", + "module": "dist/use-viewport.esm.js", + "sideEffects": false, "typings": "dist/index.d.ts", "files": [ - "dist", - "src" + "dist" ], "engines": { "node": ">=10" @@ -18,6 +19,7 @@ "test": "tsdx test --passWithNoTests", "lint": "tsdx lint", "prepare": "tsdx build", + "prepublishOnly": "git push && git push --tags", "size": "size-limit", "analyze": "size-limit --why" }, @@ -26,7 +28,6 @@ "pre-commit": "yarn lint" } }, - "module": "dist/use-viewport.esm.js", "size-limit": [ { "path": "dist/use-viewport.cjs.production.min.js", @@ -37,6 +38,9 @@ "limit": "10 KB" } ], + "dependencies": { + "lodash-es": "^4.17.15" + }, "devDependencies": { "@size-limit/preset-small-lib": "^4.6.0", "@types/lodash": "^4.14.161", @@ -51,9 +55,5 @@ }, "peerDependencies": { "react": "^16.13.1" - }, - "dependencies": { - "lodash": "^4.17.20", - "lodash-es": "^4.17.15" } } diff --git a/yarn.lock b/yarn.lock index 23e1be1..5ef64e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5558,7 +5558,7 @@ lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= -lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.5: +lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.5: version "4.17.20" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==