backend-manager 5.0.191 → 5.0.192
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
|
@@ -14,6 +14,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
14
14
|
- `Fixed` for any bug fixes.
|
|
15
15
|
- `Security` in case of vulnerabilities.
|
|
16
16
|
|
|
17
|
+
# [5.0.192] - 2026-04-02
|
|
18
|
+
### Added
|
|
19
|
+
- Setup test to create `hooks/auth/` and `hooks/cron/daily/` directories in consumer projects during `npx bm setup`
|
|
20
|
+
|
|
17
21
|
# [5.0.186] - 2026-04-01
|
|
18
22
|
### Fixed
|
|
19
23
|
- Move markdown rendering and UTM link tagging to run after `_.merge()` so caller overrides to `body.message` and `email.body` are properly processed
|
package/package.json
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const BaseTest = require('./base-test');
|
|
2
|
+
const jetpack = require('fs-jetpack');
|
|
3
|
+
|
|
4
|
+
const HOOKS_DIRS = [
|
|
5
|
+
'hooks/auth',
|
|
6
|
+
'hooks/cron/daily',
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
class HooksDirectoriesTest extends BaseTest {
|
|
10
|
+
getName() {
|
|
11
|
+
return 'hooks directories exist';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async run() {
|
|
15
|
+
const self = this.self;
|
|
16
|
+
const functionsDir = `${self.firebaseProjectPath}/functions`;
|
|
17
|
+
|
|
18
|
+
for (const dir of HOOKS_DIRS) {
|
|
19
|
+
jetpack.dir(`${functionsDir}/${dir}`);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
async fix() {
|
|
26
|
+
throw new Error('No automatic fix available for this test');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
module.exports = HooksDirectoriesTest;
|
|
@@ -36,6 +36,7 @@ const RemoteconfigTemplateFileTest = require('./remoteconfig-template-file');
|
|
|
36
36
|
const HostingFolderTest = require('./hosting-folder');
|
|
37
37
|
const PublicHtmlFilesTest = require('./public-html-files');
|
|
38
38
|
const FirestoreIndexesRequiredTest = require('./firestore-indexes-required');
|
|
39
|
+
const HooksDirectoriesTest = require('./hooks-directories');
|
|
39
40
|
const LegacyTestsCleanupTest = require('./legacy-tests-cleanup');
|
|
40
41
|
const MarketingCampaignsSeededTest = require('./marketing-campaigns-seeded');
|
|
41
42
|
|
|
@@ -78,6 +79,7 @@ function getTests(context) {
|
|
|
78
79
|
new RemoteconfigTemplateFileTest(context),
|
|
79
80
|
new HostingFolderTest(context),
|
|
80
81
|
new PublicHtmlFilesTest(context),
|
|
82
|
+
new HooksDirectoriesTest(context),
|
|
81
83
|
new LegacyTestsCleanupTest(context),
|
|
82
84
|
new MarketingCampaignsSeededTest(context),
|
|
83
85
|
];
|