@lark-apaas/coding-templates 0.1.32 → 0.1.34

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.
@@ -2,7 +2,6 @@
2
2
  "name": "{{projectName}}",
3
3
  "version": "0.1.0",
4
4
  "private": true,
5
- "type": "module",
6
5
  "mclaw": {
7
6
  "stack": "apex",
8
7
  "stackVersion": "0.1.0",
@@ -14,7 +13,9 @@
14
13
  "scripts": {
15
14
  "dev": "tsx --watch --watch-path server --watch-path shared server/index.ts",
16
15
  "build": "bash scripts/build.sh",
17
- "lint": "npm run lint:client && npm run lint:server",
16
+ "typecheck": "npm run typecheck:client",
17
+ "typecheck:client": "tsc -p tsconfig.app.json",
18
+ "lint": "npm run typecheck && npm run lint:client && npm run lint:server",
18
19
  "lint:client": "eslint client/src",
19
20
  "lint:server": "eslint server",
20
21
  "gen:db-schema": "npx -y @lark-apaas/db-schema-sync@latest --output server/db/schema.ts"
@@ -85,6 +86,7 @@
85
86
  "@types/react": "^19",
86
87
  "@types/react-dom": "^19",
87
88
  "eslint": "^9",
89
+ "tsc-alias": "^1.8.15",
88
90
  "tsx": "^4",
89
91
  "typescript": "~5.9",
90
92
  "vite": "^8"
@@ -19,6 +19,7 @@ npx vite build --outDir "$ROOT/dist/client" --emptyOutDir
19
19
 
20
20
  # 2. tsc 构建服务端 → dist/server/
21
21
  npx tsc -p tsconfig.server.json
22
+ npx tsc-alias -p tsconfig.server.json
22
23
 
23
24
  # 3. 组装 dist/output/
24
25
  mkdir -p "$OUTPUT"
@@ -9,5 +9,6 @@
9
9
  "@shared/*": ["./shared/*"]
10
10
  }
11
11
  },
12
- "include": ["client/src", "shared"]
12
+ "include": ["client/src", "shared"],
13
+ "exclude": ["client/src/components/ui"]
13
14
  }
@@ -1,7 +1,7 @@
1
1
  import { StrictMode } from "react";
2
2
  import { createRoot } from "react-dom/client";
3
3
  import { AppContainer } from "@lark-apaas/client-toolkit-lite";
4
- import "@lark-apaas/client-toolkit-lite/styles";
4
+ import "@lark-apaas/client-toolkit-lite/styles.css";
5
5
  import App from "./app";
6
6
  import "./index.css";
7
7