provides out of the box deno support for node packages in production
English | 简体中文
npm i udeno -g
in your node package root
udeno
udeno --help
import { udeno, transformReadMe } from 'udeno'
udeno() // primary transform
transformReadMe() // transform ReadMe version
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
}
}
})
Made with markthree
Published under MIT License.