Documents / @faasjs/node-utils / RegisterNodeModuleHooksOptions
Type Alias: RegisterNodeModuleHooksOptions
RegisterNodeModuleHooksOptions =
object
Options for preloading Node module hooks that resolve tsconfig paths and local TypeScript files.
These options are used by registerNodeModuleHooks. loadPackage() can
infer equivalent state for local files before it imports them.
Properties
entry?
optionalentry?:string
Application entry file used to infer the project root and tsconfig path.
Default
process.argv[1]
root?
optionalroot?:string
Project root used to scope tsconfig path alias resolution.
When omitted, the root is inferred from entry, tsconfigPath, or the
nearest project marker around a loaded local file.
tsconfigPath?
optionaltsconfigPath?:string
Explicit tsconfig file path used to load path alias rules.
Default
'<root>/tsconfig.json'
version?
optionalversion?:string
Version token appended to ESM file URLs to bypass Node's module cache.
When omitted, FAASJS_MODULE_VERSION is used if present.