UNPKG

@sap/generator-cap-project

Version:

Creates a new SAP Cloud Application Programming Model project.

7 lines (6 loc) 288 B
import extend from 'deep-extend'; export default function extendJSON(filepath, contents, replacer, space) { const originalContent = this.readJSON(filepath, {}); const newContent = extend({}, originalContent, contents); this.writeJSON(filepath, newContent, replacer, space); }