mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
Refactor Zig imports and file structure (part 1) (#21270)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -2482,14 +2482,14 @@ pub const PackCommand = struct {
|
||||
};
|
||||
|
||||
pub const bindings = struct {
|
||||
const JSC = bun.JSC;
|
||||
const JSValue = JSC.JSValue;
|
||||
const JSGlobalObject = JSC.JSGlobalObject;
|
||||
const CallFrame = JSC.CallFrame;
|
||||
const ZigString = JSC.ZigString;
|
||||
const jsc = bun.jsc;
|
||||
const JSValue = jsc.JSValue;
|
||||
const JSGlobalObject = jsc.JSGlobalObject;
|
||||
const CallFrame = jsc.CallFrame;
|
||||
const ZigString = jsc.ZigString;
|
||||
const String = bun.String;
|
||||
const JSArray = JSC.JSArray;
|
||||
const JSObject = JSC.JSObject;
|
||||
const JSArray = jsc.JSArray;
|
||||
const JSObject = jsc.JSObject;
|
||||
|
||||
pub fn jsReadTarball(global: *JSGlobalObject, callFrame: *CallFrame) bun.JSError!JSValue {
|
||||
const args = callFrame.arguments_old(1).slice();
|
||||
@@ -2664,6 +2664,9 @@ pub const bindings = struct {
|
||||
}
|
||||
};
|
||||
|
||||
const string = []const u8;
|
||||
const stringZ = [:0]const u8;
|
||||
|
||||
const std = @import("std");
|
||||
|
||||
const libarchive = @import("../libarchive/libarchive.zig").lib;
|
||||
@@ -2675,7 +2678,7 @@ const Environment = bun.Environment;
|
||||
const FD = bun.FD;
|
||||
const FileDescriptor = bun.FileDescriptor;
|
||||
const Global = bun.Global;
|
||||
const JSON = bun.JSON;
|
||||
const JSON = bun.json;
|
||||
const OOM = bun.OOM;
|
||||
const Output = bun.Output;
|
||||
const PathBuffer = bun.PathBuffer;
|
||||
@@ -2685,14 +2688,12 @@ const Semver = bun.Semver;
|
||||
const glob = bun.glob;
|
||||
const js_printer = bun.js_printer;
|
||||
const sha = bun.sha;
|
||||
const string = bun.string;
|
||||
const stringZ = bun.stringZ;
|
||||
const strings = bun.strings;
|
||||
const CowString = bun.ptr.CowString;
|
||||
const File = bun.sys.File;
|
||||
|
||||
const Command = bun.CLI.Command;
|
||||
const Publish = bun.CLI.PublishCommand;
|
||||
const Command = bun.cli.Command;
|
||||
const Publish = bun.cli.PublishCommand;
|
||||
|
||||
const Install = bun.install;
|
||||
const Dependency = Install.Dependency;
|
||||
|
||||
Reference in New Issue
Block a user