Skip to content

Commit

Permalink
build(types): inline declaration files with distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Sep 8, 2021
1 parent 2f358da commit ae2066a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@ source $(dirname "$0")/helpers.sh

rm -rf dist/*
rollup -c
cp dist/types/* dist/*

sed -i '' 's/export type/export/g' dist/million.d.ts

info "\nDist: `ls -xm -d dist/*`\n"
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"jsx": "preserve",
"lib": ["dom", "es2016", "es2017.object", "esnext", "dom.iterable", "esnext.asynciterable"],
"declarationDir": "dist/types",
"declarationDir": "dist",
"outDir": "dist",
"moduleResolution": "node",
"module": "esnext",
Expand Down

0 comments on commit ae2066a

Please sign in to comment.