@nu-art/build-and-install 0.204.7 → 0.204.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/phases/phases.js +4 -1
package/package.json
CHANGED
package/phases/phases.js
CHANGED
|
@@ -444,7 +444,10 @@ exports.Phase_Compile = {
|
|
|
444
444
|
const folder = 'main';
|
|
445
445
|
const sourceFolder = `${pkg.path}/src/${folder}`;
|
|
446
446
|
const pathToLocalTsConfig = `${sourceFolder}/${CONST_TS_Config}`;
|
|
447
|
-
|
|
447
|
+
// only read if exists
|
|
448
|
+
let inPackageTsConfig = '';
|
|
449
|
+
if (fs.existsSync(pathToLocalTsConfig))
|
|
450
|
+
inPackageTsConfig = await fs_1.promises.readFile(pathToLocalTsConfig, { encoding: 'utf-8' });
|
|
448
451
|
const defaultPackageTsConfig = await fs_1.promises.readFile(pathToProjectTS_Config, { encoding: 'utf-8' });
|
|
449
452
|
ts_common_1.StaticLogger.logInfo(`Copying tsconfig: ${pathToProjectTS_Config} => ${pathToLocalTsConfig}`);
|
|
450
453
|
if (!pkg.customTsConfig && inPackageTsConfig !== defaultPackageTsConfig) {
|