Update stuff so we can pass build hopefully
This commit is contained in:
@@ -7,11 +7,14 @@ const __dirname = path.dirname(__filename);
|
||||
const usesendDir = path.join(__dirname, '..', 'node_modules', 'usesend-js');
|
||||
|
||||
const ensureReplacement = (content, searchValue, replaceValue, filePath) => {
|
||||
if (content.includes(replaceValue)) {
|
||||
if (replaceValue !== '' && content.includes(replaceValue)) {
|
||||
return content;
|
||||
}
|
||||
|
||||
if (!content.includes(searchValue)) {
|
||||
if (replaceValue === '') {
|
||||
return content;
|
||||
}
|
||||
throw new Error(`Expected snippet not found in ${filePath}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user