Skip to content

Commit

Permalink
fix(gulp-tasks): fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Heymdall committed Mar 3, 2017
1 parent 779ed36 commit 20a0872
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gulp-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const libraryDoc = require('./library-doc');

const defaultOptions = {
publishDir: '.publish',
docsDir: '.docs',
docsDir: 'docs',
tsConfigFilename: 'tsconfig.json',
componentsGlob: ['src/*/*.jsx', '!src/*/*-test.jsx', '!src/*/*-benchmark.jsx'],
tsComponentsGlob: ['src/*/*.tsx'],
Expand All @@ -29,10 +29,7 @@ const defaultOptions = {


function createTasks(packageName, options = {}) {
options = {
...defaultOptions,
...options
};
options = Object.assign({}, defaultOptions, options);
const tsProject = ts.createProject(options.tsConfigFilename, { declaration: true });
const tsDocsProject = ts.createProject(options.tsConfigFilename, { jsx: 'preserve', target: 'es6' });

Expand Down

0 comments on commit 20a0872

Please sign in to comment.