Skip to content

Commit

Permalink
Add requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ddvlanck committed Mar 13, 2024
1 parent 04a8115 commit cce2fed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import {
getCodelist
} from "@oslo-flanders/core";
import { inject, injectable } from "inversify";
import { JsonWebuniversumGenerationServiceConfiguration } from "./config/JsonWebuniversumGenerationServiceConfiguration";
import { JsonWebuniversumGenerationServiceConfiguration } from "@oslo-generator-json-webuniversum/config/JsonWebuniversumGenerationServiceConfiguration";
import type * as RDF from '@rdfjs/types';
import { writeFile } from "fs/promises";
import { WebuniversumObject } from "./types/WebuniversumObject";
import { WebuniversumProperty } from "./types/WebuniversumProperty";
import { sortWebuniversumObjects } from "./utils/utils";
import { WebuniversumObject } from "@oslo-generator-json-webuniversum/types/WebuniversumObject";
import { WebuniversumProperty } from "@oslo-generator-json-webuniversum/types/WebuniversumProperty";
import { sortWebuniversumObjects } from "@oslo-generator-json-webuniversum/utils/utils";

@injectable()
export class JsonWebuniversumGenerationService implements IService {
Expand Down Expand Up @@ -139,7 +139,7 @@ export class JsonWebuniversumGenerationService implements IService {

const properties: WebuniversumProperty[] = await Promise.all(jobs)

if (properties.length > 0) {
if (properties.length) {
entityData.properties = properties;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class JsonWebuniversumGenerationServiceRunner
public async runCli(argv: CliArgv): Promise<void> {
const yargv = yargs(argv.slice(2))
.usage('node ./bin/runner.js [args]')
.option('input', { describe: 'The input file to generate a JSON-LD context from.' })
.option('input', { describe: 'The input file to generate a Webuniversum config from.' })
.option('output', { describe: 'Name of the output file.', default: 'webuniversum-config.json' })
.option('language', { describe: 'The language in which the config must be generated.' })
.option('silent',
Expand Down
2 changes: 1 addition & 1 deletion packages/oslo-generator-json-webuniversum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"dependencies": {
"@oslo-flanders/core": "^0.0.6-alpha.0",
"inversify": "6.0.1",
"inversify": "^6.0.1",
"module-alias": "^2.2.3",
"n3": "^1.17.2",
"rdf-data-factory": "^1.1.2",
Expand Down

0 comments on commit cce2fed

Please sign in to comment.