mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 12:13:10 +00:00
Merge pull request #25 from alibaba/fix/material-parser-config
Fix/material parser config
This commit is contained in:
commit
df0e3d8a38
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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/**/*"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user