1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ const build = () => {
await buildAll(args.outputDir);
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', {
type: 'string',
describe: 'ID of the plugin to patch',

View File

@ -6,7 +6,7 @@
"scripts": {
"tsc": "tsc --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": {
"type": "git",

View File

@ -32,12 +32,12 @@ For example,
## 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,
```shell
$ 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.