Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aminzabardast authored and aminzabardast committed Aug 17, 2021
1 parent 513d456 commit 3cf8f86
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
@@ -1,9 +1,9 @@
{
"name": "@jsoncv/schema",
"version": "0.15.9",
"version": "0.15.10",
"description": "JSON CV's JSON Schema",
"license": "MIT",
"main": "lib/validator.js",
"main": "lib/index.js",
"author": {
"name" : "Amin Zabardast",
"email" : "aminzabardast@gmail.com",
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
@@ -0,0 +1,3 @@
import schema from './schema.json'

export { schema }
1 change: 0 additions & 1 deletion src/validator.ts
Expand Up @@ -7,4 +7,3 @@ const validate = ajv.compile(schema)
const valid = validate(sample)

if (!valid) console.log(validate.errors)
export { schema }
3 changes: 2 additions & 1 deletion tsconfig.json
Expand Up @@ -10,6 +10,7 @@
"outDir": "lib"
},
"files": [
"src/validator.ts"
"src/validator.ts",
"src/index.ts"
]
}

0 comments on commit 3cf8f86

Please sign in to comment.