Skip to content

Commit

Permalink
feat: add size limit (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler authored Mar 6, 2024
1 parent 14d39d7 commit 742f7cc
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 91 deletions.
19 changes: 19 additions & 0 deletions .size-limit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"name": "core (esm)",
"path": "./packages/core/_esm/index.js",
"limit": "50 kB",
"import": "*"
},
{
"name": "core (cjs)",
"path": "./packages/core/_cjs/index.js",
"limit": "150 kB"
},
{
"name": "core (tree-shaking)",
"path": "./packages/core/_esm/index.js",
"limit": "50 kB",
"import": "{ createBiconomySmartAccount }"
}
]
Binary file modified bun.lockb
Binary file not shown.
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,7 @@
]
},
"simple-git-hooks": {
"pre-commit": "bun run size && bun run format && bun run lint:fix",
"pre-commit": "bun run format && bun run lint:fix",
"commit-msg": "npx --no -- commitlint --edit ${1}"
},
"size-limit": [
{
"limit": "10 kB",
"path": "packages/core/index.ts"
}
]
}
}
7 changes: 0 additions & 7 deletions packages/core/CHANGELOG.md

This file was deleted.

12 changes: 0 additions & 12 deletions packages/core/account/package.json

This file was deleted.

37 changes: 0 additions & 37 deletions packages/core/account/yarn.lock

This file was deleted.

53 changes: 28 additions & 25 deletions tsconfig/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
{
"include": [],
"compilerOptions": {
"incremental": false,
"strict": true,
"useDefineForClassFields": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"useUnknownInCatchVariables": true,
"noImplicitOverride": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowJs": false,
"checkJs": false,
"esModuleInterop": false,
"allowSyntheticDefaultImports": false,
"forceConsistentCasingInFileNames": true,
"verbatimModuleSyntax": true,
"importHelpers": true,
"moduleResolution": "NodeNext",
"module": "NodeNext",
"target": "ES2021",
"lib": [ "ES2022", "DOM" ],
"skipLibCheck": true,
"noErrorTruncation": true
"incremental": false,
"strict": true,
"useDefineForClassFields": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"useUnknownInCatchVariables": true,
"noImplicitOverride": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowJs": false,
"checkJs": false,
"esModuleInterop": false,
"allowSyntheticDefaultImports": false,
"forceConsistentCasingInFileNames": true,
"verbatimModuleSyntax": true,
"importHelpers": true,
"moduleResolution": "NodeNext",
"module": "NodeNext",
"target": "ES2021",
"lib": [
"ES2022",
"DOM"
],
"skipLibCheck": true,
"noErrorTruncation": true
},
"tsc-alias": {
"resolveFullPaths": true,
"verbose": false
"resolveFullPaths": true,
"verbose": false
}
}
}
4 changes: 2 additions & 2 deletions tsconfig/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"compilerOptions": {
"moduleResolution": "node",
"sourceMap": true,
"rootDir": "../packages/"
"rootDir": "../packages/core"
}
}
}

0 comments on commit 742f7cc

Please sign in to comment.