Update project with latest eslint rules

This commit is contained in:
Debajyoti Halder
2021-01-29 11:55:12 +05:30
parent da661f836e
commit 6106345e6d
49 changed files with 173 additions and 157 deletions
+3 -3
View File
@@ -104,11 +104,11 @@ async function buildDistWorkspace(workspaceName: string, rootDir: string) {
{
helpers: {
version(name: string) {
const pkg = require(`${name}/package.json`);
if (!pkg) {
const pkge = require(`${name}/package.json`);
if (!pkge) {
throw new Error(`No version available for package ${name}`);
}
return pkg.version;
return pkge.version;
},
},
},