You've already forked joplin
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:
@@ -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',
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user