add legacy-peer deps

This commit is contained in:
Oleg 2022-08-28 13:47:30 +03:00
parent f7eaba92f7
commit 6a77915ad3
4 changed files with 11 additions and 9 deletions

1
.npmrc
View File

@ -1 +1,2 @@
tag-version-prefix=""
legacy-peer-deps=true

View File

@ -1,11 +1,4 @@
import {
App,
Notice,
Plugin,
PluginSettingTab,
Setting,
TFile,
} from 'obsidian';
import { App, Plugin, PluginSettingTab, Setting, TFile } from 'obsidian';
import { FolderSuggest } from './src/suggestions/folderSuggest';
import { renderDonateButton } from './src/components/DonateButton';
import {

View File

@ -78,6 +78,11 @@ export const renameFilesInObsidian = (app: App, plugin: BulkRenamePlugin) => {
return;
}
if (!plugin.settings.fileNames.length) {
new Notice('Please check your results before rename!');
return;
}
new Notice('renaming has been started');
for (const fileName of plugin.settings.fileNames) {
app.fileManager.renameFile(fileName, replaceFilePath(plugin, fileName));

View File

@ -15,6 +15,9 @@ describe('File Services', () => {
it.todo(
'should display notification if Existing Symbol match Replace Pattern',
);
it.todo(
"should throw an error if there files didn't reviewed before submit",
);
});
describe('Renaming', () => {