- bunext build records when each page's client bundle hash last changed
in .bunext/page-lastmod.json (sitemap.lastmod_file to relocate). The
hash covers the page's whole import graph, so component edits re-date
every page that uses them. The sitemap uses these dates as lastmod
- Add sitemap.default_lastmod
- BREAKING: use_file_lastmod now defaults to false (file mtimes are reset
by checkouts); it is a fallback after the build record
- Warn when a page or __root.tsx is skipped because its default export
is not at the start of a line (e.g. export { Page as default })
- Replace leaking module mocks in tests (log, grab-root-file-path) with
spies and fixtures
Co-Authored-By: Claude Opus 5.5 <[email protected]>
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
export type DirNames = {
|
|
ROOT_DIR: string;
|
|
SRC_DIR: string;
|
|
PAGES_DIR: string;
|
|
API_DIR: string;
|
|
PUBLIC_DIR: string;
|
|
HYDRATION_DST_DIR: string;
|
|
BUNX_CWD_DIR: string;
|
|
BUNX_ROOT_DIR: string;
|
|
CONFIG_FILE: string;
|
|
BUNX_TMP_DIR: string;
|
|
BUNX_HYDRATION_SRC_DIR: string;
|
|
BUNX_ROOT_SRC_DIR: string;
|
|
BUNX_ROOT_PRESETS_DIR: string;
|
|
BUNX_ROOT_500_PRESET_COMPONENT: string;
|
|
BUNX_ROOT_500_FILE_NAME: string;
|
|
BUNX_ROOT_404_PRESET_COMPONENT: string;
|
|
BUNX_ROOT_404_FILE_NAME: string;
|
|
HYDRATION_DST_DIR_MAP_JSON_FILE: string;
|
|
BUNEXT_CACHE_DIR: string;
|
|
BUNX_CWD_MODULE_CACHE_DIR: string;
|
|
BUNX_CWD_PAGES_REWRITE_DIR: string;
|
|
HYDRATION_DST_DIR_MAP_JSON_FILE_NAME: string;
|
|
BUNEXT_VENDOR_DIR: string;
|
|
BUNEXT_PUBLIC_DIR: string;
|
|
BUNX_BUNDLER_ERROR_EXIT_FILE: string;
|
|
BUNX_ERROR_LOGS_DIR: string;
|
|
BUNX_LOGS_DIR: string;
|
|
BUNDLER_CTX_MAP_JSON: string;
|
|
SSR_BUNDLER_CTX_MAP_JSON: string;
|
|
BUILD_INFO_JSON: string;
|
|
PAGE_LASTMOD_JSON: string;
|
|
};
|
|
export default function grabDirNames(): DirNames;
|