diff --git a/package.json b/package.json index c0e7cfb8e..9075c4c0a 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ ], "main": "dist/main/index.js", "module": "dist/module/index.js", + "types": "dist/main/index.d.ts", "repository": "supabase/supabase-js", "scripts": { "clean": "rimraf dist docs", @@ -24,6 +25,7 @@ "build:main": "tsc -p tsconfig.json", "build:module": "tsc -p tsconfig.module.json", "build:umd": "webpack", + "types-generate": "dts-gen -m '@supabase/supabase-js' -s", "test": "jest --runInBand", "test:db": "cd infra/db && docker-compose down && docker-compose up -d && sleep 5", "test:clean": "cd infra/db && docker-compose down", diff --git a/tsconfig.json b/tsconfig.json index 4b3e0bbb1..0d3739dcc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "include": ["src"], + "exclude": ["node_modules/**/*.ts"], "compilerOptions": { "declaration": true, "declarationMap": true, @@ -16,6 +17,6 @@ "forceConsistentCasingInFileNames": true, "stripInternal": true, - "allowSyntheticDefaultImports":true + "allowSyntheticDefaultImports": true } }