mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
chore: format packages/scripts folder (#19611)
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -2,27 +2,27 @@
|
||||
|
||||
// An agent that starts buildkite-agent and runs others services.
|
||||
|
||||
import { join } from "node:path";
|
||||
import { realpathSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
import { parseArgs } from "node:util";
|
||||
import {
|
||||
isWindows,
|
||||
getOs,
|
||||
getArch,
|
||||
getKernel,
|
||||
getAbi,
|
||||
getAbiVersion,
|
||||
getDistro,
|
||||
getDistroVersion,
|
||||
getHostname,
|
||||
getArch,
|
||||
getCloud,
|
||||
getCloudMetadataTag,
|
||||
which,
|
||||
getDistro,
|
||||
getDistroVersion,
|
||||
getEnv,
|
||||
writeFile,
|
||||
spawnSafe,
|
||||
getHostname,
|
||||
getKernel,
|
||||
getOs,
|
||||
isWindows,
|
||||
mkdir,
|
||||
spawnSafe,
|
||||
which,
|
||||
writeFile,
|
||||
} from "./utils.mjs";
|
||||
import { parseArgs } from "node:util";
|
||||
|
||||
/**
|
||||
* @param {"install" | "start"} action
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { spawn as nodeSpawn } from "node:child_process";
|
||||
import { existsSync, readFileSync, mkdirSync, cpSync, chmodSync } from "node:fs";
|
||||
import { chmodSync, cpSync, existsSync, mkdirSync, readFileSync } from "node:fs";
|
||||
import { basename, join, relative, resolve } from "node:path";
|
||||
import {
|
||||
formatAnnotationToHtml,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// @bun
|
||||
// Used to generate a features.json file after building Bun.
|
||||
|
||||
import { writeFileSync } from "node:fs";
|
||||
import { crash_handler } from "bun:internal-for-testing";
|
||||
import { writeFileSync } from "node:fs";
|
||||
|
||||
writeFileSync("./features.json", JSON.stringify(crash_handler.getFeatureData()));
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { write, Glob, file } from "bun";
|
||||
import { join, resolve, relative } from "path";
|
||||
import { Glob, file, write } from "bun";
|
||||
import { join, relative, resolve } from "path";
|
||||
import { normalize } from "path/posix";
|
||||
|
||||
const root = resolve(import.meta.dirname, "..");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { $, spawnSafe, which, getUsernameForDistro } from "./utils.mjs";
|
||||
import { $, getUsernameForDistro, spawnSafe, which } from "./utils.mjs";
|
||||
|
||||
export const google = {
|
||||
get cloud() {
|
||||
|
||||
@@ -1,48 +1,47 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { existsSync, mkdtempSync, readdirSync } from "node:fs";
|
||||
import { basename, extname, join, relative, resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { inspect, parseArgs } from "node:util";
|
||||
import { docker } from "./docker.mjs";
|
||||
import { google } from "./google.mjs";
|
||||
import { orbstack } from "./orbstack.mjs";
|
||||
import { tart } from "./tart.mjs";
|
||||
import {
|
||||
$,
|
||||
copyFile,
|
||||
curlSafe,
|
||||
escapePowershell,
|
||||
getBootstrapVersion,
|
||||
getBuildNumber,
|
||||
getGithubApiUrl,
|
||||
getGithubUrl,
|
||||
getSecret,
|
||||
getUsernameForDistro,
|
||||
homedir,
|
||||
isCI,
|
||||
isMacOS,
|
||||
isWindows,
|
||||
mkdir,
|
||||
mkdtemp,
|
||||
parseArch,
|
||||
parseOs,
|
||||
readFile,
|
||||
rm,
|
||||
setupUserData,
|
||||
sha256,
|
||||
spawn,
|
||||
spawnSafe,
|
||||
spawnSsh,
|
||||
spawnSshSafe,
|
||||
spawnSyncSafe,
|
||||
startGroup,
|
||||
spawnSshSafe,
|
||||
spawnSsh,
|
||||
tmpdir,
|
||||
waitForPort,
|
||||
which,
|
||||
escapePowershell,
|
||||
getGithubUrl,
|
||||
getGithubApiUrl,
|
||||
curlSafe,
|
||||
mkdtemp,
|
||||
writeFile,
|
||||
copyFile,
|
||||
isMacOS,
|
||||
mkdir,
|
||||
rm,
|
||||
homedir,
|
||||
isWindows,
|
||||
setupUserData,
|
||||
sha256,
|
||||
isPrivileged,
|
||||
getUsernameForDistro,
|
||||
} from "./utils.mjs";
|
||||
import { basename, extname, join, relative, resolve } from "node:path";
|
||||
import { existsSync, mkdtempSync, readdirSync } from "node:fs";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { orbstack } from "./orbstack.mjs";
|
||||
import { docker } from "./docker.mjs";
|
||||
import { google } from "./google.mjs";
|
||||
import { tart } from "./tart.mjs";
|
||||
|
||||
const aws = {
|
||||
get name() {
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
// bun ./scripts/nav2readme.ts
|
||||
//
|
||||
//
|
||||
import nav from "../docs/nav";
|
||||
import { readdirSync } from "fs";
|
||||
import path from "path";
|
||||
import nav from "../docs/nav";
|
||||
function getQuickLinks() {
|
||||
let md = "";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { inspect } from "node:util";
|
||||
import { $, mkdtemp, rm, spawnSafe, writeFile, getUsernameForDistro, spawnSshSafe, setupUserData } from "./utils.mjs";
|
||||
import { getUserData } from "./machine.mjs";
|
||||
import { $, getUsernameForDistro, mkdtemp, rm, setupUserData, spawnSafe, spawnSshSafe, writeFile } from "./utils.mjs";
|
||||
|
||||
/**
|
||||
* @link https://docs.orbstack.dev/
|
||||
|
||||
@@ -14,21 +14,21 @@ import {
|
||||
appendFileSync,
|
||||
existsSync,
|
||||
constants as fs,
|
||||
linkSync,
|
||||
mkdirSync,
|
||||
mkdtempSync,
|
||||
readdirSync,
|
||||
readFileSync,
|
||||
realpathSync,
|
||||
statSync,
|
||||
symlinkSync,
|
||||
unlink,
|
||||
unlinkSync,
|
||||
writeFileSync,
|
||||
linkSync,
|
||||
symlinkSync,
|
||||
} from "node:fs";
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { userInfo } from "node:os";
|
||||
import { basename, dirname, join, relative, sep, extname } from "node:path";
|
||||
import { basename, dirname, extname, join, relative, sep } from "node:path";
|
||||
import { parseArgs } from "node:util";
|
||||
import {
|
||||
getAbi,
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
writeFileSync,
|
||||
} from "node:fs";
|
||||
import { connect } from "node:net";
|
||||
import { hostname, tmpdir as nodeTmpdir, homedir as nodeHomedir, userInfo, release } from "node:os";
|
||||
import { hostname, homedir as nodeHomedir, tmpdir as nodeTmpdir, release, userInfo } from "node:os";
|
||||
import { dirname, join, relative, resolve } from "node:path";
|
||||
import { normalize as normalizeWindows } from "node:path/win32";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user