Skip to content

Commit 02b1fe2

Browse files
committed
fix(build-plugin-lowcode): 适配 lowcode-engine types
1 parent b39c7a4 commit 02b1fe2

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

packages/build-plugin-lowcode/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alifd/build-plugin-lowcode",
3-
"version": "0.3.18",
3+
"version": "0.3.19-beta.0",
44
"description": "build plugin for component-to-lowcode",
55
"main": "src/index.js",
66
"keywords": [
@@ -9,7 +9,9 @@
99
"scripts": {
1010
"component:dev": "cd demo/component && npm start",
1111
"setter:dev": "cd demo/setter && npm start",
12-
"antdSetterMap:dev": "cd demo/antd-setter-map && npm start"
12+
"antdSetterMap:dev": "cd demo/antd-setter-map && npm start",
13+
"pub": "npm publish",
14+
"beta": "npm publish --tag=beta"
1315
},
1416
"repository": {
1517
"type": "git",
@@ -42,4 +44,4 @@
4244
"style-loader": "^2.0.0",
4345
"webpack": "^4.46.0"
4446
}
45-
}
47+
}

packages/build-plugin-lowcode/src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,14 +600,14 @@ async function initLowCodeSchema(
600600
`${lowcodeDir}/${componentNameFolder}/meta${metaDevSubfix}.${metaFormat || 'ts'}`,
601601
),
602602
`
603-
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
603+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
604604
605-
const ${item.componentName}Meta: ComponentMetadata = ${JSON.stringify(
605+
const ${item.componentName}Meta: IPublicTypeComponentMetadata = ${JSON.stringify(
606606
componentDescription,
607607
null,
608608
2,
609609
)};
610-
const snippets: Snippet[] = ${JSON.stringify(snippets, null, 2)};
610+
const snippets: IPublicTypeSnippet[] = ${JSON.stringify(snippets, null, 2)};
611611
612612
export default {
613613
...${item.componentName}Meta,

0 commit comments

Comments
 (0)