Skip to content

Commit 8f3dce9

Browse files
committed
refactor: remove unused import in figma.ts and add prepare script
1 parent 8ca5796 commit 8f3dce9

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.lefthook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ pre-commit:
44
typecheck:
55
run: pnpm -r typecheck
66
lint:
7-
files: "\\.(ts|js|mjs|cjs|mts|cts|vue)$"
7+
glob: '*.{ts,js,mjs,cjs,mts,cts,vue}'
88
run: pnpm exec eslint --fix {staged_files}
99
stage_fixed: true
1010
format:
11-
files: "\\.(ts|js|mjs|cjs|cts|mts|json|md|yml|yaml|vue)$"
11+
glob: '*.{ts,js,mjs,cjs,cts,mts,json,md,yml,yaml,vue}'
1212
run: pnpm exec prettier --write {staged_files}
1313
stage_fixed: true

packages/extension/utils/figma.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { ui } from '@/ui/figma'
2-
31
export function getCanvas() {
42
// Need to ensure the whole plugin is rendered after canvas is ready
53
// so that we can cast the result to HTMLElement here.

packages/mcp-shared/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
],
1717
"scripts": {
1818
"build": "tsdown",
19+
"prepare": "pnpm run build",
1920
"typecheck": "tsc -p tsconfig.json --noEmit",
2021
"lint": "eslint . --ext .ts,.mts,.cts,.js,.mjs,.cjs",
2122
"lint:fix": "eslint . --ext .ts,.mts,.cts,.js,.mjs,.cjs --fix",

0 commit comments

Comments
 (0)