Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/cargo_c/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -238,17 +238,17 @@ export function cargoCBuild(
})
.toDirectory()
.pipe((recipe) =>
options.disablePostBuildSteps ?? false
(options.disablePostBuildSteps ?? false)
? recipe
: std.libtoolSanitizeDependencies(recipe),
)
.pipe((recipe) =>
options.disablePostBuildSteps ?? false
(options.disablePostBuildSteps ?? false)
? recipe
: std.linkerScriptMakePathsRelative(recipe),
)
.pipe((recipe) =>
options.disablePostBuildSteps ?? false
(options.disablePostBuildSteps ?? false)
? recipe
: std.pkgConfigMakePathsRelative(recipe),
)
Expand Down
8 changes: 4 additions & 4 deletions packages/cmake/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -245,22 +245,22 @@ export function cmakeBuild(
.pipe(removeTempFiles)
.pipe(libFolderMakeRelativeSymlink)
.pipe((recipe) =>
options.disablePostBuildSteps ?? false
(options.disablePostBuildSteps ?? false)
? recipe
: std.libtoolSanitizeDependencies(recipe),
)
.pipe((recipe) =>
options.disablePostBuildSteps ?? false
(options.disablePostBuildSteps ?? false)
? recipe
: std.linkerScriptMakePathsRelative(recipe),
)
.pipe((recipe) =>
options.disablePostBuildSteps ?? false
(options.disablePostBuildSteps ?? false)
? recipe
: std.pkgConfigMakePathsRelative(recipe),
)
.pipe((recipe) =>
options.disablePostBuildSteps ?? false
(options.disablePostBuildSteps ?? false)
? recipe
: cmakeSanitizePaths(recipe),
)
Expand Down
2 changes: 1 addition & 1 deletion packages/dart/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export function dartBuild(
.dependencies(dart, ...(options.dependencies ?? []))
.env({
PUB_CACHE: pubCache,
verbose: options.buildParams?.verbose ?? false ? "true" : "false",
verbose: (options.buildParams?.verbose ?? false) ? "true" : "false",
DEFINES_ARGS: definesWrapper(options.buildParams?.defines ?? {}),
entrypoint,
output,
Expand Down
4 changes: 3 additions & 1 deletion packages/dotnet/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ export function dotnetBuild(
config,
rid,
invariant:
options.buildParams?.invariantGlobalization ?? false ? "true" : "false",
(options.buildParams?.invariantGlobalization ?? false)
? "true"
: "false",
project_path: options.path ?? "",
...options.env,
})
Expand Down
4 changes: 2 additions & 2 deletions packages/go/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ export function goBuild(options: GoBuildOptions): std.Recipe<std.Directory> {
.env({
GOMODCACHE: modules,
GOBIN: std.tpl`${std.outputPath}/bin`,
go_generate: options.buildParams?.generate ?? false ? "true" : "false",
go_generate: (options.buildParams?.generate ?? false) ? "true" : "false",
ldflags: ldflagsWrapper(options.buildParams?.ldflags ?? []),
trimpath: options.buildParams?.trimpath ?? false ? "true" : "false",
trimpath: (options.buildParams?.trimpath ?? false) ? "true" : "false",
mod: options.buildParams?.mod ?? "",
package_path: options.path ?? ".",
...options.env,
Expand Down
8 changes: 4 additions & 4 deletions packages/meson/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -179,22 +179,22 @@ export function mesonBuild(
.unsafe(options.unsafe)
.toDirectory()
.pipe((recipe) =>
options.disablePostBuildSteps ?? false
(options.disablePostBuildSteps ?? false)
? recipe
: std.libtoolSanitizeDependencies(recipe),
)
.pipe((recipe) =>
options.disablePostBuildSteps ?? false
(options.disablePostBuildSteps ?? false)
? recipe
: std.linkerScriptMakePathsRelative(recipe),
)
.pipe((recipe) =>
options.disablePostBuildSteps ?? false
(options.disablePostBuildSteps ?? false)
? recipe
: std.pkgConfigMakePathsRelative(recipe),
)
.pipe((recipe) =>
options.disablePostBuildSteps ?? false
(options.disablePostBuildSteps ?? false)
? recipe
: cmakeSanitizePaths(recipe),
)
Expand Down
4 changes: 1 addition & 3 deletions packages/nextvi/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ export default function nextvi(): std.Recipe<std.Directory> {
.toDirectory()
.pipe((recipe) =>
// Rename binary file
recipe
.insert("bin/nextvi", recipe.get("bin/vi"))
.remove("bin/vi"),
recipe.insert("bin/nextvi", recipe.get("bin/vi")).remove("bin/vi"),
)
.pipe((recipe) => std.withRunnableLink(recipe, "bin/nextvi"));
}
Expand Down
4 changes: 1 addition & 3 deletions packages/rust/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,7 @@ export function cargoBuild(
.toDirectory()
.pipe((recipe) =>
// Remove extra metadata created by `cargo install`
recipe
.remove(".crates.toml")
.remove(".crates2.json"),
recipe.remove(".crates.toml").remove(".crates2.json"),
)
.pipe((recipe) => std.withRunnableLink(recipe, options.runnable));
}
Expand Down
5 changes: 2 additions & 3 deletions packages/typer/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ export interface LiteralChecker<T> extends Checker<T> {
[literalSymbol]: T;
}

export type Type<T extends Checker<unknown>> = T extends Checker<infer U>
? U
: never;
export type Type<T extends Checker<unknown>> =
T extends Checker<infer U> ? U : never;

function createChecker<T>(f: (value: unknown) => CheckResult<T>): Checker<T> {
return {
Expand Down
Loading