Skip to content

Commit

Permalink
feat: 🚚 rename imap option to importmap
Browse files Browse the repository at this point in the history
  • Loading branch information
nnmrts committed Nov 21, 2021
1 parent 971b7db commit ac6a2a5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions src/build_command_string.ts
Expand Up @@ -6,7 +6,7 @@ enum DenoOptions {
allow = "allow",
cachedOnly = "cachedOnly",
cert = "cert",
imap = "imap",
importmap = "importmap",
inspect = "inspect",
inspectBrk = "inspectBrk",
lock = "lock",
Expand All @@ -25,7 +25,7 @@ enum DenoOptions {
const denoCmdOptions: { [key: string]: DenoOptions[] } = {
bundle: [
DenoOptions.cert,
DenoOptions.imap,
DenoOptions.importmap,
DenoOptions.lock,
DenoOptions.log,
DenoOptions.noCheck,
Expand All @@ -39,7 +39,7 @@ const denoCmdOptions: { [key: string]: DenoOptions[] } = {
DenoOptions.allow,
DenoOptions.cachedOnly,
DenoOptions.cert,
DenoOptions.imap,
DenoOptions.importmap,
DenoOptions.inspect,
DenoOptions.inspectBrk,
DenoOptions.lock,
Expand All @@ -56,7 +56,7 @@ const denoCmdOptions: { [key: string]: DenoOptions[] } = {
DenoOptions.allow,
DenoOptions.cachedOnly,
DenoOptions.cert,
DenoOptions.imap,
DenoOptions.importmap,
DenoOptions.inspect,
DenoOptions.inspectBrk,
DenoOptions.lock,
Expand All @@ -74,7 +74,7 @@ const denoCmdOptions: { [key: string]: DenoOptions[] } = {
DenoOptions.allow,
DenoOptions.cachedOnly,
DenoOptions.cert,
DenoOptions.imap,
DenoOptions.importmap,
DenoOptions.inspect,
DenoOptions.inspectBrk,
DenoOptions.lock,
Expand All @@ -90,7 +90,7 @@ const denoCmdOptions: { [key: string]: DenoOptions[] } = {
],
cache: [
DenoOptions.cert,
DenoOptions.imap,
DenoOptions.importmap,
DenoOptions.lock,
DenoOptions.log,
DenoOptions.noCheck,
Expand All @@ -101,7 +101,7 @@ const denoCmdOptions: { [key: string]: DenoOptions[] } = {
DenoOptions.unstable,
],
doc: [
DenoOptions.imap,
DenoOptions.importmap,
DenoOptions.log,
DenoOptions.quiet,
DenoOptions.reload,
Expand All @@ -110,7 +110,7 @@ const denoCmdOptions: { [key: string]: DenoOptions[] } = {
eval: [
DenoOptions.cachedOnly,
DenoOptions.cert,
DenoOptions.imap,
DenoOptions.importmap,
DenoOptions.inspect,
DenoOptions.inspectBrk,
DenoOptions.lock,
Expand All @@ -126,7 +126,7 @@ const denoCmdOptions: { [key: string]: DenoOptions[] } = {
repl: [
DenoOptions.cachedOnly,
DenoOptions.cert,
DenoOptions.imap,
DenoOptions.importmap,
DenoOptions.inspect,
DenoOptions.inspectBrk,
DenoOptions.lock,
Expand Down Expand Up @@ -156,7 +156,7 @@ const denoCmdOptions: { [key: string]: DenoOptions[] } = {
],
info: [
DenoOptions.cert,
DenoOptions.imap,
DenoOptions.importmap,
DenoOptions.log,
DenoOptions.quiet,
DenoOptions.reload,
Expand All @@ -167,7 +167,7 @@ const denoCmdOptions: { [key: string]: DenoOptions[] } = {
const denoOption: Record<DenoOptions, string> = {
...DenoOptions,
[DenoOptions.allow]: "allow-",
[DenoOptions.imap]: "importmap",
[DenoOptions.importmap]: "importmap",
[DenoOptions.inspectBrk]: "inspect-brk",
[DenoOptions.log]: "log-level",
[DenoOptions.tsconfig]: "config",
Expand Down
2 changes: 1 addition & 1 deletion src/scripts_config.ts
Expand Up @@ -121,7 +121,7 @@ export interface DenoCliOptions {
*
* **Note** This currently requires the `--unstable` flag
*/
imap?: string;
importmap?: string;

/**
* The hostname and port where to start the inspector,
Expand Down
4 changes: 2 additions & 2 deletions test/yaml/scripts.yml
Expand Up @@ -24,7 +24,7 @@ scripts:
cmd: deno run test.ts
tsconfig: tsconfig.json
importmap:
cmd: deno run --unstable imap.ts
imap: importmap.json
cmd: deno run --unstable importmap.ts
importmap: importmap.json
forward:
cmd: echo deno test --lock=lock.json --cached-only

0 comments on commit ac6a2a5

Please sign in to comment.