backend-manager 5.0.63 → 5.0.65
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/package.json
CHANGED
|
@@ -13,8 +13,14 @@ class GitignoreTest extends BaseTest {
|
|
|
13
13
|
|
|
14
14
|
async run() {
|
|
15
15
|
const gitignorePath = `${this.self.firebaseProjectPath}/.gitignore`;
|
|
16
|
+
const oldGitignorePath = `${this.self.firebaseProjectPath}/functions/.gitignore`;
|
|
16
17
|
const existingContent = jetpack.read(gitignorePath);
|
|
17
18
|
|
|
19
|
+
// Check if old functions/.gitignore exists (should be removed)
|
|
20
|
+
if (jetpack.exists(oldGitignorePath)) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
if (!existingContent) {
|
|
19
25
|
return false;
|
|
20
26
|
}
|
|
@@ -87,6 +93,7 @@ class GitignoreTest extends BaseTest {
|
|
|
87
93
|
|
|
88
94
|
async fix() {
|
|
89
95
|
const gitignorePath = `${this.self.firebaseProjectPath}/.gitignore`;
|
|
96
|
+
const oldGitignorePath = `${this.self.firebaseProjectPath}/functions/.gitignore`;
|
|
90
97
|
const templatePath = path.resolve(__dirname, '../../../../templates/_.gitignore');
|
|
91
98
|
|
|
92
99
|
const templateContent = jetpack.read(templatePath);
|
|
@@ -94,6 +101,11 @@ class GitignoreTest extends BaseTest {
|
|
|
94
101
|
throw new Error('Could not read .gitignore template file');
|
|
95
102
|
}
|
|
96
103
|
|
|
104
|
+
// Remove old functions/.gitignore if it exists
|
|
105
|
+
if (jetpack.exists(oldGitignorePath)) {
|
|
106
|
+
jetpack.remove(oldGitignorePath);
|
|
107
|
+
}
|
|
108
|
+
|
|
97
109
|
let existingContent = jetpack.read(gitignorePath) || '';
|
|
98
110
|
|
|
99
111
|
// Remove old BEM markers if present
|
|
@@ -187,6 +187,7 @@ Middleware.prototype.run = function (libPath, options) {
|
|
|
187
187
|
assistant: assistant,
|
|
188
188
|
Manager: Manager,
|
|
189
189
|
user: assistant.getUser(),
|
|
190
|
+
usage: assistant.usage,
|
|
190
191
|
settings: assistant.settings,
|
|
191
192
|
analytics: assistant.analytics,
|
|
192
193
|
libraries: Manager.libraries,
|