diff --git a/packages/@cz-git/plugin-inquirer/README.md b/packages/@cz-git/plugin-inquirer/README.md new file mode 100644 index 000000000..b05471707 --- /dev/null +++ b/packages/@cz-git/plugin-inquirer/README.md @@ -0,0 +1,3 @@ +# @cz-git/inquirer + +> provide cz-git inquirer plugins, include search-list, search-checkbox diff --git a/packages/@cz-git/plugin-inquirer/package.json b/packages/@cz-git/plugin-inquirer/package.json new file mode 100644 index 000000000..a7a810110 --- /dev/null +++ b/packages/@cz-git/plugin-inquirer/package.json @@ -0,0 +1,38 @@ +{ + "name": "@cz-git/inquirer", + "version": "1.2.5", + "description": "provide cz-git inquirer plugins, include search-list, search-checkbox", + "keywords": [ + "cz-git", + "inquirer", + "inquirer-search-list", + "inquirer-search-checkbox" + ], + "homepage": "https://github.com/Zhengqbbb/cz-git/tree/main/packages/%40cz-git/plugin-inquirer", + "bugs": { + "url": "https://github.com/Zhengqbbb/cz-git/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Zhengqbbb/cz-git.git", + "directory": "packages/@cz-git/plugin-inquirer" + }, + "license": "MIT", + "author": "Zhengqbbb <1074059947@qq.com>", + "main": "lib/index.js", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "lib" + ], + "scripts": { + "build": "yarn clean && tsc -b", + "clean": "rimraf *.tsbuildinfo lib", + "dev": "tsc -b --watch" + }, + "publishConfig": { + "access": "public" + } +} diff --git a/packages/@cz-git/plugin-inquirer/src/index.ts b/packages/@cz-git/plugin-inquirer/src/index.ts new file mode 100644 index 000000000..a8141d3b1 --- /dev/null +++ b/packages/@cz-git/plugin-inquirer/src/index.ts @@ -0,0 +1 @@ +console.log("Hello, world!"); diff --git a/packages/@cz-git/plugin-inquirer/tsconfig.base.json b/packages/@cz-git/plugin-inquirer/tsconfig.base.json new file mode 100644 index 000000000..8b948084c --- /dev/null +++ b/packages/@cz-git/plugin-inquirer/tsconfig.base.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.base.json", +} \ No newline at end of file diff --git a/packages/@cz-git/plugin-inquirer/tsconfig.json b/packages/@cz-git/plugin-inquirer/tsconfig.json new file mode 100644 index 000000000..0757f5c72 --- /dev/null +++ b/packages/@cz-git/plugin-inquirer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.base.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "include": ["./src"], + "exclude": ["./lib/**/*"] +} diff --git a/packages/cz-git/package.json b/packages/cz-git/package.json index 694f0b309..8d26de0e2 100644 --- a/packages/cz-git/package.json +++ b/packages/cz-git/package.json @@ -34,6 +34,7 @@ "dev": "tsc -b --watch" }, "dependencies": { + "@cz-git/inquirer": "1.2.5", "@cz-git/loader": "1.2.5", "inquirer": "^7.3.3", "inquirer-autocomplete-prompt": "1.4.0", diff --git a/packages/cz-git/tsconfig.json b/packages/cz-git/tsconfig.json index c97887c73..1322c75ce 100644 --- a/packages/cz-git/tsconfig.json +++ b/packages/cz-git/tsconfig.json @@ -7,5 +7,6 @@ }, "references": [ { "path": "../@cz-git/plugin-loader/tsconfig.json" }, + { "path": "../@cz-git/plugin-inquirer/tsconfig.json" }, ] } diff --git a/tsconfig.build.json b/tsconfig.build.json index 53fe3ed64..fe6cc53fc 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -3,6 +3,7 @@ "references": [ { "path": "./packages/cz-git/tsconfig.json" }, { "path": "./packages/@cz-git/plugin-loader/tsconfig.json" }, + { "path": "./packages/@cz-git/plugin-inquirer/tsconfig.json" }, ], "files": [] }