Skip to content

Commit b2af5f9

Browse files
committed
cleanup merge conflicts
Signed-off-by: shmck <[email protected]>
1 parent 25ac1a3 commit b2af5f9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as yamlParser from "js-yaml";
12
import * as path from "path";
23
import * as _ from "lodash";
34
import * as fs from "fs";

src/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as ncp from "ncp";
1+
import ncp from "ncp";
22
import * as path from "path";
33
import { promisify } from "util";
44

src/utils/validate.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ import schema from "./schema";
55
// @ts-ignore ajv typings not working
66
import JsonSchema from "ajv";
77

8-
export function validateSchema(json: T.Tutorial) {
8+
export function validateSchema(json: any) {
99
// validate using https://json-schema.org/
1010
const jsonSchema = new JsonSchema({ allErrors: true, verbose: true });
1111
// support draft-07 of json schema
1212
jsonSchema.addMetaSchema(require("ajv/lib/refs/json-schema-draft-07.json"));
1313

14-
const valid = jsonSchema.compile(schema, json);
14+
const validator = jsonSchema.compile(schema);
15+
const valid = validator(json);
1516

1617
if (!valid) {
1718
// log errors

0 commit comments

Comments
 (0)