Skip to content

Commit 1a0ace2

Browse files
cspotcodeblakeembrey
authored andcommitted
Configure using tsconfig.json (#921)
1 parent dd56112 commit 1a0ace2

11 files changed

+582
-55
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ coverage/
33
.DS_Store
44
npm-debug.log
55
dist/
6+
tsconfig.schema.json
7+
tsconfig.schemastore-schema.json

package-lock.json

+217-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+12-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,17 @@
1111
"files": [
1212
"dist/",
1313
"register/",
14-
"LICENSE"
14+
"LICENSE",
15+
"tsconfig.schema.json",
16+
"tsconfig.schemastore-schema.json"
1517
],
1618
"scripts": {
1719
"lint": "tslint \"src/**/*.ts\" --project tsconfig.json",
18-
"build": "rimraf dist && tsc",
20+
"lint-fix": "tslint \"src/**/*.ts\" --project tsconfig.json --fix",
21+
"clean": "rimraf dist && rimraf tsconfig.schema.json && rimraf tsconfig.schemastore-schema.json",
22+
"build": "npm run clean && npm run build-tsc && npm run build-configSchema",
23+
"build-tsc": "tsc",
24+
"build-configSchema": "typescript-json-schema --topRef --refs --validationKeywords allOf --out tsconfig.schema.json tsconfig.json TsConfigSchema && node --require ./register ./scripts/create-merged-schema",
1925
"test-spec": "mocha dist/**/*.spec.js -R spec --bail",
2026
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- \"dist/**/*.spec.js\" -R spec --bail",
2127
"test": "npm run build && npm run lint && npm run test-cov",
@@ -55,6 +61,7 @@
5561
"@types/react": "^16.0.2",
5662
"@types/semver": "^6.0.0",
5763
"@types/source-map-support": "^0.5.0",
64+
"axios": "^0.19.0",
5865
"chai": "^4.0.1",
5966
"istanbul": "^0.4.0",
6067
"mocha": "^6.1.4",
@@ -65,7 +72,8 @@
6572
"semver": "^6.1.0",
6673
"tslint": "^5.11.0",
6774
"tslint-config-standard": "^9.0.0",
68-
"typescript": "^3.7.2"
75+
"typescript": "^3.7.2",
76+
"typescript-json-schema": "0.40.0"
6977
},
7078
"peerDependencies": {
7179
"typescript": ">=2.7"
@@ -75,6 +83,6 @@
7583
"diff": "^4.0.1",
7684
"make-error": "^1.1.1",
7785
"source-map-support": "^0.5.6",
78-
"yn": "^3.0.0"
86+
"yn": "^4.0.0"
7987
}
8088
}

0 commit comments

Comments
 (0)