Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Become provider agnostic, reduce bundle size #48

Merged
merged 14 commits into from
Aug 23, 2023
Merged
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/node_modules/
/.*
/lib
/lib.*
/*.tgz
7 changes: 7 additions & 0 deletions .size-limit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = [
{
path: "lib.esm/index.js",
import: "{ whatsabi }",
limit: "20 kb"
}
]
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
build:
tsc
tsc --project tsconfig.esm.json
size-limit

watch:
tsc -w
tsc --project tsconfig.esm.json -w

test:
jest

publish:
rm -rf ./lib; tsc; npm pack
clean:
rm -rf ./lib ./lib.*

publish: clean
npm run build:esm
npm run build:cjs
npm run build:types
npm pack
Loading