Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
chore: exclude __fixtures__ dir from npm build
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonlesisz committed Aug 19, 2021
1 parent de2a56b commit 72d7d6c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
webpack
src
build
__tests__
__fixtures__
_old
.babelrc
.flowconfig
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-npm-extended.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const LIB = path.resolve(__dirname, '../npm-extended/lib');
const DATA_SRC = path.resolve(__dirname, '../src/data');
const DATA = path.resolve(__dirname, '../npm-extended/data');

const ignored = ['__tests__', '_old', 'icons', 'udev'];
const ignored = ['__tests__', '__fixtures__', '_old', 'icons', 'udev'];
const shouldIgnore = src => ignored.find(i => src.indexOf(i) >= 0);

// copy all js files any make a copy with .flow extension
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ internal.forEach(file => {
fs.copySync(file, `${libFile}.flow`);
});

const ignored = ['__tests__', '_old', 'icons', 'udev'];
const ignored = ['__tests__', '__fixtures__', '_old', 'icons', 'udev'];
const shouldIgnore = src => ignored.find(i => src.indexOf(i) >= 0);

// copy typescript
Expand Down

0 comments on commit 72d7d6c

Please sign in to comment.