@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.
Files changed (2) hide show
  1. package/main.js +1 -1
  2. 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.compilerOptions, paths: { ...tsconfigJson.compilerOptions.paths, "shared/*": [path.join(path.relative(fullPath, absSrc), '*')] } } };
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), '*')] } } };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@9of9solutions/replikator",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "type": "module",
5
5
  "main": "main.js",
6
6
  "bin": {