|
14 | 14 | "dist/"
|
15 | 15 | ],
|
16 | 16 | "scripts": {
|
17 |
| - "build": "tsc --project tsconfig.build.json && npm run build:ui-static", |
| 17 | + "build": "tsc --project tsconfig.build.json && yarn build:ui", |
| 18 | + "build:ui": "vite build", |
18 | 19 | "build:clean": "rimraf dist && yarn build",
|
19 | 20 | "lint": "yarn lint:eslint && yarn lint:misc --check",
|
20 | 21 | "lint:eslint": "eslint . --cache --ext js,ts",
|
21 | 22 | "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
|
22 | 23 | "lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern",
|
23 | 24 | "prepack": "./scripts/prepack.sh",
|
24 | 25 | "test": "jest && jest-it-up --config jest.config.cjs",
|
25 |
| - "test:watch": "jest --watch", |
26 |
| - "build:ui-static": "cp src/ui/index.html dist/ui" |
| 26 | + "test:watch": "jest --watch" |
27 | 27 | },
|
28 | 28 | "dependencies": {
|
29 | 29 | "@metamask/action-utils": "^1.0.0",
|
|
53 | 53 | "@metamask/eslint-config-jest": "^10.0.0",
|
54 | 54 | "@metamask/eslint-config-nodejs": "^10.0.0",
|
55 | 55 | "@metamask/eslint-config-typescript": "^10.0.0",
|
| 56 | + "@tailwindcss/vite": "^4.0.9", |
56 | 57 | "@types/debug": "^4.1.7",
|
57 | 58 | "@types/express": "^5.0.0",
|
58 | 59 | "@types/jest": "^29.5.10",
|
|
67 | 68 | "@types/yargs": "^17.0.10",
|
68 | 69 | "@typescript-eslint/eslint-plugin": "^5.62.0",
|
69 | 70 | "@typescript-eslint/parser": "^5.62.0",
|
| 71 | + "@vitejs/plugin-react": "^4.3.4", |
70 | 72 | "babel-jest": "^29.7.0",
|
71 | 73 | "deepmerge": "^4.2.2",
|
72 | 74 | "eslint": "^8.27.0",
|
|
84 | 86 | "prettier-plugin-packagejson": "^2.5.2",
|
85 | 87 | "rimraf": "^4.0.5",
|
86 | 88 | "stdio-mock": "^1.2.0",
|
| 89 | + "tailwindcss": "^4.0.9", |
87 | 90 | "tsx": "^4.6.1",
|
88 |
| - "typescript": "~5.1.6" |
| 91 | + "typescript": "~5.1.6", |
| 92 | + "vite": "^6.2.0" |
89 | 93 | },
|
90 | 94 | "peerDependencies": {
|
91 | 95 | "prettier": ">=3.0.0"
|
|
101 | 105 | "lavamoat": {
|
102 | 106 | "allowScripts": {
|
103 | 107 | "@lavamoat/preinstall-always-fail": false,
|
104 |
| - "tsx>esbuild": false |
| 108 | + "tsx>esbuild": false, |
| 109 | + "vite>esbuild": false |
105 | 110 | }
|
106 | 111 | }
|
107 | 112 | }
|
0 commit comments