Skip to content

Commit 8c8a081

Browse files
fnkyazz
authored andcommitted
fix: fix index.d.ts not being in dist (#56)
1 parent cf43d8b commit 8c8a081

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"repository": "https://github.com/azz/styled-css-grid",
99
"author": "Lucas Azzola",
1010
"license": "MIT",
11+
"types": "dist/index.d.ts",
1112
"files": [
1213
"dist"
1314
],

scripts/build.js

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ sh.mkdir("-p", "./website/bin");
1414
sh.echo("bundling dist...");
1515
sh.exec("rollup -c ./scripts/rollup.config.js");
1616

17+
sh.echo("copying typescript definitions to dist...");
18+
sh.cp("./index.d.ts", "./dist");
19+
1720
sh.echo("bundling website...");
1821
sh.exec("rollup -c ./scripts/rollup.website.config.js");
1922

0 commit comments

Comments
 (0)