@cocojs/typescript-transformer-autowired 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -15,7 +15,7 @@ function transformer(program) {
|
|
15
15
|
// 检查是否是装饰器调用(如 @a())
|
16
16
|
if (ts.isCallExpression(decoratorExpression) &&
|
17
17
|
ts.isIdentifier(decoratorExpression.expression) &&
|
18
|
-
decoratorExpression.expression.text === 'autowired') {
|
18
|
+
decoratorExpression.expression.text === 'autowired' || decoratorExpression.expression.text === 'reactiveAutowired') {
|
19
19
|
// 获取属性的类型
|
20
20
|
const type = node.type ? node.type.getText(sourceFile) : 'unknown';
|
21
21
|
// 创建类型字符串字面量节点
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cocojs/typescript-transformer-autowired",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.2",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"files": [
|
@@ -11,5 +11,5 @@
|
|
11
11
|
},
|
12
12
|
"keywords": [],
|
13
13
|
"author": "",
|
14
|
-
"license": "
|
14
|
+
"license": "MIT"
|
15
15
|
}
|