Skip to content

Commit

Permalink
fix(generate-clients): call mergeManifest when constructor.name is Ob…
Browse files Browse the repository at this point in the history
…ject (#1937)
  • Loading branch information
trivikr authored Jan 21, 2021
1 parent e11909b commit 601c03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-clients/copy-to-clients.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const getOverwritablePredicate = (packageName) => (pathName) => {
const mergeManifest = (fromContent = {}, toContent = {}) => {
const merged = {};
for (const name of Object.keys(fromContent)) {
if (typeof fromContent[name] === "object") {
if (fromContent[name].constructor.name === "Object") {
merged[name] = mergeManifest(fromContent[name], toContent[name]);
if (name === "scripts" || name === "devDependencies") {
// Allow target package.json(toContent) has its own special script or
Expand Down

0 comments on commit 601c03b

Please sign in to comment.