Skip to content

Commit

Permalink
chore: make sure build outputs types
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Lescure committed Aug 31, 2023
1 parent 24b7474 commit 6d11f85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const extend: (input: string) => object;
4 changes: 3 additions & 1 deletion scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

mkdir -p dist

esbuild src/index.ts --bundle --minify --sourcemap --outfile=dist/index.js
esbuild src/index.ts --bundle --minify --sourcemap --outfile=dist/index.js \
&& tsc -d --emitDeclarationOnly --rootDir src --outDir dist \
&& rm dist/index.test.d.ts

0 comments on commit 6d11f85

Please sign in to comment.