@lark-apaas/fullstack-presets 1.1.16 → 1.1.17-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,11 @@ const rule = {
16
16
  },
17
17
  },
18
18
  create(context) {
19
+ // view.controller.ts 返回的是服务端渲染的视图,不走 shared 类型约定
20
+ const filename = context.filename ?? context.getFilename();
21
+ if (filename && /view\.controller\.ts$/.test(filename)) {
22
+ return {};
23
+ }
19
24
  // 追踪从 shared/ 路径导入的类型名
20
25
  const sharedTypeNames = new Set();
21
26
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-presets",
3
- "version": "1.1.16",
3
+ "version": "1.1.17-alpha.0",
4
4
  "files": [
5
5
  "lib"
6
6
  ],