Skip to content

Commit

Permalink
Generate dist and type declarations at root
Browse files Browse the repository at this point in the history
  • Loading branch information
Wang Zhongliang committed Nov 11, 2018
1 parent eaca158 commit 5deedbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -17,8 +17,8 @@
"main": "index.js",
"typings": "index.d.ts",
"scripts": {
"start": "NODE_ENV=development babel -w ./src --out-dir .",
"build": "NODE_ENV=production babel ./src --out-dir . && tsc",
"start": "NODE_ENV=development babel -w ./src --out-dir . --extensions \".ts,.tsx\"",
"build": "NODE_ENV=production rimraf *.d.ts && babel ./src --out-dir . --extensions \".ts,.tsx\" && tsc",
"format": "prettier --trailing-comma es5 --single-quote --write 'src/**/*' 'exampe/src/**/*' 'example/README.md' 'README.md'",
"test": "jest",
"test:watch": "jest --watch",
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Expand Up @@ -6,7 +6,8 @@
"module": "commonjs",
"esModuleInterop": true,
"declaration": true,
"declarationDir": "./dist",
"declarationDir": "./",
"emitDeclarationOnly": true
}
},
"exclude": []
}

0 comments on commit 5deedbe

Please sign in to comment.