mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 22:01:47 +00:00
refactor: move cookie files to api/cookie/
Step 4.4 of source reorganization - move cookie-related files: - JSCookie.cpp/h - JSCookieMap.cpp/h 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
"src/buntime/api/console/*.cpp",
|
||||
"src/buntime/api/inspector/*.cpp",
|
||||
"src/buntime/api/error/*.cpp",
|
||||
"src/buntime/api/cookie/*.cpp",
|
||||
"src/bake/*.cpp",
|
||||
"src/deps/*.cpp",
|
||||
"src/vm/*.cpp",
|
||||
|
||||
@@ -225,8 +225,11 @@ set(BUN_ERROR_CODE_SCRIPT ${CWD}/src/codegen/generate-node-errors.ts)
|
||||
|
||||
set(BUN_ERROR_CODE_SOURCES
|
||||
${BUN_ERROR_CODE_SCRIPT}
|
||||
${CWD}/src/buntime/api/error
|
||||
${CWD}/src/buntime/api/error/ErrorCode.ts
|
||||
${CWD}/src/buntime/api/error
|
||||
${CWD}/src/buntime/api/error/ErrorCode.cpp
|
||||
${CWD}/src/buntime/api/error
|
||||
${CWD}/src/buntime/api/error/ErrorCode.h
|
||||
)
|
||||
|
||||
@@ -591,11 +594,13 @@ foreach(i RANGE 0 ${BUN_OBJECT_LUT_SOURCES_MAX_INDEX})
|
||||
endforeach()
|
||||
|
||||
WEBKIT_ADD_SOURCE_DEPENDENCIES(
|
||||
${CWD}/src/buntime/api/error
|
||||
${CWD}/src/buntime/api/error/ErrorCode.cpp
|
||||
${CODEGEN_PATH}/ErrorCode+List.h
|
||||
)
|
||||
|
||||
WEBKIT_ADD_SOURCE_DEPENDENCIES(
|
||||
${CWD}/src/buntime/api/error
|
||||
${CWD}/src/buntime/api/error/ErrorCode.h
|
||||
${CODEGEN_PATH}/ErrorCode+Data.h
|
||||
)
|
||||
@@ -868,6 +873,7 @@ target_include_directories(${bun} PRIVATE
|
||||
${CWD}/src/buntime/api/console
|
||||
${CWD}/src/buntime/api/inspector
|
||||
${CWD}/src/buntime/api/error
|
||||
${CWD}/src/buntime/api/cookie
|
||||
${CWD}/src/buntime/modules
|
||||
${CWD}/src/js/builtins
|
||||
${CWD}/src/napi
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from "node:path";
|
||||
import NodeErrors from "../buntime/bindings/ErrorCode.ts";
|
||||
import NodeErrors from "../buntime/api/error/ErrorCode.ts";
|
||||
import { writeIfNotChanged } from "./helpers.ts";
|
||||
const outputDir = process.argv[2];
|
||||
|
||||
@@ -24,7 +24,7 @@ let zig = ``;
|
||||
enumHeader = `
|
||||
// clang-format off
|
||||
// Generated by: src/codegen/generate-node-errors.ts
|
||||
// Input: src/buntime/bindings/ErrorCode.ts
|
||||
// Input: src/buntime/api/error/ErrorCode.ts
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
@@ -149,7 +149,7 @@ let builtindts = await Bun.file(builtindtsPath).text();
|
||||
|
||||
let dts = `
|
||||
// Generated by: src/codegen/generate-node-errors.ts
|
||||
// Input: src/buntime/bindings/ErrorCode.ts
|
||||
// Input: src/buntime/api/error/ErrorCode.ts
|
||||
|
||||
// Global error code functions for TypeScript
|
||||
`;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { LoaderKeys } from "../api/schema";
|
||||
import NodeErrors from "../buntime/bindings/ErrorCode.ts";
|
||||
import NodeErrors from "../buntime/api/error/ErrorCode.ts";
|
||||
import jsclasses from "./../buntime/bindings/js_classes";
|
||||
import { sliceSourceCode } from "./builtin-parser";
|
||||
import { registerNativeCall } from "./generate-js2native";
|
||||
|
||||
Reference in New Issue
Block a user