dts-bundle-generator
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -82,3 +82,3 @@ "use strict"; | ||
var updateFn = sourceFile === rootSourceFile ? updateResultForRootSourceFile : updateResult; | ||
updateFn(__assign({}, updateResultCommonParams, { currentModule: module_info_1.getModuleInfo(sourceFile.fileName, criteria), statements: sourceFile.statements }), collectionResult); | ||
updateFn(__assign(__assign({}, updateResultCommonParams), { currentModule: module_info_1.getModuleInfo(sourceFile.fileName, criteria), statements: sourceFile.statements }), collectionResult); | ||
if (collectionResult.statements.length === prevStatementsCount) { | ||
@@ -95,3 +95,3 @@ logger_1.verboseLog("No output for file: " + sourceFile.fileName); | ||
} | ||
return generate_output_1.generateOutput(__assign({}, collectionResult, { needStripDefaultKeywordForStatement: function (statement) { return statement.getSourceFile() !== rootSourceFile; }, shouldStatementHasExportKeyword: function (statement) { | ||
return generate_output_1.generateOutput(__assign(__assign({}, collectionResult), { needStripDefaultKeywordForStatement: function (statement) { return statement.getSourceFile() !== rootSourceFile; }, shouldStatementHasExportKeyword: function (statement) { | ||
var result = true; | ||
@@ -204,3 +204,3 @@ if (ts.isClassDeclaration(statement) | ||
} | ||
updateResult(__assign({}, params, { statements: moduleDeclaration.body.statements }), result); | ||
updateResult(__assign(__assign({}, params), { statements: moduleDeclaration.body.statements }), result); | ||
} | ||
@@ -223,3 +223,3 @@ } | ||
} | ||
updateResult(__assign({}, params, { currentModule: moduleInfo, statements: moduleDecl.body.statements }), result); | ||
updateResult(__assign(__assign({}, params), { currentModule: moduleInfo, statements: moduleDecl.body.statements }), result); | ||
} | ||
@@ -226,0 +226,0 @@ function resolveModuleFileName(currentFileName, moduleName) { |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -70,2 +81,5 @@ var path = require("path"); | ||
function getDeclarationFiles(rootFiles, compilerOptions) { | ||
// we must pass `declaration: true` if we want to generate declaration files | ||
// see https://github.com/microsoft/TypeScript/issues/24002#issuecomment-550549393 | ||
compilerOptions = __assign(__assign({}, compilerOptions), { declaration: true }); | ||
var program = ts.createProgram(rootFiles, compilerOptions); | ||
@@ -72,0 +86,0 @@ var allFilesAreDeclarations = program.getSourceFiles().every(function (s) { return s.isDeclarationFile; }); |
{ | ||
"name": "dts-bundle-generator", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "DTS Bundle Generator", | ||
@@ -5,0 +5,0 @@ "main": "bundle-generator.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77085
1485