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:
parent
25b12a2366
commit
3fbf5ef5d0
@ -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',
|
||||
|
@ -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",
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user