diff --git a/packages/build-scripts/CHANGELOG.md b/packages/build-scripts/CHANGELOG.md index 6adf1ec..299adad 100644 --- a/packages/build-scripts/CHANGELOG.md +++ b/packages/build-scripts/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.1.2 + +- [fix] missing type of hasRegistration +- [fix] missing dependency of inquirer + ## 1.1.1 - [fix] compatible with webpack-dev-server v3 diff --git a/packages/build-scripts/package.json b/packages/build-scripts/package.json index 5c7659f..373ee78 100644 --- a/packages/build-scripts/package.json +++ b/packages/build-scripts/package.json @@ -1,6 +1,6 @@ { "name": "build-scripts", - "version": "1.1.1", + "version": "1.1.2", "license": "MIT", "description": "scripts core", "main": "lib/index.js", @@ -36,6 +36,7 @@ "detect-port": "^1.3.0", "esbuild": "^0.12.16", "fs-extra": "^8.1.0", + "inquirer": "^6.5.1", "json5": "^2.1.3", "lodash": "^4.17.15", "npmlog": "^4.1.2", diff --git a/packages/build-scripts/src/core/Context.ts b/packages/build-scripts/src/core/Context.ts index 34718af..6ed8cc0 100644 --- a/packages/build-scripts/src/core/Context.ts +++ b/packages/build-scripts/src/core/Context.ts @@ -184,6 +184,7 @@ export interface IPluginAPI { setValue: (name: string, value: T) => void; getValue: (name: string) => T; registerUserConfig: (args: MaybeArray) => void; + hasRegistration: (name: string, type?: 'cliOption' | 'userConfig') => boolean; registerCliOption: (args: MaybeArray) => void; registerMethod: IRegisterMethod; applyMethod: IApplyMethodAPI;