π§Build options
Last updated
Was this helpful?
Was this helpful?
// @ts-check
/** @type { import('denoify/lib/config/parseParams').DenoifyParams } */
const config = {
//...your options
}
module.exports = config;export type DenoifyParams = {
replacer?: string;
ports?: {
[portName: string]: string;
};
out?: string;
index?: string;
includes?: (
| string
| {
src: string;
destDir?: string;
destBasename?: string;
}
)[];
};//.denoifyrc.json
{
"out": "./deno"
}//.denoifyrc.json
{
"index": "./src/foo.ts"
}import { load } from "js-yaml";import { load } from "npm:js-yaml@4.1.0";//.denoifyrc.json
{
"ports": {
"js-yaml": "https://deno.land/x/js_yaml_port/js-yaml.js"
}
}import { load } from "https://deno.land/x/js_yaml_port@3.14.0/js-yaml.js";//.denoifyrc.json
{
"ports": {
"ts-md5": "garronej/ts-md5"
}
}import { Md5 } from "ts-md5";import { Md5 } from "https://raw.githubusercontent.com/garronej/ts-md5/v1.2.7/deno_dist/mod.ts";