Skip to content

Commit

Permalink
fix: export shared types (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
roberthovsepyan authored Aug 13, 2024
1 parent 93a2908 commit 9195b95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ build({
keepNames: true,
format: 'esm',
tsconfig: './tsconfig.build.json',
entryPoints: databases.map((database) => `src/autocomplete/databases/${database}/index.ts`),
outbase: 'src/autocomplete/databases',
outdir: 'dist/databases',
entryPoints: [
...databases.map((database) => `src/autocomplete/databases/${database}/index.ts`),
'src/autocomplete/shared/autocomplete-types.ts',
],
outbase: 'src/autocomplete',
outdir: 'dist',
splitting: true,
});
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"./mysql": "./dist/databases/mysql/index.js",
"./postgresql": "./dist/databases/postgresql/index.js",
"./yql": "./dist/databases/yql/index.js",
"./redis": "./dist/databases/redis/index.js"
"./redis": "./dist/databases/redis/index.js",
"./shared": "./dist/shared/autocomplete-types.js"
},
"typesVersions": {
"*": {
Expand Down

0 comments on commit 9195b95

Please sign in to comment.