We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d204ac6 commit 2cadf69Copy full SHA for 2cadf69
lib/packages.ts
@@ -185,6 +185,12 @@ export const packages: PackageMap =
185
// Only build the entry if there's a package name.
186
return packages;
187
}
188
+ if (!(name in monorepoPackages)) {
189
+ throw new Error(
190
+ `Package ${name} found in ${JSON.stringify(pkg.root)}, not found in .monorepo.json.`,
191
+ );
192
+ }
193
+
194
const bin: {[name: string]: string} = {};
195
Object.keys(packageJson['bin'] || {}).forEach(binName => {
196
let p = path.resolve(pkg.root, packageJson['bin'][binName]);
0 commit comments