Skip to content

Commit

Permalink
Stop publishing voyager test use cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuch committed Nov 15, 2017
1 parent 7d2636e commit f857d04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 0 additions & 1 deletion .flowconfig
@@ -1,6 +1,5 @@
[ignore]
.*/react-cosmos-voyager/src/use-cases/.*
.*/react-cosmos-voyager/lib/use-cases/.*
💩 Ignore packages with type issues
.*/node_modules/apollo-client/.*
.*/node_modules/apollo-link-core/.*
Expand Down
13 changes: 10 additions & 3 deletions scripts/build.js
Expand Up @@ -17,15 +17,22 @@ const COMPONENT_PLAYGROUND = 'react-cosmos-playground';
* @returns promise Child process wrapped in a Promise.
*/
function runBuildTask(options) {
const packageName = options.packageName;

const ignore = ['__tests__', '__mocks__'];
if (packageName === 'react-cosmos-voyager') {
ignore.push('use-cases');
}

const babelTask = {
name: 'babel',
args: [
`packages/${options.packageName}/src`,
`packages/${packageName}/src`,
'--out-dir',
`packages/${options.packageName}/lib`,
`packages/${packageName}/lib`,
'--copy-files',
'--ignore',
'__tests__,__mocks__'
ignore.join(',')
]
};

Expand Down

0 comments on commit f857d04

Please sign in to comment.