@clerc/plugin-completions 0.9.1 → 0.10.0
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.
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var core = require('@clerc/core');
|
|
6
6
|
var utils = require('@clerc/utils');
|
|
7
7
|
|
|
8
8
|
const generateCommandCompletion = (name) => `
|
|
@@ -94,7 +94,7 @@ const completionMap = {
|
|
|
94
94
|
bash: getBashCompletion,
|
|
95
95
|
pwsh: getPwshCompletion
|
|
96
96
|
};
|
|
97
|
-
const completionsPlugin = (options = {}) =>
|
|
97
|
+
const completionsPlugin = (options = {}) => core.definePlugin({
|
|
98
98
|
setup(cli) {
|
|
99
99
|
const { command = true } = options;
|
|
100
100
|
if (command) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _clerc_core from '@clerc/core';
|
|
2
2
|
|
|
3
3
|
interface Options {
|
|
4
4
|
command?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const completionsPlugin: (options?: Options) =>
|
|
6
|
+
declare const completionsPlugin: (options?: Options) => _clerc_core.Plugin<_clerc_core.Clerc<{}>, _clerc_core.Clerc<{}>>;
|
|
7
7
|
|
|
8
8
|
export { Options, completionsPlugin };
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clerc/plugin-completions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"author": "Ray <nn_201312@163.com> (https://github.com/so1ve)",
|
|
5
5
|
"description": "Clerc plugin completions",
|
|
6
6
|
"keywords": [
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"clerc": "*"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@clerc/
|
|
47
|
-
"clerc": "0.
|
|
46
|
+
"@clerc/core": "0.10.0",
|
|
47
|
+
"@clerc/utils": "0.10.0"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "puild",
|