mirror of
https://github.com/laurent22/joplin.git
synced 2026-01-06 06:09:43 -06:00
9
packages/default-plugins/utils/getPathToPatchFileFor.ts
Normal file
9
packages/default-plugins/utils/getPathToPatchFileFor.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
import { join, dirname } from 'path';
|
||||
|
||||
const getPathToPatchFileFor = (pluginName: string) => {
|
||||
const rootDir = dirname(__dirname);
|
||||
return join(rootDir, 'plugin-patches', `${pluginName}.diff`);
|
||||
};
|
||||
|
||||
export default getPathToPatchFileFor;
|
||||
Reference in New Issue
Block a user