@flowscripter/example-cli 1.8.4 → 1.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ Feature: Plugin management
|
|
|
2
2
|
|
|
3
3
|
Note: These scenarios require @flowscripter/example-cli-plugin to be
|
|
4
4
|
published on npmjs.com and the test machine to have network access.
|
|
5
|
-
The plugin install folder is ~/.
|
|
5
|
+
The plugin install folder is ~/.examplecli/plugins.
|
|
6
6
|
|
|
7
7
|
Scenario: Search for example-cli-plugin on npmjs
|
|
8
8
|
When the executable is launched with "plugin:search example-cli-plugin"
|
|
@@ -105,7 +105,7 @@ def step_impl(context):
|
|
|
105
105
|
|
|
106
106
|
@then('the installed plugin dependencies should not include "{packages}"')
|
|
107
107
|
def step_impl(context, packages):
|
|
108
|
-
plugins_node_modules = os.path.expanduser('~/.
|
|
108
|
+
plugins_node_modules = os.path.expanduser('~/.examplecli/plugins/node_modules')
|
|
109
109
|
found = []
|
|
110
110
|
for package in packages.split(','):
|
|
111
111
|
package = package.strip()
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -13,7 +13,7 @@ import path from "node:path";
|
|
|
13
13
|
import os from "node:os";
|
|
14
14
|
|
|
15
15
|
export async function cli(): Promise<void> {
|
|
16
|
-
const pluginsDir = path.join(os.homedir(), ".
|
|
16
|
+
const pluginsDir = path.join(os.homedir(), ".examplecli", "plugins", "node_modules");
|
|
17
17
|
|
|
18
18
|
await launchMultiCommandCLI(
|
|
19
19
|
[demo],
|