-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add precommit check for keyset.json & context.json
- Loading branch information
1 parent
a95a7f3
commit 53c5339
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Because of move to Weblate we don't need keyset.json & context.json files | ||
*/ | ||
|
||
const keysetFiles = process.argv.slice(2); | ||
if (keysetFiles.length) { | ||
console.error( | ||
`It it prohibited to add keyset.json and context.json files:\n\n${keysetFiles.join('\n')}`, | ||
); | ||
process.exitCode = 1; | ||
} else { | ||
process.exitCode = 0; | ||
} |