Skip to content

Commit e500b09

Browse files
committed
Add declarationDir tsconfig option
1 parent 608746a commit e500b09

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

dist/main/tsconfig/tsconfig.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
var fsu = require("../utils/fsUtil");
3-
var simpleValidator = require('./simpleValidator');
3+
var simpleValidator = require("./simpleValidator");
44
var types = simpleValidator.types;
55
var compilerOptionsValidation = {
66
allowJs: { type: types.boolean },
@@ -11,6 +11,7 @@ var compilerOptionsValidation = {
1111
charset: { type: types.string },
1212
codepage: { type: types.number },
1313
declaration: { type: types.boolean },
14+
declarationDir: { type: types.string },
1415
diagnostics: { type: types.boolean },
1516
emitBOM: { type: types.boolean },
1617
experimentalAsyncFunctions: { type: types.boolean },
@@ -85,13 +86,13 @@ function errorWithDetails(error, details) {
8586
error.details = details;
8687
return error;
8788
}
88-
var fs = require('fs');
89-
var path = require('path');
90-
var tsconfig = require('tsconfig');
91-
var os = require('os');
92-
var detectIndent = require('detect-indent');
93-
var detectNewline = require('detect-newline');
94-
var formatting = require('./formatting');
89+
var fs = require("fs");
90+
var path = require("path");
91+
var tsconfig = require("tsconfig");
92+
var os = require("os");
93+
var detectIndent = require("detect-indent");
94+
var detectNewline = require("detect-newline");
95+
var formatting = require("./formatting");
9596
var projectFileName = 'tsconfig.json';
9697
var defaultFilesGlob = [
9798
"**/*.ts",

lib/main/tsconfig/tsconfig.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ interface CompilerOptions {
2424
charset?: string;
2525
codepage?: number;
2626
declaration?: boolean;
27+
declarationDir?: string;
2728
diagnostics?: boolean;
2829
emitBOM?: boolean;
2930
experimentalAsyncFunctions?: boolean;
@@ -92,6 +93,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
9293
charset: { type: types.string },
9394
codepage: { type: types.number },
9495
declaration: { type: types.boolean },
96+
declarationDir: { type: types.string },
9597
diagnostics: { type: types.boolean },
9698
emitBOM: { type: types.boolean },
9799
experimentalAsyncFunctions: { type: types.boolean },

0 commit comments

Comments
 (0)