refactor: switch cliffy imports to jsr
This commit is contained in:
parent
dc000ac4de
commit
2b29a4c9e8
2
cli.ts
2
cli.ts
|
@ -1,5 +1,5 @@
|
||||||
import config from './deno.json' with { type: 'json' }
|
import config from './deno.json' with { type: 'json' }
|
||||||
import { Command } from '@cliffy/command/command.ts'
|
import { Command } from '@cliffy/command'
|
||||||
import { cmd as send } from './cli/send.ts'
|
import { cmd as send } from './cli/send.ts'
|
||||||
import { cmd as preview } from './cli/preview.ts'
|
import { cmd as preview } from './cli/preview.ts'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Input } from '@cliffy/prompt/input.ts'
|
import { Input } from '@cliffy/prompt'
|
||||||
import type { Template } from '../types.ts'
|
import type { Template } from '../types.ts'
|
||||||
import type { JSX } from 'preact'
|
import type { JSX } from 'preact'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { fromFileUrl } from '@std/path'
|
import { fromFileUrl } from '@std/path'
|
||||||
import type { JSX } from 'preact'
|
import type { JSX } from 'preact'
|
||||||
import { EnumType } from '@cliffy/command/mod.ts'
|
import { EnumType } from '@cliffy/command'
|
||||||
import type { Template } from '../types.ts'
|
import type { Template } from '../types.ts'
|
||||||
|
|
||||||
export const templates: Map<
|
export const templates: Map<
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Command } from '@cliffy/command/mod.ts'
|
import { Command } from '@cliffy/command'
|
||||||
import { renderTemplate } from '../src/template.tsx'
|
import { renderTemplate } from '../src/template.tsx'
|
||||||
import { templates, templateType } from './_templates_loader.ts'
|
import { templates, templateType } from './_templates_loader.ts'
|
||||||
import { promptProps } from './_prompt_template.ts'
|
import { promptProps } from './_prompt_template.ts'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Command } from '@cliffy/command/mod.ts'
|
import { Command } from '@cliffy/command'
|
||||||
import { Contact } from '../src/contact.ts'
|
import { Contact } from '../src/contact.ts'
|
||||||
import { send } from '../src/send.ts'
|
import { send } from '../src/send.ts'
|
||||||
import type { Mail } from '../types.ts'
|
import type { Mail } from '../types.ts'
|
||||||
|
|
|
@ -18,7 +18,8 @@
|
||||||
"useTabs": true
|
"useTabs": true
|
||||||
},
|
},
|
||||||
"imports": {
|
"imports": {
|
||||||
"@cliffy/": "https://deno.land/x/cliffy@v1.0.0-rc.3/",
|
"@cliffy/command": "jsr:@cliffy/command@^1.0.0-rc.5",
|
||||||
|
"@cliffy/prompt": "jsr:@cliffy/prompt@^1.0.0-rc.5",
|
||||||
"@std/path": "jsr:@std/path@^0.221.0",
|
"@std/path": "jsr:@std/path@^0.221.0",
|
||||||
"jsx-email": "npm:jsx-email@^1.10.12",
|
"jsx-email": "npm:jsx-email@^1.10.12",
|
||||||
"nodemailer": "npm:nodemailer@^6.9.13",
|
"nodemailer": "npm:nodemailer@^6.9.13",
|
||||||
|
|
Loading…
Reference in a new issue