@karmaniverous/smoz 0.2.2 → 0.2.3
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/dist/cli/index.cjs +8 -1
- package/package.json +1 -1
package/dist/cli/index.cjs
CHANGED
|
@@ -1058,8 +1058,15 @@ const excludeDev = (rel) => {
|
|
|
1058
1058
|
};
|
|
1059
1059
|
const excludeTemplate = (rel) => {
|
|
1060
1060
|
const posixRel = rel.replace(/\\/g, '/');
|
|
1061
|
+
// Do not copy the template's dev tsconfig; downstream apps use
|
|
1062
|
+
// tsconfig.downstream.json (renamed to tsconfig.json) instead.
|
|
1061
1063
|
if (posixRel === 'tsconfig.json')
|
|
1062
|
-
return true;
|
|
1064
|
+
return true;
|
|
1065
|
+
// Do not copy the template's package.json; we always handle the manifest
|
|
1066
|
+
// via an additive merge (create when missing, never overwrite existing keys).
|
|
1067
|
+
// Copying would only trigger a scary/irrelevant conflict prompt.
|
|
1068
|
+
if (posixRel === 'package.json')
|
|
1069
|
+
return true;
|
|
1063
1070
|
return excludeDev(rel);
|
|
1064
1071
|
};
|
|
1065
1072
|
const runInit = async (root, template = 'default', opts) => {
|
package/package.json
CHANGED