Skip to content

Commit

Permalink
export interfaces from modal; alpha release
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Feb 17, 2020
1 parent 1c7a456 commit 935d524
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jimengio/code-rule-editor",
"version": "0.1.1",
"version": "0.1.2-a1",
"description": "Code rule editor of JimengIO",
"main": "lib/index.js",
"scripts": {
Expand All @@ -11,7 +11,7 @@
"release": "rm -rfv dist/* && yarn dll-release && time webpack --config webpack/release.js",
"build": "yarn release",
"serve": "http-server dist/ -s",
"compile": "tsc -d --project tsconfig-compile.json --outDir lib/",
"compile": "rm -rfv lib/* && tsc -d --project tsconfig-compile.json --outDir lib/",
"upload": "rsync -avr --progress dist/ fe.jimu.io:~/repo/jimengio/code-rule-editor",
"gen-router": "ts-node -P tsconfig-node.json -r tsconfig-paths/register example/gen-router.ts",
"postinstall": "rm -rfv node_modules/@types/*/node_modules/@types/react"
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export { default as CodeRuleView } from "./code-rule-view";
export { default as CodeRuleModal } from "./code-rule-modal";
export { default as CodeRuleEditor } from "./editor";

export * from "./models/code-rule";
3 changes: 2 additions & 1 deletion src/models/code-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export interface ICodeRuleFormUserInput {
userInputValue?: string;
}

export interface IRule {
/** 可能已经废弃 */
export interface ICodeRuleSegments {
segments: ICodeRule[];
}

0 comments on commit 935d524

Please sign in to comment.