Skip to content

Commit

Permalink
feat(build): output and add types to package
Browse files Browse the repository at this point in the history
  • Loading branch information
alampros committed Mar 8, 2019
1 parent 801700f commit 1349e1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "react-confetti",
"version": "2.4.1",
"description": "React component to draw confetti for your party.",
"main": "index.js",
"main": "dist/react-confetti.min.js",
"types": "dist/types/ReactConfetti.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/alampros/react-confetti.git"
Expand All @@ -26,7 +27,8 @@
"index.js"
],
"scripts": {
"build": "rollup -c",
"build": "tsc && rollup -c",
"prebuild": "yarn clean",
"develop": "rollup -c -w",
"test": "tsc; yarn run lint",
"clean": "git clean -xfd dist/",
Expand Down
7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"moduleResolution": "node",
"allowJs": true,
"declaration": true,
"declarationDir": "dist/types",
"jsx": "preserve",
"noEmit": true,
"emitDeclarationOnly": true,
"strict": true,
"isolatedModules": true,
"esModuleInterop": true
},
"include": [
Expand Down

0 comments on commit 1349e1d

Please sign in to comment.