Skip to content

Commit 7fff675

Browse files
committed
Squashed commit of the following:
commit 0e40bef Author: Antonio Mendoza Pérez <[email protected]> Date: Tue Jun 20 00:37:00 2023 +0200 refactor-generate-merged-json (serverlessworkflow#177)
1 parent fa06763 commit 7fff675

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

tools/download-schemas.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
* limitations under the License.
1515
*/
1616
import $RefParser from '@apidevtools/json-schema-ref-parser';
17-
import { promises as fsPromises } from 'fs';
17+
import {promises as fsPromises} from 'fs';
1818
import * as path from 'path';
19-
import { URL } from 'url';
20-
import { schemaDir, reset, schemaUrl } from './utils';
19+
import {URL} from 'url';
20+
import {schemaDir, reset, schemaUrl} from './utils';
2121

2222
const { writeFile, mkdir } = fsPromises;
2323

tools/generate-merged_json.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ import $RefParser from '@apidevtools/json-schema-ref-parser';
1717
import { promises as fsPromises } from 'fs';
1818
import * as path from 'path';
1919
import { URL } from 'url';
20-
import { schemaDir, mergeDefinitions, mergeSchemas, schemaUrl } from './utils';
21-
const { writeFile } = fsPromises;
20+
import {schemaDir, mergeDefinitions, mergeSchemas, schemaUrl} from './utils';
21+
22+
const { writeFile} = fsPromises;
2223

2324
/**
2425
* Generate a merged schema `__merged.json` from schemas in schemas directory

tools/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import { promises as fsPromises } from 'fs';
1919
import * as path from 'path';
2020
import rimraf from 'rimraf';
2121
import { readMeDisclaimer } from './consts';
22-
import { URL } from 'url';
23-
import yargs from 'yargs';
24-
import { schemaVersion } from '../package.json';
22+
import {URL} from "url";
23+
import yargs from "yargs";
24+
import {schemaVersion} from "../package.json";
2525

2626
const { writeFile, mkdir } = fsPromises;
2727

0 commit comments

Comments
 (0)