@salesforce/source-deploy-retrieve 5.9.5 → 5.9.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
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
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
|
+
### [5.9.6](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.9.5...v5.9.6) (2022-02-07)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- warn and convert on windows seps in .forceignore ([#557](https://github.com/forcedotcom/source-deploy-retrieve/issues/557)) ([a9700d7](https://github.com/forcedotcom/source-deploy-retrieve/commit/a9700d7132b891525459ee98b4a70dcdc066716e))
|
|
10
|
+
|
|
5
11
|
### [5.9.5](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.9.4...v5.9.5) (2022-01-31)
|
|
6
12
|
|
|
7
13
|
### Bug Fixes
|
|
@@ -10,16 +10,25 @@ exports.ForceIgnore = void 0;
|
|
|
10
10
|
const path_1 = require("path");
|
|
11
11
|
const index_1 = require("ignore/index");
|
|
12
12
|
const graceful_fs_1 = require("graceful-fs");
|
|
13
|
+
const core_1 = require("@salesforce/core");
|
|
13
14
|
const fileSystemHandler_1 = require("../utils/fileSystemHandler");
|
|
14
15
|
class ForceIgnore {
|
|
15
16
|
constructor(forceIgnorePath = '') {
|
|
16
17
|
this.DEFAULT_IGNORE = ['**/*.dup', '**/.*', '**/package2-descriptor.json', '**/package2-manifest.json'];
|
|
17
18
|
try {
|
|
18
|
-
|
|
19
|
+
let contents = (0, graceful_fs_1.readFileSync)(forceIgnorePath, 'utf-8');
|
|
19
20
|
// check if file `.forceignore` exists
|
|
20
|
-
if (
|
|
21
|
+
if (contents !== undefined) {
|
|
22
|
+
// check for windows style separators (\) and warn
|
|
23
|
+
if (contents.includes('\\')) {
|
|
24
|
+
const lifecycle = core_1.Lifecycle.getInstance();
|
|
25
|
+
// cannot await a method in a constructor
|
|
26
|
+
void lifecycle.emitWarning('Your .forceignore file incorrectly uses the backslash ("\\") as a folder separator; it should use the slash ("/") instead. We currently accept both separators, but we plan to stop supporting the backslash soon.');
|
|
27
|
+
// TODO: change this in v56 to only emit warning but NOT fix file
|
|
28
|
+
contents = contents.replace(/\\/g, '/');
|
|
29
|
+
}
|
|
21
30
|
// add the default ignore paths, and then parse the .forceignore file
|
|
22
|
-
this.parser = (0, index_1.default)().add(`${
|
|
31
|
+
this.parser = (0, index_1.default)().add(`${contents}\n${this.DEFAULT_IGNORE.join('\n')}`);
|
|
23
32
|
this.forceIgnoreDirectory = (0, path_1.dirname)(forceIgnorePath);
|
|
24
33
|
}
|
|
25
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forceIgnore.js","sourceRoot":"","sources":["../../../src/resolve/forceIgnore.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA+C;AAC/C,wCAA8C;AAC9C,6CAA2C;
|
|
1
|
+
{"version":3,"file":"forceIgnore.js","sourceRoot":"","sources":["../../../src/resolve/forceIgnore.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA+C;AAC/C,wCAA8C;AAC9C,6CAA2C;AAC3C,2CAA6C;AAE7C,kEAAsD;AAEtD,MAAa,WAAW;IAOtB,YAAmB,eAAe,GAAG,EAAE;QAF/B,mBAAc,GAAa,CAAC,UAAU,EAAE,OAAO,EAAE,6BAA6B,EAAE,2BAA2B,CAAC,CAAC;QAGnH,IAAI;YACF,IAAI,QAAQ,GAAG,IAAA,0BAAY,EAAC,eAAe,EAAE,OAAO,CAAC,CAAC;YACtD,sCAAsC;YACtC,IAAI,QAAQ,KAAK,SAAS,EAAE;gBAC1B,kDAAkD;gBAClD,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;oBAC3B,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