Skip to content

Commit

Permalink
fix: tests and ts-node
Browse files Browse the repository at this point in the history
  • Loading branch information
romanrostislavovich committed Nov 2, 2022
1 parent d5d2078 commit 79803e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"nyc": "^14.1.1",
"semantic-release": "^17.3.7",
"sinon": "^7.3.2",
"ts-node": "^9.0.0",
"ts-node": "^10.6.0",
"tslint": "^5.11.0",
"typedoc": "^0.15.0",
"typescript": "^4.1.2",
Expand Down
2 changes: 2 additions & 0 deletions src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Cli {
this.cliClient.option(optionFlag, optionDescription, optionDefaultValue);
});

// tslint:disable-next-line:no-any
const packageJson: any = parseJsonFile(packageJsonPath);
this.cliClient.version(packageJson.version);

Expand Down Expand Up @@ -212,6 +213,7 @@ class Cli {
}

private printCurrentVersion(): void {
// tslint:disable-next-line:no-any
const packageJson: any = parseJsonFile(packageJsonPath);
// tslint:disable-next-line:no-console
console.log(`Current version: ${packageJson.version}`);
Expand Down
6 changes: 4 additions & 2 deletions src/core/models/files/FileLanguageModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ class FileLanguageModel extends FileModel {
const objectKeys: string[] = Object.keys(obj);

objectKeys.forEach((key: string) => {
const keyValue: object = get(obj, key) || {};
// @ts-ignore
const keyValue: object = get(obj, key);
const isObject: boolean = typeof keyValue === 'object';
const currentKey: string = cat === null ? key : cat.concat('.', key);

Expand All @@ -80,7 +81,8 @@ class FileLanguageModel extends FileModel {
const objectKeys: string[] = Object.keys(obj);

objectKeys.forEach((key: string) => {
const keyValue: object = get(obj, key) || {};
// @ts-ignore
const keyValue: object = get(obj, key);
const isObject: boolean = typeof keyValue === 'object';
const currentKey: string = cat === null ? key : cat.concat('.', key);

Expand Down

0 comments on commit 79803e0

Please sign in to comment.