@designfever/web-review-kit 0.6.0 → 0.7.1
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.
- package/.env.sample +32 -0
- package/README.md +35 -10
- package/dist/chunk-2ZLU5FTD.js +602 -0
- package/dist/chunk-2ZLU5FTD.js.map +1 -0
- package/dist/{chunk-IN36JHEU.js → chunk-RPVLRULC.js} +504 -143
- package/dist/chunk-RPVLRULC.js.map +1 -0
- package/dist/image.types-BmzkFSPX.d.cts +71 -0
- package/dist/image.types-BmzkFSPX.d.ts +71 -0
- package/dist/index.cjs +1037 -144
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -3
- package/dist/index.d.ts +29 -3
- package/dist/index.js +50 -3
- package/dist/index.js.map +1 -1
- package/dist/react-shell.cjs +10339 -5168
- package/dist/react-shell.cjs.map +1 -1
- package/dist/react-shell.d.cts +39 -4
- package/dist/react-shell.d.ts +39 -4
- package/dist/react-shell.js +9687 -4856
- package/dist/react-shell.js.map +1 -1
- package/dist/token-Dt-ZH-YO.d.cts +88 -0
- package/dist/token-nJXPPdYX.d.ts +88 -0
- package/dist/{types-DFHHVRBc.d.cts → types-DT9Z66mV.d.cts} +13 -1
- package/dist/{types-DFHHVRBc.d.ts → types-DT9Z66mV.d.ts} +13 -1
- package/dist/vite.cjs +1144 -5
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.cts +45 -1
- package/dist/vite.d.ts +45 -1
- package/dist/vite.js +829 -5
- package/dist/vite.js.map +1 -1
- package/docs/README.md +13 -7
- package/docs/adapters.md +128 -0
- package/docs/adaptor.sample.ts +13 -1
- package/docs/architecture.md +2 -1
- package/docs/code-review-0.6.0.md +232 -0
- package/docs/db-setup.md +4 -2
- package/docs/figma-image-mvp-0.7.0.md +330 -0
- package/docs/figma-overlay.md +11 -4
- package/docs/installation.md +42 -7
- package/docs/release-notes-0.7.0.md +132 -0
- package/docs/release-notes-0.7.1.md +34 -0
- package/package.json +6 -2
- package/dist/chunk-IN36JHEU.js.map +0 -1
package/docs/installation.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Install `df-web-review-kit` in a host project and mount the review shell on a `/review` route.
|
|
4
4
|
|
|
5
5
|
The default setup is local-only. Remote DB and presence are optional adapters.
|
|
6
|
+
For the QA adapter and Figma image store split, see [Adapter boundaries](adapters.md).
|
|
6
7
|
|
|
7
8
|
## Package Install
|
|
8
9
|
|
|
@@ -16,6 +17,22 @@ Supabase is optional. Install it only in host projects that use the Supabase ada
|
|
|
16
17
|
pnpm add @supabase/supabase-js
|
|
17
18
|
```
|
|
18
19
|
|
|
20
|
+
## Environment
|
|
21
|
+
|
|
22
|
+
Copy the repository [.env.sample](../.env.sample) into the host project as `.env.local`.
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
cp node_modules/@designfever/web-review-kit/.env.sample .env.local
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
For a local-only setup, set only the project id:
|
|
29
|
+
|
|
30
|
+
```env
|
|
31
|
+
VITE_REVIEW_PROJECT_ID=my-project
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Supabase and source-opening values are optional. Leave Supabase URL/key empty when the review shell should use local browser storage only.
|
|
35
|
+
|
|
19
36
|
## Vite Route
|
|
20
37
|
|
|
21
38
|
Create a review entry such as:
|
|
@@ -44,8 +61,9 @@ import {
|
|
|
44
61
|
localAdapter,
|
|
45
62
|
} from '@designfever/web-review-kit';
|
|
46
63
|
|
|
47
|
-
const REVIEW_PROJECT_ID = 'my-project';
|
|
64
|
+
const REVIEW_PROJECT_ID = import.meta.env.VITE_REVIEW_PROJECT_ID || 'my-project';
|
|
48
65
|
const REVIEW_PATH_PREFIX = '/review';
|
|
66
|
+
const REVIEW_USER_ID = import.meta.env.VITE_REVIEW_USER_ID || '';
|
|
49
67
|
|
|
50
68
|
const local = localAdapter({
|
|
51
69
|
storageKey: `${REVIEW_PROJECT_ID}-review-items`,
|
|
@@ -111,7 +129,7 @@ import {
|
|
|
111
129
|
} from '@designfever/web-review-kit';
|
|
112
130
|
import { createClient } from '@supabase/supabase-js';
|
|
113
131
|
|
|
114
|
-
const REVIEW_PROJECT_ID = 'my-project';
|
|
132
|
+
const REVIEW_PROJECT_ID = import.meta.env.VITE_REVIEW_PROJECT_ID || 'my-project';
|
|
115
133
|
const REVIEW_PATH_PREFIX = '/review';
|
|
116
134
|
|
|
117
135
|
const local = localAdapter({
|
|
@@ -138,6 +156,7 @@ const remote = supabaseClient
|
|
|
138
156
|
const adapters = [
|
|
139
157
|
{
|
|
140
158
|
label: 'local',
|
|
159
|
+
defaultUserId: REVIEW_USER_ID,
|
|
141
160
|
get: (id) => local.get(id),
|
|
142
161
|
list: (query) => local.list(query),
|
|
143
162
|
create: (item) => local.create(item),
|
|
@@ -151,6 +170,7 @@ const adapters = [
|
|
|
151
170
|
? [
|
|
152
171
|
{
|
|
153
172
|
label: 'supabase',
|
|
173
|
+
defaultUserId: REVIEW_USER_ID,
|
|
154
174
|
get: (id) => remote.get(id),
|
|
155
175
|
list: (query) => remote.list(query),
|
|
156
176
|
create: (item) => remote.create(item),
|
|
@@ -220,15 +240,25 @@ Captured DOM nodes will include `data-wrk-source-file`, `data-wrk-source-line`,
|
|
|
220
240
|
|
|
221
241
|
In the review shell, hold `Option` over the target iframe to show source candidates from the DOM ancestry. Click the target to pin the candidate list, then choose which file to open. The side rail Source Tree panel lists section/source/data candidates and can scroll to a section or open its source/data file. It can also show live box metrics, text/font metadata, media URLs, and class tags for each node. If the file path is absolute, it opens directly. If the plugin stores relative paths, pass `sourceRoot` when mounting the shell.
|
|
222
242
|
|
|
243
|
+
Source opening reads these optional host env values from `.env.local`:
|
|
244
|
+
|
|
245
|
+
```env
|
|
246
|
+
VITE_REVIEW_SOURCE_ROOT=/absolute/path/to/project
|
|
247
|
+
VITE_REVIEW_SOURCE_EDITOR=cursor
|
|
248
|
+
VITE_REVIEW_SOURCE_URL_TEMPLATE=
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
`VITE_REVIEW_SOURCE_ROOT` is needed when the locator stores relative paths. Absolute source paths can open without it. `VITE_REVIEW_SOURCE_EDITOR` supports `vscode`, `cursor`, `webstorm`, and `custom`. Use `VITE_REVIEW_SOURCE_URL_TEMPLATE` only with `custom`; the template supports `{path}`, `{encodedPath}`, `{line}`, and `{column}`.
|
|
252
|
+
|
|
253
|
+
In Vite/ESM hosts, env values override matching `sourceRoot`, `sourceInspector.editor`, and `sourceInspector.urlTemplate` init values. Init values still work as a fallback for existing projects and CommonJS consumers.
|
|
254
|
+
|
|
223
255
|
```tsx
|
|
224
256
|
mountReviewShell({
|
|
225
257
|
projectId: REVIEW_PROJECT_ID,
|
|
226
258
|
pages,
|
|
227
259
|
adapters,
|
|
228
260
|
reviewPathPrefix: REVIEW_PATH_PREFIX,
|
|
229
|
-
sourceRoot: import.meta.env.VITE_REVIEW_SOURCE_ROOT,
|
|
230
261
|
sourceInspector: {
|
|
231
|
-
editor: 'vscode', // 'vscode' | 'cursor' | 'webstorm' | 'custom'
|
|
232
262
|
maxDepth: 9,
|
|
233
263
|
hoverOutline: true,
|
|
234
264
|
includePlacer: false,
|
|
@@ -248,7 +278,7 @@ In React shell mode, DOM/area draft composers dock into the QA panel when the sh
|
|
|
248
278
|
|
|
249
279
|
## Custom Adapter
|
|
250
280
|
|
|
251
|
-
If a team or host project owns its own QA backend, keep that adapter in the host project or in a separate package. Start from [adaptor.sample.ts](adaptor.sample.ts) and map its `WebReviewKitAdapter` methods to your backend API.
|
|
281
|
+
If a team or host project owns its own QA backend, keep that adapter in the host project or in a separate package. Start from [adaptor.sample.ts](adaptor.sample.ts) and map its `WebReviewKitAdapter` methods to your backend API. Do not put Figma image storage into the QA adapter; use a separate `ReviewFigmaImageStore`.
|
|
252
282
|
|
|
253
283
|
The sample explains the main interfaces:
|
|
254
284
|
|
|
@@ -261,12 +291,17 @@ Private keys, admin credentials, canonical numbering, and permission checks shou
|
|
|
261
291
|
|
|
262
292
|
## Environment
|
|
263
293
|
|
|
294
|
+
The full copyable template is [.env.sample](../.env.sample).
|
|
295
|
+
|
|
264
296
|
```env
|
|
265
|
-
VITE_REVIEW_PROJECT_ID=
|
|
266
|
-
VITE_REVIEW_SUPABASE_URL=
|
|
297
|
+
VITE_REVIEW_PROJECT_ID=my-project
|
|
298
|
+
VITE_REVIEW_SUPABASE_URL=
|
|
267
299
|
VITE_REVIEW_SUPABASE_ANON_KEY=
|
|
268
300
|
VITE_REVIEW_SUPABASE_TABLE=review_items
|
|
269
301
|
VITE_REVIEW_SUPABASE_PRESENCE_PRIVATE=false
|
|
302
|
+
VITE_REVIEW_SOURCE_ROOT=/absolute/path/to/project
|
|
303
|
+
VITE_REVIEW_SOURCE_EDITOR=cursor
|
|
304
|
+
VITE_REVIEW_SOURCE_URL_TEMPLATE=
|
|
270
305
|
```
|
|
271
306
|
|
|
272
307
|
Rules:
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# 릴리즈 노트: 0.7.0
|
|
2
|
+
|
|
3
|
+
0.6.0 release 이후 변경 사항 정리.
|
|
4
|
+
|
|
5
|
+
비교 기준: `0.6.0`
|
|
6
|
+
검토 기준: `main` release candidate
|
|
7
|
+
|
|
8
|
+
## 주요 변경
|
|
9
|
+
|
|
10
|
+
- Figma reference image workflow를 review shell 안으로 옮겼다.
|
|
11
|
+
- Figma image local cache와 Vite plugin helper를 추가했다.
|
|
12
|
+
- QA 작성 필드를 `fields` option으로 확장해 title을 선택적으로 받을 수 있게 했다.
|
|
13
|
+
- QA item에 optional assignee 표시/변경 flow를 추가했다.
|
|
14
|
+
- adapter `defaultUserId`로 Settings `user-id` 기본값을 줄 수 있게 했다.
|
|
15
|
+
- 느린 remote adapter, 특히 df-sheet 연동에서 list/create/update/delete pending 상태를 UI로 표시한다.
|
|
16
|
+
- deep link item restore와 QA list focus 위치 보정을 개선했다.
|
|
17
|
+
- right rail Figma icon stroke를 다른 rail icon과 분리해 맞췄다.
|
|
18
|
+
- 릴리즈 직전 QA mutation failure feedback과 Figma image target key 보정을 반영했다.
|
|
19
|
+
- Sitemap modal에 페이지 검색 필터를 추가했다.
|
|
20
|
+
- Sitemap tree row를 ASCII prefix 대신 접기/펼치기 가능한 folder explorer 형태로 바꿨다.
|
|
21
|
+
- Sitemap tree depth를 더 빨리 읽을 수 있게 indent 영역에 subtle guide line을 추가했다.
|
|
22
|
+
- Sitemap tree guide line을 folder caret 중앙축에 맞추고 body row divider 대신 hover/active block highlight를 사용하도록 정리했다.
|
|
23
|
+
- Sitemap body row 높이를 줄이고 상태 컬럼을 Todo/Review/Hold count 중심으로 정리했다.
|
|
24
|
+
|
|
25
|
+
## 변경
|
|
26
|
+
|
|
27
|
+
### Figma Image Workflow
|
|
28
|
+
|
|
29
|
+
review shell에서 Figma reference image를 등록하고 target page 위에 overlay로 올릴 수 있게 했다.
|
|
30
|
+
|
|
31
|
+
- dev server plugin이 Figma API 호출과 local asset cache를 담당한다.
|
|
32
|
+
- Figma token은 server env의 `FIGMA_TOKEN`을 우선 사용하고, 없으면
|
|
33
|
+
Settings의 browser-local `figma-token`을 image store 요청 fallback으로 사용한다.
|
|
34
|
+
- metadata는 `.df-review/figma-images.json`, asset은 `.df-review/figma-assets/`에 저장한다.
|
|
35
|
+
- review shell에서는 image manager panel과 layer controls를 제공한다.
|
|
36
|
+
- 일반 route에서는 host가 연결한 overlay control만 사용할 수 있게 boundary를 분리했다.
|
|
37
|
+
|
|
38
|
+
### QA Fields
|
|
39
|
+
|
|
40
|
+
adapter option에 `fields`를 추가했다.
|
|
41
|
+
|
|
42
|
+
- `fields.title`이 true일 때만 QA 작성/수정 화면에 title input을 표시한다.
|
|
43
|
+
- title은 optional field이며 없으면 기존 comment-only 작성 흐름을 유지한다.
|
|
44
|
+
- local fallback에는 assignee sample을 넣지 않고 host adapter가 필요한 field만 선언한다.
|
|
45
|
+
- `defaultUserId`는 Settings localStorage `user-id`가 비어 있을 때 기본 reviewer id로 사용한다.
|
|
46
|
+
|
|
47
|
+
### Assignee
|
|
48
|
+
|
|
49
|
+
status와 분리된 optional assignee flow를 추가했다.
|
|
50
|
+
|
|
51
|
+
- `assigneeTitle`로 select label을 host가 지정할 수 있다.
|
|
52
|
+
- `assigneeOptions`로 담당자 목록을 넣는다.
|
|
53
|
+
- `updateAssignee`가 있는 adapter에서만 list item assignee 변경을 허용한다.
|
|
54
|
+
- edit modal에서는 assignee를 수정하지 않는다.
|
|
55
|
+
|
|
56
|
+
### Remote Adapter Pending UI
|
|
57
|
+
|
|
58
|
+
remote adapter가 느릴 때 빈 상태처럼 보이지 않도록 loading/pending feedback을 추가했다.
|
|
59
|
+
|
|
60
|
+
- QA list 로딩 중 spinner와 loading text를 표시한다.
|
|
61
|
+
- refresh 중에는 refresh button을 disabled + spinner 상태로 둔다.
|
|
62
|
+
- QA 등록/수정/삭제/status/assignee 변경 중에는 item/form 단위 pending 상태를 표시한다.
|
|
63
|
+
- create 실패 시 작성 form에 error message를 표시한다.
|
|
64
|
+
|
|
65
|
+
### Deep Link Restore
|
|
66
|
+
|
|
67
|
+
remote list가 늦게 도착하는 경우에도 URL의 `item` query를 복원할 수 있게 보정했다.
|
|
68
|
+
|
|
69
|
+
- initial item restore를 list loading 이후 한 번 더 시도한다.
|
|
70
|
+
- focus scroll 후 layout/animation 때문에 위치가 틀어지는 케이스를 다시 보정한다.
|
|
71
|
+
- df-sheet처럼 list 응답이 느린 adapter에서 deep link item focus 실패를 줄였다.
|
|
72
|
+
|
|
73
|
+
### Release Candidate Fixes
|
|
74
|
+
|
|
75
|
+
- QA status/assignee/submit/delete 실패 시 unhandled rejection으로 남기지 않고 toast로 feedback을 표시한다.
|
|
76
|
+
- QA edit 실패는 toast와 edit modal inline error를 함께 유지한다.
|
|
77
|
+
- Figma image target key가 review shell과 dev overlay에서 query/hash를 포함한 normalized target을 사용하도록 보정했다.
|
|
78
|
+
- Sitemap modal에서 페이지 이름/경로를 검색할 수 있고, 일치하는 하위 page의 상위 folder context를 유지한다.
|
|
79
|
+
- Sitemap folder row는 caret으로 접고 펼칠 수 있으며, 검색 중에는 일치 항목의 상위 folder를 자동으로 펼친다.
|
|
80
|
+
- Sitemap folder depth는 세로 guide line으로 보강해 깊은 경로도 한눈에 구분되게 했다.
|
|
81
|
+
- Sitemap body row divider를 제거하고 hover/active block highlight로 행 구분을 처리한다.
|
|
82
|
+
- Sitemap list는 Total 대신 Todo/Review/Hold state count를 직접 보여준다.
|
|
83
|
+
|
|
84
|
+
## Host 적용 메모
|
|
85
|
+
|
|
86
|
+
### Lexus dogfood integration
|
|
87
|
+
|
|
88
|
+
- Lexus host에서 df-sheet adapter로 title/assignee/status update flow를 확인했다.
|
|
89
|
+
- df-sheet list loading 동안 empty state 대신 loading state가 뜨는지 확인했다.
|
|
90
|
+
- direct URL item restore가 list load 이후 active item을 잡는지 확인했다.
|
|
91
|
+
- Lexus 배포 전에는 `link:../df-web-review-kit`를 published package version으로 바꿔야 한다.
|
|
92
|
+
|
|
93
|
+
### Vite plugin
|
|
94
|
+
|
|
95
|
+
Figma image local cache를 쓰는 host는 Vite config에 review-kit plugin helper를 연결해야 한다.
|
|
96
|
+
|
|
97
|
+
- `reviewFigmaImageStore()`는 dev/local cache endpoint를 제공한다.
|
|
98
|
+
- 개발팀 공용 token은 `FIGMA_TOKEN` server env로 둔다.
|
|
99
|
+
- Vercel 등 검수 환경에서 개인 token이 필요하면 Settings의 Figma token을 사용한다.
|
|
100
|
+
- image format 변환이 필요하면 host가 `sharp` 같은 변환기를 plugin option으로 연결한다.
|
|
101
|
+
|
|
102
|
+
## 문서
|
|
103
|
+
|
|
104
|
+
- README quick start에 `fields`, `assigneeTitle`, `assigneeOptions`, `updateAssignee` 예시를 추가했다.
|
|
105
|
+
- custom adapter sample에 optional title/assignee field와 update flow를 추가했다.
|
|
106
|
+
- QA adapter와 Figma image store boundary 문서를 추가했다.
|
|
107
|
+
- Figma image MVP 구조 note를 추가했다.
|
|
108
|
+
|
|
109
|
+
## 검증
|
|
110
|
+
|
|
111
|
+
아래 명령을 확인했다.
|
|
112
|
+
|
|
113
|
+
- `pnpm run typecheck`
|
|
114
|
+
- `pnpm run typecheck:dev`
|
|
115
|
+
- `pnpm run lint:dead-code`
|
|
116
|
+
- `pnpm run build`
|
|
117
|
+
- `pnpm run build:dev`
|
|
118
|
+
- `npm pack --dry-run --json`
|
|
119
|
+
|
|
120
|
+
수동 확인:
|
|
121
|
+
|
|
122
|
+
- Lexus dogfood review page에서 df-sheet QA list loading state
|
|
123
|
+
- df-sheet QA create form title field
|
|
124
|
+
- QA list item status/assignee pending state
|
|
125
|
+
- direct URL item restore and focus
|
|
126
|
+
- Figma rail/menu icon stroke
|
|
127
|
+
|
|
128
|
+
## 메모
|
|
129
|
+
|
|
130
|
+
- `package.json` version은 `0.7.0`이다.
|
|
131
|
+
- npm publish 전에는 registry login 상태와 latest published version을 확인해야 한다.
|
|
132
|
+
- Lexus target app의 React SVG prop warning(`fill-rule`, `clip-rule`)은 review-kit package warning이 아니다.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# 릴리즈 노트: 0.7.1
|
|
2
|
+
|
|
3
|
+
0.7.0 release 이후 fallback 설정을 보강한 patch release.
|
|
4
|
+
|
|
5
|
+
비교 기준: `0.7.0`
|
|
6
|
+
검토 기준: `main`
|
|
7
|
+
|
|
8
|
+
## 변경
|
|
9
|
+
|
|
10
|
+
- Figma image create 요청에서 server env `FIGMA_TOKEN`을 우선 사용하고, 없으면 Settings의 browser-local `figma-token`을 fallback으로 사용한다.
|
|
11
|
+
- list/update/delete 요청에는 Figma token header를 보내지 않고, Figma API가 필요한 create path에서만 token을 전달한다.
|
|
12
|
+
- adapter `defaultUserId`로 Settings `user-id` 기본값을 줄 수 있게 했다.
|
|
13
|
+
- Settings localStorage `user-id`가 있으면 저장값을 우선 사용하고, 비어 있을 때만 adapter 기본값을 사용한다.
|
|
14
|
+
- dev adapter sample과 installation guide에 `VITE_REVIEW_USER_ID` 예시를 추가했다.
|
|
15
|
+
- 페이지 전환 후 Source Tree가 빈 상태로 남지 않도록 iframe load/DOM mutation 이후 component outline을 다시 읽는다.
|
|
16
|
+
|
|
17
|
+
## 검증
|
|
18
|
+
|
|
19
|
+
- `pnpm run typecheck`
|
|
20
|
+
- `pnpm run typecheck:dev`
|
|
21
|
+
- `pnpm run lint:dead-code`
|
|
22
|
+
- `pnpm run build`
|
|
23
|
+
- `npm pack --dry-run --json`
|
|
24
|
+
|
|
25
|
+
수동 확인:
|
|
26
|
+
|
|
27
|
+
- Settings modal에서 `VITE_REVIEW_USER_ID=env-reviewer`가 Review user ID 기본값으로 표시되는지 확인했다.
|
|
28
|
+
- About help text에서 Figma token fallback 안내가 표시되는지 확인했다.
|
|
29
|
+
- fake fetch로 Figma token header가 addImage create 요청에만 붙는지 확인했다.
|
|
30
|
+
- review shell에서 Source Tree를 연 뒤 `/components/`로 이동해 tree가 토글 없이 현재 DOM 기준으로 유지되는지 확인했다.
|
|
31
|
+
|
|
32
|
+
## 메모
|
|
33
|
+
|
|
34
|
+
- npm `0.7.0`은 `070e2e2` 기준으로 이미 publish되어, 이 patch는 `0.7.1`로 배포한다.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designfever/web-review-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Designfever web page review overlay toolkit.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,13 +41,15 @@
|
|
|
41
41
|
"files": [
|
|
42
42
|
"dist",
|
|
43
43
|
"docs",
|
|
44
|
-
"README.md"
|
|
44
|
+
"README.md",
|
|
45
|
+
".env.sample"
|
|
45
46
|
],
|
|
46
47
|
"scripts": {
|
|
47
48
|
"build": "tsup src/index.ts src/react-shell.tsx src/vite.ts --format esm,cjs --dts --sourcemap --clean --external react --external react-dom --external react/jsx-runtime",
|
|
48
49
|
"dev": "tsup src/index.ts src/react-shell.tsx src/vite.ts --format esm,cjs --dts --sourcemap --watch --external react --external react-dom --external react/jsx-runtime",
|
|
49
50
|
"dev:review": "vite --config dev/vite.config.ts",
|
|
50
51
|
"build:dev": "vite build --config dev/vite.config.ts",
|
|
52
|
+
"lint:dead-code": "knip",
|
|
51
53
|
"prepare": "pnpm build",
|
|
52
54
|
"typecheck": "tsc --noEmit",
|
|
53
55
|
"typecheck:dev": "tsc --noEmit -p tsconfig.dev.json"
|
|
@@ -64,8 +66,10 @@
|
|
|
64
66
|
},
|
|
65
67
|
"devDependencies": {
|
|
66
68
|
"@supabase/supabase-js": "^2.108.2",
|
|
69
|
+
"@types/node": "^26.0.1",
|
|
67
70
|
"@types/react": "^19.2.17",
|
|
68
71
|
"@types/react-dom": "^19.2.3",
|
|
72
|
+
"knip": "^6.20.0",
|
|
69
73
|
"lucide-react": "^1.20.0",
|
|
70
74
|
"react": "^19.2.7",
|
|
71
75
|
"react-dom": "^19.2.7",
|