diff --git a/packages/default-plugins/build.ts b/packages/default-plugins/build.ts index b4eec9c29..c9dd16a6d 100644 --- a/packages/default-plugins/build.ts +++ b/packages/default-plugins/build.ts @@ -15,7 +15,7 @@ const build = () => { await buildAll(args.outputDir); process.exit(0); }) - .command('patch ', 'Edit the patch file for the given plugin ID', (yargs: any) => { + .command('patch-plugin ', 'Edit the patch file for the given plugin ID', (yargs: any) => { yargs.positional('plugin', { type: 'string', describe: 'ID of the plugin to patch', diff --git a/packages/default-plugins/package.json b/packages/default-plugins/package.json index 35359a251..45611f5fb 100644 --- a/packages/default-plugins/package.json +++ b/packages/default-plugins/package.json @@ -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", diff --git a/readme/dev/spec/default_plugins.md b/readme/dev/spec/default_plugins.md index 7f718ebb7..e4bbba936 100644 --- a/readme/dev/spec/default_plugins.md +++ b/readme/dev/spec/default_plugins.md @@ -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.