feat: automatically build go modules during pnpm build

This commit is contained in:
Aarnav Tale
2025-10-16 22:01:46 -04:00
parent f44881b399
commit ac9ce72078
2 changed files with 13 additions and 0 deletions
+3
View File
@@ -6,7 +6,9 @@
"type": "module",
"scripts": {
"preinstall": "npx only-allow pnpm",
"prebuild": "mise run build-go-wasm",
"build": "react-router build",
"postbuild": "mise run build-go-agent",
"dev": "HEADPLANE_LOAD_ENV_OVERRIDES=true HEADPLANE_CONFIG_PATH=./config.example.yaml react-router dev",
"start": "node build/server/index.js",
"typecheck": "react-router typegen && tsgo",
@@ -65,6 +67,7 @@
},
"devDependencies": {
"@biomejs/biome": "^2.2.0",
"@jdxcode/mise": "^2025.10.10",
"@react-router/dev": "^7.8.1",
"@tailwindcss/vite": "^4.1.12",
"@types/node": "^24.3.0",
+10
View File
@@ -155,6 +155,9 @@ importers:
'@biomejs/biome':
specifier: ^2.2.0
version: 2.2.0
'@jdxcode/mise':
specifier: ^2025.10.10
version: 2025.10.10
'@react-router/dev':
specifier: ^7.8.1
version: 7.8.1(@types/node@24.3.0)(jiti@2.5.1)(lightningcss@1.30.1)(react-dom@19.1.1(react@19.1.1))(react-router@7.8.1(react-dom@19.1.1(react@19.1.1))(react@19.1.1))(react@19.1.1)(rolldown-vite@7.1.4(@types/node@24.3.0)(esbuild@0.25.9)(jiti@2.5.1)(terser@5.39.0)(tsx@4.20.4)(yaml@2.8.1))(terser@5.39.0)(tsx@4.20.4)(typescript@5.9.2)(yaml@2.8.1)
@@ -887,6 +890,11 @@ packages:
resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==}
engines: {node: '>=18.0.0'}
'@jdxcode/mise@2025.10.10':
resolution: {integrity: sha512-xIfaRovDJAZO7GHzrRkrX9+DW+btdufzAdjltzSt8AM0LQz9RE1P0FLAV5U3ySeYpo/EjtMCRWXgam8l2QDVQg==}
engines: {node: '>=5.0.0'}
hasBin: true
'@jridgewell/gen-mapping@0.3.13':
resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
@@ -4717,6 +4725,8 @@ snapshots:
dependencies:
minipass: 7.1.2
'@jdxcode/mise@2025.10.10': {}
'@jridgewell/gen-mapping@0.3.13':
dependencies:
'@jridgewell/sourcemap-codec': 1.5.5