Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

ayoreis/configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configuration

SourceRegistryAPI

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 or deno.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 = {};