Skip to content

Use merge instead of replace  #1

@cakeinpanic

Description

@cakeinpanic

Hi, great action!
I'm trying to use it in my project to add dependencies to my package.json, but now they are getting fully replaced

Would be cool to have an input to optionally merge objects
Current behaviour:

 "devDependencies": {
-   "globby": "^13.1.4",
+  "husky": "7.0.4"
 },

desired behaviour:

"devDependencies": {
     "globby": "^13.1.4",
+    "husky": "7.0.4"
  },

when input file is

{
 "devDependencies": {
    "husky": "7.0.4"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions