Skip to content

Commit 8cf8323

Browse files
committed
fix: update RULE_URL and enhance build script to copy figma.json
1 parent 6245fdc commit 8cf8323

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

entrypoints/background.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const RULE_URL =
2-
'https://raw.githubusercontent.com/ecomfe/tempad-dev/refs/heads/main/public/rules/figma.json'
1+
const RULE_URL = 'https://ecomfe.github.io/tempad-dev/figma.json'
32

43
const SYNC_ALARM = 'sync-rules'
54
const SYNC_INTERVAL_MINUTES = 10

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dev:firefox": "wxt -b firefox",
1010
"build": "wxt build && pnpm run build:rewrite && pnpm run build:plugins && pnpm run build:readme",
1111
"build:firefox": "wxt build -b firefox",
12-
"build:rewrite": "esbuild ./rewrite/figma.ts --outfile=./dist/figma.js --bundle --format=iife",
12+
"build:rewrite": "esbuild ./rewrite/figma.ts --outfile=./dist/figma.js --bundle --format=iife && cp ./public/rules/figma.json ./dist/figma.json",
1313
"build:plugins": "tsc -p ./plugins/tsconfig.json",
1414
"build:readme": "tsx ./build/readme.ts",
1515
"npm:plugins": "pnpm build:plugins && cd plugins && pnpm publish --access public && cd ..",

0 commit comments

Comments
 (0)