UNPKG

typescript-definition-tester

Version:

The purpose of this repository is to wrap the TypeScript compiler so that a consumer can easily test their ambient module declarations against example *.ts files. This module uses chai assertions so that a user can easily add this step to existing unit t

45 lines (44 loc) 1.15 kB
{ "name": "typescript-definition-tester", "version": "0.0.6", "description": "", "main": "dist/index.js", "scripts": { "build": "tsc --module CommonJS --declaration --target ES6 ./src/index.ts --outDir dist/ && tsc --module CommonJS ./test/index.ts --outDir testOut/", "postbuild": "node bundler.js", "pretest": "npm run build", "test": "mocha testOut/test/index.js" }, "repository": { "type": "git", "url": "https://github.com/adamcarr/typescript-definition-tester.git" }, "keywords": [ "typescript" ], "author": { "name": "Adam Carr", "email": "adam.carr@gmail.com", "url": "http://blog.adamcarr.net" }, "license": "MIT", "devDependencies": { "@types/assertion-error": "^1.1.0", "@types/lodash": "^4.14.108", "@types/mocha": "^5.2.0", "@types/node": "8", "bluebird": "^2.9.24", "mocha": "^5.1.1" }, "typescript": { "definition": "./dist/typescript-definition-tester.d.ts" }, "dependencies": { "assertion-error": "^1.0.1", "dts-bundle": "^0.2.0", "lodash": "^3.6.0" }, "peerDependencies": { "typescript": "1.x || 2.x" } }