@salesforce/source-tracking 1.1.5 → 1.1.6
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/CHANGELOG.md +2 -0
- package/lib/shared/localShadowRepo.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.6](https://github.com/forcedotcom/source-tracking/compare/v1.1.5...v1.1.6) (2022-03-14)
|
|
6
|
+
|
|
5
7
|
### [1.1.5](https://github.com/forcedotcom/source-tracking/compare/v1.1.4...v1.1.5) (2022-03-11)
|
|
6
8
|
|
|
7
9
|
### [1.1.4](https://github.com/forcedotcom/source-tracking/compare/v1.1.3...v1.1.4) (2022-03-07)
|
|
@@ -187,11 +187,13 @@ class ShadowRepo {
|
|
|
187
187
|
deployedFiles = deployedFiles.map((filepath) => path.normalize(filepath).split(path.sep).join(path.posix.sep));
|
|
188
188
|
deletedFiles = deletedFiles.map((filepath) => path.normalize(filepath).split(path.sep).join(path.posix.sep));
|
|
189
189
|
}
|
|
190
|
+
const uniqueDeployedFiles = Array.from(new Set(deployedFiles));
|
|
191
|
+
const uniqueDeletedFiles = Array.from(new Set(deletedFiles));
|
|
190
192
|
try {
|
|
191
193
|
// stage changes
|
|
192
194
|
await Promise.all([
|
|
193
|
-
...
|
|
194
|
-
...
|
|
195
|
+
...uniqueDeployedFiles.map((filepath) => git.add({ fs: core_1.fs, dir: this.projectPath, gitdir: this.gitDir, filepath })),
|
|
196
|
+
...uniqueDeletedFiles.map((filepath) => git.remove({ fs: core_1.fs, dir: this.projectPath, gitdir: this.gitDir, filepath })),
|
|
195
197
|
]);
|
|
196
198
|
const sha = await git.commit({
|
|
197
199
|
fs: core_1.fs,
|
package/package.json
CHANGED