Skip to content

Commit

Permalink
Merge pull request #48 from shazow/provider-agnostic
Browse files Browse the repository at this point in the history
Become provider agnostic, reduce bundle size
  • Loading branch information
shazow authored Aug 23, 2023
2 parents 29d9a59 + af4000e commit 034dace
Show file tree
Hide file tree
Showing 21 changed files with 2,180 additions and 1,407 deletions.
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

0 comments on commit 034dace

Please sign in to comment.