/** * Helper functions for build scripts. * * @module */ /** * Helper function to see if the compiled output that is checked-in to the Git repository is * up-to-date. * * Note that compiled output (in e.g., the "dist" directory) is not usually committed to a Git * repository, but this is necessary in certain cases, such as when writing a custom GitHub Action * in TypeScript. In these situations, this function should be run as part of the linting stage in * order to ensure that the compiled output is always up to date. * * @throws If the compiled output is not up-to-date. */ export declare function checkCompiledOutputInRepo(): Promise; /** * Helper function to compile a TypeScript project to a single file using Bun. * * The following invocation is used: * * ```sh * bun build --compile --target=${target} --sourcemap --outfile=${outfile} ${entryPointPath} * ``` * * Note that: * * - The outfile is "dist/[package-name]". * - The entrypoint is assumed to be "src/main.ts". * - We do not use the "--minify" flag because it mangles the function names in stack traces. (The * size reduction from this flag is minor anyway.) * * @param packageRoot The path to the root of the package. * @param target Optional. The target binary format. Defaults to match the current system. See: * https://bun.com/docs/bundler/executables#supported-targets * @throws If the "package.json" file does not exist or cannot be parsed. * @see https://bun.com/docs/bundler/executables */ export declare function compileToSingleFileWithBun(packageRoot: string, target?: string): Promise; //# sourceMappingURL=build.d.ts.map