Skip to content

Commit

Permalink
feat(deno): support for --unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
Vehmloewff committed Jul 20, 2023
1 parent 56f133d commit 6a2d9dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export interface DenoExecOptions extends DenoOptions {
*
* NOTE: 'inherit' permissions are equivalent to 'all' */
permissions?: DenoExecPermissions

/** If true, operation be provided with the unstable apis of the Deno runtime */
unstable?: boolean
}

export interface DenoOptions {
Expand Down Expand Up @@ -91,6 +94,7 @@ function stringifyDenoExecOptions(options: DenoExecOptions) {
args.push(...stringifyDenoOptions(options))

if (options.permissions) args.push(...stringifyPermissions(options.permissions))
if (options.unstable) args.push('--unstable')

return args
}
Expand Down

0 comments on commit 6a2d9dd

Please sign in to comment.