@digshare/script
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -28,9 +28,10 @@ "use strict"; | ||
}), | ||
(0, plugin_typescript_1.default)({ | ||
tsconfig, | ||
compilerOptions: { | ||
sourceMap: false, | ||
}, | ||
outputToFilesystem: false, | ||
}), | ||
tsconfig !== undefined && | ||
(0, plugin_typescript_1.default)({ | ||
tsconfig, | ||
compilerOptions: { | ||
sourceMap: false, | ||
}, | ||
outputToFilesystem: false, | ||
}), | ||
(0, plugin_commonjs_1.default)(), | ||
@@ -88,3 +89,8 @@ (0, plugin_json_1.default)(), | ||
const path = enhanced_resolve_1.default.sync(projectDir, scriptPackageName); | ||
return [path, getTSConfig(path)]; | ||
let tsconfig = getTSConfig(path); | ||
if (tsconfig !== undefined && | ||
Path.relative(projectDir, tsconfig).startsWith(`..${Path.sep}`)) { | ||
tsconfig = undefined; | ||
} | ||
return [path, tsconfig]; | ||
} | ||
@@ -91,0 +97,0 @@ function getTSConfig(path) { |
{ | ||
"name": "@digshare/script", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "DigShare Script SDK", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/digshare/digshare-script.git", |
@@ -37,9 +37,10 @@ import * as FS from 'fs/promises'; | ||
}), | ||
typescript({ | ||
tsconfig, | ||
compilerOptions: { | ||
sourceMap: false, | ||
}, | ||
outputToFilesystem: false, | ||
}), | ||
tsconfig !== undefined && | ||
typescript({ | ||
tsconfig, | ||
compilerOptions: { | ||
sourceMap: false, | ||
}, | ||
outputToFilesystem: false, | ||
}), | ||
commonjs(), | ||
@@ -128,3 +129,12 @@ json(), | ||
return [path, getTSConfig(path)]; | ||
let tsconfig = getTSConfig(path); | ||
if ( | ||
tsconfig !== undefined && | ||
Path.relative(projectDir, tsconfig).startsWith(`..${Path.sep}`) | ||
) { | ||
tsconfig = undefined; | ||
} | ||
return [path, tsconfig]; | ||
} | ||
@@ -131,0 +141,0 @@ |
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
110695
2407