Skip to content

provides out of the box deno support for node packages in production | 生产环境下为 node 包提供开箱即用的 deno 支持

License

Notifications You must be signed in to change notification settings

dishait/udeno

Repository files navigation

udeno

provides out of the box deno support for node packages in production


README

English | 简体中文


Usage

install

npm i udeno -g

cli

in your node package root

udeno
udeno --help

program

import { udeno, transformReadMe } from 'udeno'

udeno() // primary transform

transformReadMe() // transform ReadMe version

config

import { udeno } from 'udeno'

udeno({
	src: 'src', // Source code directory
	depsDir: 'deps', // Directory of output transformation
	npmSpecifiers: true, // open npm specifiers,Not recommended temporarily
	index: 'src/index.ts', // Source code entry file
	npmCDN: 'https://esm.sh/', // npm package cdn
	normalize: defaultNormalize, // Allow you to customize the conversion
	vscode: {
		disable: false, // Disable vscode configuration generation
		path: '.vscode', // Your vscode configuration path
		// The vscode configuration you want to generate
		settings: {
			'deno.enable': true,
			'deno.enablePaths': ['mod.ts', 'deps'] // Automatically generated by default, no need to care
		}
	}
})

License

Made with markthree

Published under MIT License.


About

provides out of the box deno support for node packages in production | 生产环境下为 node 包提供开箱即用的 deno 支持

Resources

License

Stars

Watchers

Forks