diff --git a/packages/engine/package.json b/packages/engine/package.json index 0abf9ab..d09bd16 100644 --- a/packages/engine/package.json +++ b/packages/engine/package.json @@ -1,6 +1,6 @@ { "name": "@serverless-devs/engine", - "version": "0.1.2-beta.1", + "version": "0.1.2-beta.2", "description": "a engine lib for serverless-devs", "main": "lib/index.js", "scripts": { diff --git a/packages/load-component/package.json b/packages/load-component/package.json index ab00b5a..35cbde7 100644 --- a/packages/load-component/package.json +++ b/packages/load-component/package.json @@ -1,6 +1,6 @@ { "name": "@serverless-devs/load-component", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "description": "request for serverless-devs", "main": "lib/index.js", "scripts": { diff --git a/packages/load-component/src/utils/index.ts b/packages/load-component/src/utils/index.ts index 342cf18..3040cbe 100644 --- a/packages/load-component/src/utils/index.ts +++ b/packages/load-component/src/utils/index.ts @@ -50,6 +50,8 @@ export const buildComponentInstance = async (componentPath: string, params?: any if (componentInstance) { componentInstance.__path = componentPath; const publishData = getYamlContent(path.join(componentPath, 'publish.yaml')); + const schema = get(publishData, 'Schema'); + componentInstance.schemaPath = schema ? path.join(componentPath, schema) : undefined; const version = get(publishData, 'Version'); if (version) { componentInstance.__version = version;