refactor(cli): rename Deno.emit() bundle options to "module" and "classic" (#10332)

This commit is contained in:
Nayeem Rahman 2021-04-25 21:54:57 +01:00 committed by GitHub
parent 83bece56b0
commit fb1ccc3d88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 46 additions and 43 deletions

View file

@ -17,7 +17,7 @@
/**
* @typedef {object} OpEmitRequest
* @property {"esm"=} bundle
* @property {"module" | "classic"=} bundle
* @property {boolean=} check
* @property {Record<string, any>=} compilerOptions
* @property {ImportMap=} importMap
@ -35,7 +35,7 @@
*/
/**
* @param {OpEmitRequest} request
* @param {OpEmitRequest} request
* @returns {Promise<OpEmitResponse>}
*/
function opEmit(request) {
@ -43,7 +43,7 @@
}
/**
* @param {string} specifier
* @param {string} specifier
* @returns {string}
*/
function checkRelative(specifier) {
@ -54,7 +54,7 @@
/**
* @typedef {object} EmitOptions
* @property {"esm"=} bundle
* @property {"module" | "classic"=} bundle
* @property {boolean=} check
* @property {Record<string, any>=} compilerOptions
* @property {ImportMap=} importMap
@ -63,9 +63,9 @@
*/
/**
* @param {string | URL} rootSpecifier
* @param {string | URL} rootSpecifier
* @param {EmitOptions=} options
* @returns {Promise<OpEmitResponse>}
* @returns {Promise<OpEmitResponse>}
*/
function emit(rootSpecifier, options = {}) {
util.log(`Deno.emit`, { rootSpecifier });