Use tdslint to lint typings file, add index to export schema
The project dependencies now rely on a tdslint to lint the typings file
as well as testing against the test file. These files are found under
types.
A index.js file is provided to expose the schema itself.
Signed-off-by:
Snorre Magnus Davøen <snorre.davoen@nsd.uib.no>
Showing
index.js
0 → 100644
log-schema.d.ts
deleted
100644 → 0
... | ... | @@ -2,12 +2,16 @@ |
"name": "log-schema-node", | ||
"version": "1.0.0", | ||
"main": "./log-schema/log-schema.json", | ||
"types": "./log-schema.d.ts", | ||
"types": "types", | ||
"scripts": { | ||
"dtslint": "dtslint types" | ||
}, | ||
"repository": "git@gitlab.nsd.uib.no:nsd-commons/log-schema-node.git", | ||
"author": "Snorre Magnus Davøen <snorre.davoen@nsd.uib.no>", | ||
"license": "See LICENSE", | ||
"devDependencies": { | ||
"jayschema": "^0.3.1", | ||
"json-schema-to-typescript": "^4.2.0" | ||
"json-schema-to-typescript": "^4.2.0", | ||
"dtslint": "Microsoft/dtslint#production" | ||
} | ||
} |
types/index.d.ts
0 → 100644
types/test.ts
0 → 100644
types/tsconfig.json
0 → 100644
types/tslint.json
0 → 100644
This diff is collapsed.
Please register or sign in to comment