Skip to content

Commit

Permalink
fix(build): Don't fail if not .js files found
Browse files Browse the repository at this point in the history
  • Loading branch information
jroehl committed May 10, 2020
1 parent 45184fc commit 2f8a7c8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"scripts": {
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
"format": "prettier --write \"src/**/*.{ts,js}\"",
"lint": "tslint -p tsconfig.json",
"build": "rm -rf lib && npm run build:tsc && npm run build:js",
"build:tsc": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion src/classes/portals/FlowFact/v1/Aggregator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class FlowFactV1 extends Aggregator {
const responses = await this.fetchResults(options);

return Promise.all(
responses.map(response => new FlowFactEstateV1().init(response))
responses.map((response) => new FlowFactEstateV1().init(response))
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/classes/portals/FlowFact/v2/Aggregator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class FlowFactV2 extends Aggregator {
);

return Promise.all(
responses.map(response => new FlowFactEstateV2().init(response))
responses.map((response) => new FlowFactEstateV2().init(response))
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/flowfact_commands/fetch-estates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ exports.handler = async (argv: Arguments) => {
results = await flowFact.fetchResults(argv);
} else {
results = await flowFact.fetchEstates({ ...argv, detailed: true });
results = results.map(result =>
results = results.map((result) =>
result.getProperties(argv.detailed, loadDictionary(argv.dictionary))
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/get-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const generateEstatePropertyKeys = (): string[] => {
...propertyNames(Ad),
...propertyNames(Pr),
...propertyNames(At),
].map(key => key.toLowerCase());
].map((key) => key.toLowerCase());
};

export const generateDetailedEstatePropertyKeys = (): string[] =>
Expand Down

0 comments on commit 2f8a7c8

Please sign in to comment.