Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Set ignore files in babelc config
Browse files Browse the repository at this point in the history
  • Loading branch information
Katy DeCorah committed Jul 30, 2020
1 parent 3c485d9 commit 68f143a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ module.exports = {
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-arrow-functions',
'@babel/plugin-transform-object-assign'
]
],
ignore: ['**/__tests__', '**/examples']
};
2 changes: 1 addition & 1 deletion scripts/build-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const srcDir = path.resolve(rootDir, 'src/components');
// tests and examples.
function compileComponents() {
return execa.shell(
`babel "${rootDir}/src/components" --out-dir ${outputDir} --ignore "**/examples","**/__tests__" --config-file ${rootDir}/babel.config.js`,
`babel "${rootDir}/src/components" --out-dir ${outputDir} --config-file ${rootDir}/babel.config.js`,
{
cwd: srcDir,
stdio: 'inherit'
Expand Down

0 comments on commit 68f143a

Please sign in to comment.