Skip to content

Commit 6d16410

Browse files
committed
add types export to package.json
add types-generate command
1 parent 0d591c1 commit 6d16410

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
],
1717
"main": "dist/main/index.js",
1818
"module": "dist/module/index.js",
19+
"types": "dist/main/index.d.ts",
1920
"repository": "supabase/supabase-js",
2021
"scripts": {
2122
"clean": "rimraf dist docs",
@@ -24,6 +25,7 @@
2425
"build:main": "tsc -p tsconfig.json",
2526
"build:module": "tsc -p tsconfig.module.json",
2627
"build:umd": "webpack",
28+
"types-generate": "dts-gen -m '@supabase/supabase-js' -s",
2729
"test": "jest --runInBand",
2830
"test:db": "cd infra/db && docker-compose down && docker-compose up -d && sleep 5",
2931
"test:clean": "cd infra/db && docker-compose down",

0 commit comments

Comments
 (0)