Open
Description
Currently the compatibility with Deno is blocked by chalk
dependency, which uses __proto__
https://github.com/chalk/chalk/blob/v2.4.2/index.js#L154, which Deno disables by default.
Deno made a conscious decision to not support
Object.prototype.__proto__
for security reasons.
https://docs.deno.com/runtime/reference/cli/unstable_flags/#--unstable-unsafe-proto
You can check that with the below:
$ deno -A npm:@vscode/vsce -h
error: Uncaught (in promise) TypeError: chalk_1.default.bgGreen.black is not a function
Deno optionally supports --unstable-unsafe-proto
flag which allows the use of __proto__
, and that makes vsce
work in Deno:
$ deno -A --unstable-unsafe-proto npm:@vscode/vsce -h
Usage: vsce <command>
...