
* web: Format live reload package. * web: Format package.json. * web: Revise globals. * web: Build entrypoints with a single ESBuild context. Clean up entrypoints. * web: WIP Prepare monorepo package for use. * web: Update build paths. Fix types. * web: WIP Add monorepo dependency. * web: Use monorepo utilities when building. * web: Fix issue where linters collide. Update ignore file. - Remove unused sort override for polyfills. * core: Prepare repo for NPM workspaces.
37 lines
890 B
TypeScript
37 lines
890 B
TypeScript
/**
|
|
* @file Environment variables available via ESBuild.
|
|
*/
|
|
|
|
declare module "module" {
|
|
global {
|
|
/**
|
|
* @deprecated This is not present in ESM files.
|
|
*
|
|
* ```js
|
|
* import { dirname } from "node:path";
|
|
* import { fileURLToPath } from "node:url";
|
|
*
|
|
* const relativeDirname = dirname(fileURLToPath(import.meta.url));
|
|
* ```
|
|
*/
|
|
// eslint-disable-next-line no-var
|
|
var __dirname: string;
|
|
}
|
|
}
|
|
|
|
declare module "process" {
|
|
global {
|
|
namespace NodeJS {
|
|
interface ProcessEnv {
|
|
CWD: string;
|
|
/**
|
|
* @todo Determine where this is used and if it is needed,
|
|
* give it a better name.
|
|
* @deprecated
|
|
*/
|
|
AK_API_BASE_PATH: string;
|
|
}
|
|
}
|
|
}
|
|
}
|