Comparing version 1.6.3 to 1.6.4
@@ -74,9 +74,11 @@ "use strict"; | ||
if (outDir) { | ||
const isAbsolutePath = (0, path_1.isAbsolute)(outDir); | ||
config.outDir = isAbsolutePath ? outDir : (0, path_1.join)(configDir, outDir); | ||
config.outDir = (0, path_1.isAbsolute)(outDir) ? outDir : (0, path_1.join)(configDir, outDir); | ||
} | ||
if (paths) | ||
config.paths = paths; | ||
if (declarationDir) | ||
config.declarationDir = declarationDir; | ||
if (declarationDir) { | ||
config.declarationDir = (0, path_1.isAbsolute)(declarationDir) | ||
? declarationDir | ||
: (0, path_1.join)(configDir, declarationDir); | ||
} | ||
if (TSCAliasConfig === null || TSCAliasConfig === void 0 ? void 0 : TSCAliasConfig.replacers) | ||
@@ -83,0 +85,0 @@ config.replacers = TSCAliasConfig.replacers; |
@@ -55,3 +55,3 @@ "use strict"; | ||
if (options.declarationDir) { | ||
replaceTscAliasPaths(Object.assign(Object.assign({}, options), { outDir: options.declarationDir, declarationDir: undefined, output: config.output, aliasTrie: config.aliasTrie })); | ||
replaceTscAliasPaths(Object.assign(Object.assign({}, options), { outDir: options.declarationDir, declarationDir: undefined, output: config.output, aliasTrie: undefined })); | ||
} | ||
@@ -58,0 +58,0 @@ }); |
{ | ||
"name": "tsc-alias", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "Replace alias paths with relative paths after typescript compilation.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
109857
913