1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Chore: Default plugins: Rename patch to patch-plugin (#9797)

This commit is contained in:
Henry Heino
2024-01-28 10:53:13 -08:00
committed by GitHub
parent 25b12a2366
commit 3fbf5ef5d0
3 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ const build = () => {
await buildAll(args.outputDir); await buildAll(args.outputDir);
process.exit(0); process.exit(0);
}) })
.command('patch <plugin>', 'Edit the patch file for the given plugin ID', (yargs: any) => { .command('patch-plugin <plugin>', 'Edit the patch file for the given plugin ID', (yargs: any) => {
yargs.positional('plugin', { yargs.positional('plugin', {
type: 'string', type: 'string',
describe: 'ID of the plugin to patch', describe: 'ID of the plugin to patch',

View File

@@ -6,7 +6,7 @@
"scripts": { "scripts": {
"tsc": "tsc --project tsconfig.json", "tsc": "tsc --project tsconfig.json",
"watch": "tsc --watch --preserveWatchOutput --project tsconfig.json", "watch": "tsc --watch --preserveWatchOutput --project tsconfig.json",
"patch": "ts-node build.ts patch" "patch-plugin": "ts-node build.ts patch-plugin"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@@ -32,12 +32,12 @@ For example,
## Patching the plugin ## Patching the plugin
Some plugins need patching. To create or update a plugin's patch, run the `patch` command in the `packages/default-plugins/` directory. Some plugins need patching. To create or update a plugin's patch, run the `patch-plugin` command in the `packages/default-plugins/` directory.
For example, For example,
```shell ```shell
$ cd packages/default-plugins $ cd packages/default-plugins
$ yarn patch plugin.id.here $ yarn patch-plugin plugin.id.here
``` ```
The script will create a temporary directory in which changes can be made. Do not stage the changes that should appear in the patch. The script will create a temporary directory in which changes can be made. Do not stage the changes that should appear in the patch.