chore: move size-limit to root

This commit is contained in:
fryorcraken.eth 2022-10-31 08:56:48 +11:00
parent c2e8feba28
commit 2cef9d43ea
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
4 changed files with 21 additions and 20 deletions

View File

@ -1,42 +1,46 @@
module.exports = [
{
name: "Waku core",
path: "bundle/index.js",
path: "packages/core/bundle/index.js",
import: "{ WakuNode }",
},
{
name: "Waku default setup",
path: ["bundle/index.js", "bundle/lib/create_waku.js"],
path: [
"packages/core/bundle/index.js",
"packages/core/bundle/lib/create_waku.js",
],
import: {
"./bundle/lib/create_waku.js": "{ createLightNode }",
"./bundle/lib/wait_for_remote_peer.js": "{ waitForRemotePeer }",
"./bundle/lib/waku_message/version_0.js":
"./packages/core/bundle/lib/create_waku.js": "{ createLightNode }",
"./packages/core/bundle/lib/wait_for_remote_peer.js":
"{ waitForRemotePeer }",
"./packages/core/bundle/lib/waku_message/version_0.js":
"{ MessageV0, DecoderV0, EncoderV0 }",
},
},
{
name: "Asymmetric, symmetric encryption and signature",
path: "bundle/lib/waku_message/version_1.js",
path: "packages/core/bundle/lib/waku_message/version_1.js",
import: "{ MessageV1, AsymEncoder, AsymDecoder, SymEncoder, SymDecoder }",
},
{
name: "DNS discovery",
path: "bundle/lib/peer_discovery_dns.js",
path: "packages/core/bundle/lib/peer_discovery_dns.js",
import: "{ PeerDiscoveryDns }",
},
{
name: "Privacy preserving protocols",
path: "bundle/index.js",
path: "packages/core/bundle/index.js",
import: "{ WakuRelay }",
},
{
name: "Light protocols",
path: "bundle/index.js",
path: "packages/core/bundle/index.js",
import: "{ WakuLightPush, WakuFilter }",
},
{
name: "History retrieval protocols",
path: "bundle/index.js",
path: "packages/core/bundle/index.js",
import: "{ WakuStore }",
},
];

8
package-lock.json generated
View File

@ -9,9 +9,11 @@
"packages/*"
],
"devDependencies": {
"@size-limit/preset-big-lib": "^8.1.0",
"husky": "^8.0.1",
"lerna": "^6.0.1",
"lint-staged": "^13.0.3"
"lint-staged": "^13.0.3",
"size-limit": "^8.1.0"
}
},
"node_modules/@achingbrain/ip-address": {
@ -18018,7 +18020,6 @@
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@size-limit/preset-big-lib": "^8.0.0",
"@types/app-root-path": "^1.2.4",
"@types/chai": "^4.2.15",
"@types/debug": "^4.1.7",
@ -18056,7 +18057,6 @@
"protons": "^5.1.0",
"puppeteer": "^13.0.1",
"rollup": "^2.75.0",
"size-limit": "^8.0.0",
"tail": "^2.2.0",
"ts-loader": "^9.3.1",
"ts-node": "^10.9.1",
@ -26421,7 +26421,6 @@
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@size-limit/preset-big-lib": "^8.0.0",
"@types/app-root-path": "^1.2.4",
"@types/chai": "^4.2.15",
"@types/debug": "^4.1.7",
@ -26469,7 +26468,6 @@
"protons-runtime": "^3.1.0",
"puppeteer": "^13.0.1",
"rollup": "^2.75.0",
"size-limit": "^8.0.0",
"tail": "^2.2.0",
"ts-loader": "^9.3.1",
"ts-node": "^10.9.1",

View File

@ -7,16 +7,18 @@
"scripts": {
"prepare": "husky install",
"build": "lerna run build",
"size": "lerna run size",
"size": "npm run build && size-limit",
"fix": "lerna run fix",
"test": "lerna run test",
"proto": "lerna run proto",
"doc": "lerna run doc"
},
"devDependencies": {
"@size-limit/preset-big-lib": "^8.1.0",
"husky": "^8.0.1",
"lerna": "^6.0.1",
"lint-staged": "^13.0.3"
"lint-staged": "^13.0.3",
"size-limit": "^8.1.0"
},
"lint-staged": {
"*.ts": [

View File

@ -67,7 +67,6 @@
"build": "run-s build:**",
"build:esm": "tsc && node build-scripts/fix-imports.js",
"build:bundle": "rollup --config rollup.config.js",
"size": "npm run build && size-limit",
"fix": "run-s fix:*",
"fix:prettier": "prettier \"src/**/*.ts\" \"./*.json\" \"*.*js\" --write",
"fix:lint": "eslint src --ext .ts --ext .cjs --fix",
@ -135,7 +134,6 @@
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@size-limit/preset-big-lib": "^8.0.0",
"@types/app-root-path": "^1.2.4",
"@types/chai": "^4.2.15",
"@types/debug": "^4.1.7",
@ -173,7 +171,6 @@
"protons": "^5.1.0",
"puppeteer": "^13.0.1",
"rollup": "^2.75.0",
"size-limit": "^8.0.0",
"tail": "^2.2.0",
"ts-loader": "^9.3.1",
"ts-node": "^10.9.1",