diff options
| author | 2026-01-18 16:40:54 +0800 | |
|---|---|---|
| committer | 2026-01-18 16:40:54 +0800 | |
| commit | f5e2c9b9291be3a646c407a86d8f5fdc76cecd9f (patch) | |
| tree | 672f53b385ed5cb1d9a69057bdff934d925e5081 | |
| parent | 104e52bb97f81d23132f3f75bf5e89b20cfe4624 (diff) | |
| download | DropOut-f5e2c9b9291be3a646c407a86d8f5fdc76cecd9f.tar.gz DropOut-f5e2c9b9291be3a646c407a86d8f5fdc76cecd9f.zip | |
fix(build): fix pnpm build script
| -rw-r--r-- | biome.json | 35 | ||||
| -rw-r--r-- | package.json | 51 | ||||
| -rw-r--r-- | pnpm-lock.yaml | 91 | ||||
| -rw-r--r-- | src-tauri/tauri.conf.json | 80 |
4 files changed, 192 insertions, 65 deletions
diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..eb43210 --- /dev/null +++ b/biome.json @@ -0,0 +1,35 @@ +{ + "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + "files": { + "ignoreUnknown": false + }, + "formatter": { + "enabled": true, + "indentStyle": "space", + "indentWidth": 2 + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true + } + }, + "javascript": { + "formatter": { + "quoteStyle": "double" + } + }, + "assist": { + "enabled": true, + "actions": { + "source": { + "organizeImports": "on" + } + } + } +} diff --git a/package.json b/package.json index d410720..17f2423 100644 --- a/package.json +++ b/package.json @@ -1,27 +1,28 @@ { - "name": "@dropout/dropout", - "version": "0.1.0", - "private": true, - "description": "Dropout, the next-generation Minecraft game launcher", - "scripts": { - "prepare": "prek install" - }, - "keywords": [ - "dropout", - "minecraft", - "launcher", - "game", - "mod", - "modpack" - ], - "license": "MIT", - "packageManager": "pnpm@10.27.0", - "devDependencies": { - "@j178/prek": "^0.2.29" - }, - "pnpm": { - "overrides": { - "vite": "npm:rolldown-vite@^7" - } - } + "name": "@dropout/dropout", + "version": "0.1.0", + "private": true, + "description": "Dropout, the next-generation Minecraft game launcher", + "scripts": { + "prepare": "prek install" + }, + "keywords": [ + "dropout", + "minecraft", + "launcher", + "game", + "mod", + "modpack" + ], + "license": "MIT", + "packageManager": "pnpm@10.27.0", + "devDependencies": { + "@biomejs/biome": "^2.3.11", + "@j178/prek": "^0.2.29" + }, + "pnpm": { + "overrides": { + "vite": "npm:rolldown-vite@^7" + } + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5698859..a177812 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: .: devDependencies: + '@biomejs/biome': + specifier: ^2.3.11 + version: 2.3.11 '@j178/prek': specifier: ^0.2.29 version: 0.2.29 @@ -87,6 +90,59 @@ importers: packages: + '@biomejs/biome@2.3.11': + resolution: {integrity: sha512-/zt+6qazBWguPG6+eWmiELqO+9jRsMZ/DBU3lfuU2ngtIQYzymocHhKiZRyrbra4aCOoyTg/BmY+6WH5mv9xmQ==} + engines: {node: '>=14.21.3'} + hasBin: true + + '@biomejs/cli-darwin-arm64@2.3.11': + resolution: {integrity: sha512-/uXXkBcPKVQY7rc9Ys2CrlirBJYbpESEDme7RKiBD6MmqR2w3j0+ZZXRIL2xiaNPsIMMNhP1YnA+jRRxoOAFrA==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [darwin] + + '@biomejs/cli-darwin-x64@2.3.11': + resolution: {integrity: sha512-fh7nnvbweDPm2xEmFjfmq7zSUiox88plgdHF9OIW4i99WnXrAC3o2P3ag9judoUMv8FCSUnlwJCM1B64nO5Fbg==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [darwin] + + '@biomejs/cli-linux-arm64-musl@2.3.11': + resolution: {integrity: sha512-XPSQ+XIPZMLaZ6zveQdwNjbX+QdROEd1zPgMwD47zvHV+tCGB88VH+aynyGxAHdzL+Tm/+DtKST5SECs4iwCLg==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [linux] + + '@biomejs/cli-linux-arm64@2.3.11': + resolution: {integrity: sha512-l4xkGa9E7Uc0/05qU2lMYfN1H+fzzkHgaJoy98wO+b/7Gl78srbCRRgwYSW+BTLixTBrM6Ede5NSBwt7rd/i6g==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [linux] + + '@biomejs/cli-linux-x64-musl@2.3.11': + resolution: {integrity: sha512-vU7a8wLs5C9yJ4CB8a44r12aXYb8yYgBn+WeyzbMjaCMklzCv1oXr8x+VEyWodgJt9bDmhiaW/I0RHbn7rsNmw==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [linux] + + '@biomejs/cli-linux-x64@2.3.11': + resolution: {integrity: sha512-/1s9V/H3cSe0r0Mv/Z8JryF5x9ywRxywomqZVLHAoa/uN0eY7F8gEngWKNS5vbbN/BsfpCG5yeBT5ENh50Frxg==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [linux] + + '@biomejs/cli-win32-arm64@2.3.11': + resolution: {integrity: sha512-PZQ6ElCOnkYapSsysiTy0+fYX+agXPlWugh6+eQ6uPKI3vKAqNp6TnMhoM3oY2NltSB89hz59o8xIfOdyhi9Iw==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [win32] + + '@biomejs/cli-win32-x64@2.3.11': + resolution: {integrity: sha512-43VrG813EW+b5+YbDbz31uUsheX+qFKCpXeY9kfdAx+ww3naKxeVkTD9zLIWxUPfJquANMHrmW3wbe/037G0Qg==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [win32] + '@emnapi/core@1.8.1': resolution: {integrity: sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==} @@ -949,6 +1005,41 @@ packages: snapshots: + '@biomejs/biome@2.3.11': + optionalDependencies: + '@biomejs/cli-darwin-arm64': 2.3.11 + '@biomejs/cli-darwin-x64': 2.3.11 + '@biomejs/cli-linux-arm64': 2.3.11 + '@biomejs/cli-linux-arm64-musl': 2.3.11 + '@biomejs/cli-linux-x64': 2.3.11 + '@biomejs/cli-linux-x64-musl': 2.3.11 + '@biomejs/cli-win32-arm64': 2.3.11 + '@biomejs/cli-win32-x64': 2.3.11 + + '@biomejs/cli-darwin-arm64@2.3.11': + optional: true + + '@biomejs/cli-darwin-x64@2.3.11': + optional: true + + '@biomejs/cli-linux-arm64-musl@2.3.11': + optional: true + + '@biomejs/cli-linux-arm64@2.3.11': + optional: true + + '@biomejs/cli-linux-x64-musl@2.3.11': + optional: true + + '@biomejs/cli-linux-x64@2.3.11': + optional: true + + '@biomejs/cli-win32-arm64@2.3.11': + optional: true + + '@biomejs/cli-win32-x64@2.3.11': + optional: true + '@emnapi/core@1.8.1': dependencies: '@emnapi/wasi-threads': 1.1.0 diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index dd84fd4..e376299 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,43 +1,43 @@ { - "productName": "dropout", - "version": "0.1.26", - "identifier": "com.dropout.launcher", - "build": { - "beforeDevCommand": "pnpm -C ../ui dev", - "beforeBuildCommand": "pnpm -C ../ui build", - "devUrl": "http://localhost:5173", - "frontendDist": "../ui/dist" - }, - "app": { - "windows": [ - { - "title": "Minecraft DropOut Launcher", - "width": 1024, - "height": 768, - "minWidth": 905, - "minHeight": 575, - "resizable": true - } - ], - "security": { - "csp": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' https: ws: wss:;", - "capabilities": ["default"] - } - }, - "bundle": { - "active": true, - "targets": "all", - "icon": [ - "icons/32x32.png", - "icons/128x128.png", - "icons/128x128@2x.png", - "icons/icon.icns", - "icons/icon.ico" - ], - "linux": { - "appimage": { - "bundleMediaFramework": false - } - } + "productName": "dropout", + "version": "0.1.26", + "identifier": "com.dropout.launcher", + "build": { + "beforeDevCommand": "pnpm --filter @dropout/ui dev", + "beforeBuildCommand": "pnpm --filter @dropout/ui build", + "devUrl": "http://localhost:5173", + "frontendDist": "../ui/dist" + }, + "app": { + "windows": [ + { + "title": "Minecraft DropOut Launcher", + "width": 1024, + "height": 768, + "minWidth": 905, + "minHeight": 575, + "resizable": true + } + ], + "security": { + "csp": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' https: ws: wss:;", + "capabilities": ["default"] } + }, + "bundle": { + "active": true, + "targets": "all", + "icon": [ + "icons/32x32.png", + "icons/128x128.png", + "icons/128x128@2x.png", + "icons/icon.icns", + "icons/icon.ico" + ], + "linux": { + "appimage": { + "bundleMediaFramework": false + } + } + } } |