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

View File

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

View File

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