Skip to content
Permalink
Browse files

refactor(utils): filter packages' os declarations to exclude blacklis…

…t entries
  • Loading branch information
anulman authored and MarshallOfSound committed Mar 23, 2017
1 parent 556deaa commit fbaec97f23816462f5552d482861938a1f687401
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/util/check-supported-platforms.js
@@ -1,5 +1,7 @@
export function checkSupportedPlatforms(pkg) {
return require(`${pkg}/package.json`).os || [];
const osList = require(`${pkg}/package.json`).os || [];

return osList.filter(os => !os.startsWith('!'));
}

export default checkSupportedPlatforms;

0 comments on commit fbaec97

Please sign in to comment.
You can’t perform that action at this time.