Open dnicolson opened 2 years ago
I just started using Deno for another project of mine and this exact issue crossed my mind. I'll target https://deno.land/x support for the next release.
I couldn't quite get skypack to work for me, but esm.sh with v1.4.0 works. Granted I don't know much about either service, but it seems like esm.sh is automatically injecting the node compatibility bits from deno.
Running the following script results in type errors when using Deno:
echo 'import plist from "https://cdn.skypack.dev/simple-plist@1.3.1?dts"' | deno run -
https://github.com/wollardj/simple-plist/pull/65 can potentially fix some of them.
Output
``` Download https://cdn.skypack.dev/-/bplist-creator@v0.1.0-uhPJxULkjhpYU9ABuP4k/dist=es2019,mode=types/index.d.ts Download https://cdn.skypack.dev/error/fs?from=simple-plist error: TS2580 [ERROR]: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. export function parseFile