From a9518b6582caf05f5673f6758e8068a3bdbaaa09 Mon Sep 17 00:00:00 2001 From: Javi Velasco Date: Mon, 29 May 2017 12:01:44 +0200 Subject: [PATCH] Move tsd task to gulpfile --- gulpfile.js | 7 ++++++- package.json | 7 +++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 1956051b..fe82e028 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -35,4 +35,9 @@ gulp.task('css', function () { .pipe(gulp.dest('./lib')); }); -gulp.task('default', ['js', 'css']); +gulp.task('tsd', function () { + gulp.src('./components/**/*.d.ts') + .pipe(gulp.dest('./lib')); +}); + +gulp.task('default', ['js', 'css', 'tsd']); diff --git a/package.json b/package.json index b9b201c5..4081c22d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "react-toolbox", "description": "A set of React components implementing Google's Material Design specification with the power of CSS Modules.", "homepage": "http://www.react-toolbox.com", - "version": "2.0.0-beta.8", + "version": "2.0.0-beta.11", "main": "./lib", "module": "./components", "author": { @@ -99,7 +99,7 @@ }, "scripts": { "babel": "babel ./components --out-dir ./lib", - "build": "cross-env NODE_ENV=production gulp && npm run tsd", + "build": "cross-env NODE_ENV=production gulp", "clean": "rimraf ./lib", "css": "cpx \"./components/**/*.css\" ./lib", "lint": "npm run lint:js && npm run lint:css", @@ -112,8 +112,7 @@ "release": "bumped release", "start": "cross-env NODE_ENV=development UV_THREADPOOL_SIZE=100 node ./server", "test": "jest", - "test:watch": "jest --watch --no-watchman", - "tsd": "cpx \"./components/**/*.d.ts\" ./lib" + "test:watch": "jest --watch --no-watchman" }, "license": "MIT", "jest": {