Configuration
A collection of tools for handling Deno’s configuration.
[!NOTE] This matches the behaviour in Deno Deploy, for example the configuration file needs to be called either
deno.json
ordeno.jsonc
.
import {
getDenoConfiguration,
getImportMap,
} from 'https://deno.land/x/configuration';
console.log(await getDenoConfiguration());
console.log(await getImportMap());
import type {
DenoConfiguration,
ImportMap,
} from 'https://deno.land/x/configuration';
const denoConfiguration: DenoConfiguration = {};
const importMap: ImportMap = {};