@9of9solutions/replikator 1.0.12 → 1.0.13
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/main.js +1 -1
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -137,7 +137,7 @@ async function loadConfigOrPrompt(prompt) {
|
|
|
137
137
|
const tsconfigPath = path.join(fullPath, 'tsconfig.json')
|
|
138
138
|
if (await fs.pathExists(tsconfigPath)) {
|
|
139
139
|
const tsconfigJson = await fs.readJson(tsconfigPath);
|
|
140
|
-
const config = { ...tsconfigJson, compilerOptions: { ...tsconfigJson
|
|
140
|
+
const config = { ...tsconfigJson, compilerOptions: { ...tsconfigJson?.compilerOptions, paths: { ...tsconfigJson?.compilerOptions?.paths, "shared/*": [path.join(path.relative(fullPath, absSrc), '*')] } } };
|
|
141
141
|
fs.writeJson(tsconfigPath, config, { spaces: 2 });
|
|
142
142
|
} else {
|
|
143
143
|
const config = { compilerOptions: { paths: { "shared/*": [path.join(path.relative(fullPath, absSrc), '*')] } } };
|