Merge pull request #25 from alibaba/fix/material-parser-config

Fix/material parser config
This commit is contained in:
LeoYuan 袁力皓 2022-02-22 17:21:51 +08:00 committed by GitHub
commit df0e3d8a38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 10 deletions

View File

@ -1,9 +1,8 @@
{
"name": "@alilc/lowcode-material-parser",
"version": "1.0.0",
"version": "1.0.1",
"description": "material parser for Ali lowCode engine",
"main": "lib/index.js",
"module": "es/index.js",
"files": [
"lib",
"schemas"
@ -62,5 +61,8 @@
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"engines": {
"node": ">=10.0.0"
}
}

View File

@ -41,13 +41,13 @@ export interface Npm {
[k: string]: any;
}
export interface PropsSection {
props: {
props: Array<{
name: string;
propType: PropType;
description?: string;
defaultValue?: any;
[k: string]: any;
}[];
}>;
[k: string]: any;
}
export interface RequiredType {
@ -56,7 +56,7 @@ export interface RequiredType {
}
export interface OneOf {
type: 'oneOf';
value: (string | number | boolean)[];
value: Array<string | number | boolean>;
isRequired?: boolean;
[k: string]: any;
}
@ -80,19 +80,19 @@ export interface ObjectOf {
}
export interface Shape {
type: 'shape';
value: {
value: Array<{
name?: string;
propType?: PropType;
}[];
}>;
isRequired?: boolean;
[k: string]: any;
}
export interface Exact {
type: 'exact';
value: {
value: Array<{
name?: string;
propType?: PropType;
}[];
}>;
isRequired?: boolean;
[k: string]: any;
}

View File

@ -8,7 +8,11 @@
// skip type checking of declaration files
"skipLibCheck": true,
"baseUrl": "./packages",
"allowJs": true
"allowJs": true,
"outDir": "lib",
"lib": ["es2018"],
"module": "commonjs",
"target": "es2018"
},
"exclude": ["**/test", "**/lib", "**/dist", "**/es", "node_modules", "schemas"],
"include": ["src/**/*"]