We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56a97c1 commit c0f61dcCopy full SHA for c0f61dc
lib/packages.ts
@@ -190,6 +190,12 @@ export const packages: PackageMap =
190
// Only build the entry if there's a package name.
191
return packages;
192
}
193
+ if (!(name in monorepoPackages)) {
194
+ throw new Error(
195
+ `Package ${name} found in ${JSON.stringify(pkg.root)}, not found in .monorepo.json.`,
196
+ );
197
+ }
198
+
199
const bin: {[name: string]: string} = {};
200
Object.keys(packageJson['bin'] || {}).forEach(binName => {
201
let p = path.resolve(pkg.root, packageJson['bin'][binName]);
0 commit comments