Skip to content

Commit a9518b6

Browse files
committed
Move tsd task to gulpfile
1 parent eb04045 commit a9518b6

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

gulpfile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,9 @@ gulp.task('css', function () {
3535
.pipe(gulp.dest('./lib'));
3636
});
3737

38-
gulp.task('default', ['js', 'css']);
38+
gulp.task('tsd', function () {
39+
gulp.src('./components/**/*.d.ts')
40+
.pipe(gulp.dest('./lib'));
41+
});
42+
43+
gulp.task('default', ['js', 'css', 'tsd']);

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-toolbox",
33
"description": "A set of React components implementing Google's Material Design specification with the power of CSS Modules.",
44
"homepage": "http://www.react-toolbox.com",
5-
"version": "2.0.0-beta.8",
5+
"version": "2.0.0-beta.11",
66
"main": "./lib",
77
"module": "./components",
88
"author": {
@@ -99,7 +99,7 @@
9999
},
100100
"scripts": {
101101
"babel": "babel ./components --out-dir ./lib",
102-
"build": "cross-env NODE_ENV=production gulp && npm run tsd",
102+
"build": "cross-env NODE_ENV=production gulp",
103103
"clean": "rimraf ./lib",
104104
"css": "cpx \"./components/**/*.css\" ./lib",
105105
"lint": "npm run lint:js && npm run lint:css",
@@ -112,8 +112,7 @@
112112
"release": "bumped release",
113113
"start": "cross-env NODE_ENV=development UV_THREADPOOL_SIZE=100 node ./server",
114114
"test": "jest",
115-
"test:watch": "jest --watch --no-watchman",
116-
"tsd": "cpx \"./components/**/*.d.ts\" ./lib"
115+
"test:watch": "jest --watch --no-watchman"
117116
},
118117
"license": "MIT",
119118
"jest": {

0 commit comments

Comments
 (0)