@salesforce/source-deploy-retrieve 10.3.0 → 10.3.2
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.
|
@@ -16,19 +16,16 @@ class ForceIgnore {
|
|
|
16
16
|
constructor(forceIgnorePath = '') {
|
|
17
17
|
this.DEFAULT_IGNORE = ['**/*.dup', '**/.*', '**/package2-descriptor.json', '**/package2-manifest.json'];
|
|
18
18
|
try {
|
|
19
|
-
|
|
19
|
+
const contents = (0, graceful_fs_1.readFileSync)(forceIgnorePath, 'utf-8');
|
|
20
20
|
// check if file `.forceignore` exists
|
|
21
21
|
if (contents !== undefined) {
|
|
22
22
|
// check for windows style separators (\) and warn
|
|
23
23
|
if (contents.includes('\\')) {
|
|
24
|
-
|
|
25
|
-
|
|
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, '/');
|
|
24
|
+
// void because you cannot await a method in a constructor
|
|
25
|
+
void core_1.Lifecycle.getInstance().emitWarning('Your .forceignore file incorrectly uses the backslash ("\\") as a folder separator; it should use the slash ("/") instead. The ignore rules will not work as expected until you fix this.');
|
|
29
26
|
}
|
|
30
27
|
// add the default ignore paths, and then parse the .forceignore file
|
|
31
|
-
this.parser = (0, index_1.default)().add(`${
|
|
28
|
+
this.parser = (0, index_1.default)().add(`${this.DEFAULT_IGNORE.join('\n')}\n${contents}`);
|
|
32
29
|
this.forceIgnoreDirectory = (0, node_path_1.dirname)(forceIgnorePath);
|
|
33
30
|
}
|
|
34
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forceIgnore.js","sourceRoot":"","sources":["../../../src/resolve/forceIgnore.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yCAAoD;AACpD,w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
"version": "10.3.
|
|
3
|
+
"version": "10.3.2",
|
|
4
4
|
"description": "JavaScript library to run Salesforce metadata deploys and retrieves",
|
|
5
5
|
"main": "lib/src/index.js",
|
|
6
6
|
"author": "Salesforce",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"fast-xml-parser": "^4.3.2",
|
|
33
33
|
"got": "^11.8.6",
|
|
34
34
|
"graceful-fs": "^4.2.11",
|
|
35
|
-
"ignore": "^5.3.
|
|
35
|
+
"ignore": "^5.3.1",
|
|
36
36
|
"jszip": "^3.10.1",
|
|
37
37
|
"mime": "2.6.0",
|
|
38
38
|
"minimatch": "^5.1.6",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@types/shelljs": "^0.8.15",
|
|
52
52
|
"deep-equal-in-any-order": "^1.1.19",
|
|
53
53
|
"deepmerge": "^4.3.1",
|
|
54
|
-
"eslint-plugin-sf-plugin": "^1.17.
|
|
54
|
+
"eslint-plugin-sf-plugin": "^1.17.3",
|
|
55
55
|
"jsforce": "^2.0.0-beta.29",
|
|
56
56
|
"mocha-junit-reporter": "^1.23.3",
|
|
57
57
|
"shelljs": "0.8.5",
|