Skip to content

Commit

Permalink
add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 6, 2022
1 parent 349e6a2 commit c7cac60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/buildUtils.js
Expand Up @@ -31,6 +31,11 @@ module.exports.getPackages = function getPackages() {
packages.forEach(packageDir => {
const pkg = readPkg({cwd: packageDir});

assert.ok(
fs.existsSync(path.resolve(packageDir, pkg.main)),
`Main file "${pkg.main}" in ${pkg.name} should exist`,
);

assert.ok(pkg.engines, `Engine requirement in ${pkg.name} should exist`);

assert.strictEqual(
Expand Down

0 comments on commit c7cac60

Please sign in to comment.