We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 668a046 commit f3a24d2Copy full SHA for f3a24d2
lib/packages.ts
@@ -12,6 +12,7 @@ import * as path from 'path';
12
13
const packageRoot = path.join(__dirname, '../packages');
14
const distRoot = path.join(__dirname, '../dist');
15
+const versions = require('../versions.json');
16
17
18
export interface PackageInfo {
@@ -51,6 +52,11 @@ export const packages: PackageMap =
51
52
bin[binName] = path.resolve(pkg.root, pkgJson['bin'][binName]);
53
});
54
55
+ if (!(name in versions)) {
56
+ console.error(`ERROR: package ${name} does not have a version.`);
57
+ process.exit(101);
58
+ }
59
+
60
packages[name] = {
61
build: path.join(distRoot, pkgRoot.substr(path.dirname(__dirname).length)),
62
dist: path.join(distRoot, name),
0 commit comments