Skip to content

Commit 7f82bf3

Browse files
authored
Merge pull request #74 from duncanhealy/fix/types_exclude
fix: adds links to types
2 parents 11ea91a + 6d16410 commit 7f82bf3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
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",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"include": ["src"],
3+
"exclude": ["node_modules/**/*.ts"],
34
"compilerOptions": {
45
"declaration": true,
56
"declarationMap": true,
@@ -16,6 +17,6 @@
1617

1718
"forceConsistentCasingInFileNames": true,
1819
"stripInternal": true,
19-
"allowSyntheticDefaultImports":true
20+
"allowSyntheticDefaultImports": true
2021
}
2122
}

0 commit comments

Comments
 (0)