sfdx-git-delta
Advanced tools
Comparing version 2.0.2 to 2.0.3
'use strict' | ||
const StandardHandler = require('./standardHandler') | ||
const path = require('path') | ||
const fse = require('fs-extra') | ||
const OBJECT_META_XML_SUFFIX = `object${StandardHandler.METAFILE_SUFFIX}` | ||
class SubCustomObjectHandler extends StandardHandler { | ||
@@ -13,4 +17,26 @@ handleDeletion() { | ||
} | ||
handleAddtion() { | ||
super.handleAddtion() | ||
const customObjectPath = this.splittedLine | ||
.slice(0, [this.splittedLine.indexOf(this.type)]) | ||
.join(path.sep) | ||
const customObject = this.splittedLine[ | ||
this.splittedLine.indexOf(this.type) - 1 | ||
] | ||
const commonPath = `${customObjectPath + | ||
path.sep + | ||
customObject}.${OBJECT_META_XML_SUFFIX}` | ||
this.promises.push( | ||
fse.copy( | ||
path.join(this.config.repo, commonPath), | ||
path.join(this.config.output, commonPath) | ||
) | ||
) | ||
} | ||
} | ||
module.exports = SubCustomObjectHandler |
{ | ||
"name": "sfdx-git-delta", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Generate the sfdx content in source format and destructive change from two git commits", | ||
@@ -5,0 +5,0 @@ "keyword": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12833939
2077
12