diff --git a/package.json b/package.json index aaae463..ac9fe17 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "repository": "https://github.com/azz/styled-css-grid", "author": "Lucas Azzola", "license": "MIT", + "types": "dist/index.d.ts", "files": [ "dist" ], diff --git a/scripts/build.js b/scripts/build.js index 09610bc..1bf1100 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -14,6 +14,9 @@ sh.mkdir("-p", "./website/bin"); sh.echo("bundling dist..."); sh.exec("rollup -c ./scripts/rollup.config.js"); +sh.echo("copying typescript definitions to dist..."); +sh.cp("./index.d.ts", "./dist"); + sh.echo("bundling website..."); sh.exec("rollup -c ./scripts/rollup.website.config.js");