mirror of https://github.com/buster-so/buster.git
dry run
This commit is contained in:
parent
d0ab484a81
commit
2833c6bb0c
|
@ -7,8 +7,9 @@
|
|||
}
|
||||
},
|
||||
"scripts": {
|
||||
"prebuild": "tsx scripts/validate-env.ts && pnpm run typecheck",
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || (tsx scripts/validate-env.ts && pnpm run typecheck)",
|
||||
"build": "tsup",
|
||||
"build:dry-run": "tsup",
|
||||
"dev": "bun --watch src/index.ts",
|
||||
"dev:build": "tsup --watch",
|
||||
"lint": "biome check --write",
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
"scripts": {
|
||||
"dev": "echo 'y' | npx trigger.dev@v4-beta dev",
|
||||
"deploy": "echo 'y' | npx trigger.dev@v4-beta deploy",
|
||||
"prebuild": "tsx scripts/validate-env.ts",
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
"build": "echo 'No build step required but we run it to make sure env is loaded' && tsc --noEmit",
|
||||
"build:dry-run": "echo 'No build step required but we run it to make sure env is loaded' && tsc --noEmit",
|
||||
"lint": "biome check --write",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest watch",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"scripts": {
|
||||
"ai:dev": "pnpm --filter @buster/ai dev",
|
||||
"build": "turbo build",
|
||||
"build:dry-run": "SKIP_ENV_CHECK=true turbo run build:dry-run",
|
||||
"check": "biome check ${1:-.}",
|
||||
"check:fix": "biome check --write ${1:-.}",
|
||||
"ci:check": "pnpm run check && pnpm run typecheck",
|
||||
|
|
|
@ -13,8 +13,9 @@
|
|||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"prebuild": "tsx scripts/validate-env.ts",
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
"build": "tsc",
|
||||
"build:dry-run": "tsc",
|
||||
"build:commonjs": "tsc --module commonjs --moduleResolution node",
|
||||
"build:commonjs:watch": "npm run build:commonjs && tsc --module commonjs --moduleResolution node --watch",
|
||||
"dev": "tsc --watch",
|
||||
|
|
|
@ -14,8 +14,9 @@
|
|||
}
|
||||
},
|
||||
"scripts": {
|
||||
"prebuild": "tsx scripts/validate-env.ts",
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
"build": "tsc",
|
||||
"build:dry-run": "tsc",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"dev": "tsc --watch",
|
||||
"dev:mastra": "mastra dev --dir src",
|
||||
|
|
|
@ -13,8 +13,9 @@
|
|||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"prebuild": "tsx scripts/validate-env.ts",
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
"build": "tsc",
|
||||
"build:dry-run": "tsc",
|
||||
"build:commonjs": "tsc --module commonjs --moduleResolution node",
|
||||
"build:commonjs:watch": "npm run build:commonjs && tsc --module commonjs --moduleResolution node --watch",
|
||||
"lint": "biome check --write",
|
||||
|
|
|
@ -19,8 +19,9 @@
|
|||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"prebuild": "tsx scripts/validate-env.ts",
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
"build": "tsc",
|
||||
"build:dry-run": "tsc",
|
||||
"build:commonjs": "tsc --module commonjs --moduleResolution node",
|
||||
"build:commonjs:watch": "npm run build:commonjs && tsc --module commonjs --moduleResolution node --watch",
|
||||
"db:check": "drizzle-kit check",
|
||||
|
|
|
@ -11,8 +11,9 @@
|
|||
}
|
||||
},
|
||||
"scripts": {
|
||||
"prebuild": "tsx scripts/validate-env.ts",
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
"build": "tsc",
|
||||
"build:dry-run": "tsc",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vitest run",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
|
|
|
@ -15,8 +15,9 @@
|
|||
}
|
||||
},
|
||||
"scripts": {
|
||||
"prebuild": "tsx scripts/validate-env.ts",
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
"build": "tsc",
|
||||
"build:dry-run": "tsc",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"dev": "tsc --watch",
|
||||
"lint": "biome check",
|
||||
|
|
|
@ -15,8 +15,9 @@
|
|||
}
|
||||
},
|
||||
"scripts": {
|
||||
"prebuild": "tsx scripts/validate-env.ts",
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
"build": "tsc",
|
||||
"build:dry-run": "tsc",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"dev": "tsc --watch",
|
||||
"lint": "biome check --write",
|
||||
|
|
|
@ -19,8 +19,9 @@
|
|||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"prebuild": "tsx scripts/validate-env.ts",
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
"build": "tsc",
|
||||
"build:dry-run": "tsc",
|
||||
"build:commonjs": "tsc --module commonjs --moduleResolution node",
|
||||
"build:commonjs:watch": "npm run build:commonjs && tsc --module commonjs --moduleResolution node --watch",
|
||||
"lint": "biome check --write",
|
||||
|
|
|
@ -14,8 +14,9 @@
|
|||
}
|
||||
},
|
||||
"scripts": {
|
||||
"prebuild": "tsx scripts/validate-env.ts",
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
"build": "tsc",
|
||||
"build:dry-run": "tsc",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"lint": "biome check --write",
|
||||
"test": "vitest run",
|
||||
|
|
|
@ -372,12 +372,15 @@ async function createPackageFiles(config: PackageConfig) {
|
|||
},
|
||||
},
|
||||
scripts: {
|
||||
prebuild: "tsx scripts/validate-env.ts",
|
||||
prebuild: "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
build: "tsc",
|
||||
"build:dry-run": "tsc",
|
||||
typecheck: "tsc --noEmit",
|
||||
dev: "tsc --watch",
|
||||
lint: "biome check --write",
|
||||
test: "vitest run",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
"test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
|
||||
"test:watch": "vitest watch",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
},
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Skip env validation if SKIP_ENV_CHECK is set
|
||||
if [ "$SKIP_ENV_CHECK" = "true" ]; then
|
||||
echo "Skipping environment validation (dry-run build)"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Otherwise run the validation script
|
||||
tsx scripts/validate-env.ts
|
|
@ -7,6 +7,11 @@
|
|||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/**", ".next/**"]
|
||||
},
|
||||
"build:dry-run": {
|
||||
"dependsOn": ["^build:dry-run"],
|
||||
"outputs": ["dist/**", ".next/**"],
|
||||
"env": ["SKIP_ENV_CHECK"]
|
||||
},
|
||||
"dev": {
|
||||
"cache": false,
|
||||
"persistent": true,
|
||||
|
|
Loading…
Reference in New Issue