Fix new usage for builtin objects (#6968)
This commit is contained in:
1 parent
57f0dd56dd
commit
eac6fba2c3
11 files changed
+17
-14
No files matched your search
@@ -8,7 +8,7 @@ module.exports = async function({ version }) {
|
||||
|
||||
const builtPkg = await readJson("dist/package.json");
|
||||
if (builtPkg.version !== version) {
|
||||
throw Error(
|
||||
throw new Error(
|
||||
`Expected ${version} in dist/package.json but found ${builtPkg.version}`
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user