Mirror: The small sibling of the graphql package, slimmed down for client-side libraries.
1const { globSync } = require('glob');
2const rimraf = require('rimraf');
3const meta = require('../package.json');
4
5rimraf.sync(
6 meta.files
7 .filter(x => x !== 'LICENSE.md' && x !== 'README.md')
8 .reduce((acc, x) => {
9 const globbed = globSync(x);
10 return globbed.length ? [...acc, ...globbed] : [...acc, x];
11 }, [])
12);