Skip to content

Commit

Permalink
Merge branch 'main' into 707-context-menus
Browse files Browse the repository at this point in the history
# Conflicts:
#	extensions/package-lock.json
#	lib/platform-bible-react/dist/index.cjs
#	lib/platform-bible-react/dist/index.cjs.map
#	lib/platform-bible-react/dist/index.d.ts
#	lib/platform-bible-react/dist/index.js
#	lib/platform-bible-react/dist/index.js.map
#	lib/platform-bible-react/package-lock.json
  • Loading branch information
tombogle committed Feb 26, 2024
2 parents 9ea642a + f3254e8 commit ee75b96
Show file tree
Hide file tree
Showing 53 changed files with 8,747 additions and 11,147 deletions.
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"sillsdev",
"steenwyk",
"stringifiable",
"stringz",
"stylelint",
"Stylesheet",
"typedefs",
Expand Down
5 changes: 3 additions & 2 deletions extensions/lib/add-remotes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { includes } from 'platform-bible-utils';
import {
ERROR_STRINGS,
MULTI_TEMPLATE_NAME,
Expand All @@ -13,7 +14,7 @@ import {
try {
await execGitCommand(`git remote add ${MULTI_TEMPLATE_NAME} ${MULTI_TEMPLATE_URL}`);
} catch (e) {
if (e.toString().toLowerCase().includes(ERROR_STRINGS.multiRemoteExists.toLowerCase()))
if (includes(e.toString().toLowerCase(), ERROR_STRINGS.multiRemoteExists.toLowerCase()))
console.log(`Remote ${MULTI_TEMPLATE_NAME} already exists. This is likely not a problem.`);
else {
console.error(`Error on adding remote ${MULTI_TEMPLATE_NAME}: ${e}`);
Expand All @@ -25,7 +26,7 @@ import {
try {
await execGitCommand(`git remote add ${SINGLE_TEMPLATE_NAME} ${SINGLE_TEMPLATE_URL}`);
} catch (e) {
if (e.toString().toLowerCase().includes(ERROR_STRINGS.singleRemoteExists.toLowerCase()))
if (includes(e.toString().toLowerCase(), ERROR_STRINGS.singleRemoteExists.toLowerCase()))
console.log(`Remote ${SINGLE_TEMPLATE_NAME} already exists. This is likely not a problem.`);
else {
console.error(`Error on adding remote ${SINGLE_TEMPLATE_NAME}: ${e}`);
Expand Down
11 changes: 5 additions & 6 deletions extensions/lib/update-from-templates.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { includes } from 'platform-bible-utils';
import {
ERROR_STRINGS,
MULTI_TEMPLATE_BRANCH,
Expand Down Expand Up @@ -62,12 +63,10 @@ import { ExtensionInfo, getExtensions, subtreeRootFolder } from '../webpack/webp
extensionsBasedOnTemplate.push(ext);
} catch (e) {
if (
e
.toString()
.toLowerCase()
.includes(
ERROR_STRINGS.subtreeNeverAdded.replace('{0}', ext.dirPathOSIndependent).toLowerCase(),
)
includes(
e.toString().toLowerCase(),
ERROR_STRINGS.subtreeNeverAdded.replace('{0}', ext.dirPathOSIndependent).toLowerCase(),
)
)
// If this folder isn't a subtree, it may be intentionally not based on the template. Continue
console.warn(
Expand Down
Loading

0 comments on commit ee75b96

Please sign in to comment.