Skip to content

Commit

Permalink
fix(cli): add missing Type to fix TSC build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Sep 14, 2022
1 parent 9815d64 commit 836d7f0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/cli/package.json
Expand Up @@ -50,6 +50,7 @@
},
"devDependencies": {
"@types/load-json-file": "^5.1.0",
"type-fest": "^2.19.0",
"yargs-parser": "^21.1.1"
}
}
3 changes: 2 additions & 1 deletion packages/cli/src/lerna-entry.ts
@@ -1,5 +1,6 @@
import loadJsonFile from 'load-json-file';
import path from 'path';
import { JsonObject } from 'type-fest';

import changedCmd from './cli-commands/cli-changed-commands';
import diffCmd from './cli-commands/cli-diff-commands';
Expand All @@ -13,7 +14,7 @@ import versionCmd from './cli-commands/cli-version-commands';
import cli from './lerna-cli';

export function lerna(argv: any[]) {
const cliPkg = loadJsonFile.sync(path.join(__dirname, '../', 'package.json'));
const cliPkg = loadJsonFile.sync<JsonObject>(path.join(__dirname, '../', 'package.json'));
const context = {
lernaVersion: cliPkg?.version ?? '',
};
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 836d7f0

Please sign in to comment.