feat: switch to jsr packages when available
This commit is contained in:
parent
87e674b02b
commit
6d56d9ec1f
|
|
@ -26,15 +26,16 @@
|
||||||
"packages/"
|
"packages/"
|
||||||
],
|
],
|
||||||
"imports": {
|
"imports": {
|
||||||
|
"@deno/gfm": "jsr:@deno/gfm@^0.10.0",
|
||||||
|
"@std/fs": "jsr:@std/fs@^1.0.6",
|
||||||
|
"@std/path": "jsr:@std/path@^1.0.8",
|
||||||
"fresh": "jsr:@fresh/core@^2.0.0-alpha.25",
|
"fresh": "jsr:@fresh/core@^2.0.0-alpha.25",
|
||||||
"$std/": "https://deno.land/std@0.208.0/",
|
|
||||||
":components/": "./components/",
|
":components/": "./components/",
|
||||||
":islands/": "./islands/",
|
":islands/": "./islands/",
|
||||||
":src/": "./src/",
|
":src/": "./src/",
|
||||||
":types": "./types.ts",
|
":types": "./types.ts",
|
||||||
"@cohabit/mailer": "jsr:@cohabit/mailer@^0.3.3",
|
"@cohabit/mailer": "jsr:@cohabit/mailer@^0.3.3",
|
||||||
"@cohabit/resources-manager": "jsr:@cohabit/resources-manager@^0.2.1",
|
"@cohabit/resources-manager": "jsr:@cohabit/resources-manager@^0.2.1",
|
||||||
"@deno/gfm": "https://deno.land/x/gfm@0.6.0/mod.ts",
|
|
||||||
"@jotsr/delayed": "jsr:@jotsr/delayed@^2.1.1",
|
"@jotsr/delayed": "jsr:@jotsr/delayed@^2.1.1",
|
||||||
"@jotsr/smart-css-bundler": "jsr:@jotsr/smart-css-bundler@^0.3.0",
|
"@jotsr/smart-css-bundler": "jsr:@jotsr/smart-css-bundler@^0.3.0",
|
||||||
"@preact/signals": "npm:@preact/signals@^1.3.0",
|
"@preact/signals": "npm:@preact/signals@^1.3.0",
|
||||||
|
|
@ -44,10 +45,10 @@
|
||||||
"@std/encoding": "jsr:@std/encoding@^0.224.3",
|
"@std/encoding": "jsr:@std/encoding@^0.224.3",
|
||||||
"@std/front-matter": "jsr:@std/front-matter@^0.224.2",
|
"@std/front-matter": "jsr:@std/front-matter@^0.224.2",
|
||||||
"@std/http": "jsr:@std/http@^0.224.4",
|
"@std/http": "jsr:@std/http@^0.224.4",
|
||||||
"@std/json": "jsr:@std/json@^0.224.1",
|
"@std/json": "jsr:@std/json@^1.0.1",
|
||||||
"@std/streams": "jsr:@std/streams@^0.224.5",
|
"@std/streams": "jsr:@std/streams@^0.224.5",
|
||||||
"@univoq/": "https://deno.land/x/univoq@0.2.0/",
|
|
||||||
"preact": "npm:preact@^10.24.2",
|
"preact": "npm:preact@^10.24.2",
|
||||||
|
"@univoq/": "https://deno.land/x/univoq@0.2.0/",
|
||||||
"univoq": "https://deno.land/x/univoq@0.2.0/mod.ts",
|
"univoq": "https://deno.land/x/univoq@0.2.0/mod.ts",
|
||||||
"web-push": "npm:web-push@^3.6.7"
|
"web-push": "npm:web-push@^3.6.7"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { JsonParseStream } from '$std/json/mod.ts'
|
import { JsonParseStream } from '@std/json'
|
||||||
import { Markdown } from ':components/Markdown.tsx'
|
import { Markdown } from ':components/Markdown.tsx'
|
||||||
import { Signal, signal, useSignal } from '@preact/signals'
|
import { Signal, signal, useSignal } from '@preact/signals'
|
||||||
import { JSX } from 'preact'
|
import { JSX } from 'preact'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { expandGlob } from '$std/fs/mod.ts'
|
import { expandGlob } from '@std/fs'
|
||||||
import { SessionHandlers } from ':src/session/mod.ts'
|
import { SessionHandlers } from ':src/session/mod.ts'
|
||||||
import { respondApi } from ':src/utils.ts'
|
import { respondApi } from ':src/utils.ts'
|
||||||
import { BUILD_ID } from '$fresh/src/server/build_id.ts'
|
import { BUILD_ID } from '$fresh/src/server/build_id.ts'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { ensureDir } from '$std/fs/mod.ts'
|
import { ensureDir } from '@std/fs'
|
||||||
import { join } from '$std/path/join.ts'
|
import { join } from '@std/path'
|
||||||
import denoJson from '../deno.json' with { type: 'json' }
|
import denoJson from '../deno.json' with { type: 'json' }
|
||||||
|
|
||||||
// Get package from cli
|
// Get package from cli
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@ import { Group, User } from '@cohabit/resources-manager/models'
|
||||||
import type { MailAddress } from '@cohabit/resources-manager/types'
|
import type { MailAddress } from '@cohabit/resources-manager/types'
|
||||||
|
|
||||||
// Import Datas
|
// Import Datas
|
||||||
import { exists } from '$std/fs/exists.ts'
|
import { ensureDir, exists } from '@std/fs'
|
||||||
import { ensureDir } from '$std/fs/mod.ts'
|
|
||||||
import groups from ':src/db/mock/groups.json' with { type: 'json' }
|
import groups from ':src/db/mock/groups.json' with { type: 'json' }
|
||||||
import users from ':src/db/mock/users.json' with { type: 'json' }
|
import users from ':src/db/mock/users.json' with { type: 'json' }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/// <reference no-default-lib="true"/>
|
/// <reference no-default-lib="true"/>
|
||||||
/// <reference lib="webworker" />
|
/// <reference lib="webworker" />
|
||||||
|
|
||||||
import type { JsonValue } from '$std/json/common.ts'
|
import type { JsonValue } from '@std/json'
|
||||||
import { ApiPayload } from ':src/utils.ts'
|
import { ApiPayload } from ':src/utils.ts'
|
||||||
import type { PrecacheResponse } from '../../routes/api/serviceworker/precache.tsx'
|
import type { PrecacheResponse } from '../../routes/api/serviceworker/precache.tsx'
|
||||||
import { FetchStrategy } from './src/fetch_strategy.ts'
|
import { FetchStrategy } from './src/fetch_strategy.ts'
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import type { Signal } from '@preact/signals'
|
import type { Signal } from '@preact/signals'
|
||||||
import { JsonValue } from '$std/json/common.ts'
|
import { JsonParseStream, JsonStringifyStream, JsonValue } from '@std/json'
|
||||||
import { decodeBase64 } from '@std/encoding/base64'
|
import { decodeBase64 } from '@std/encoding/base64'
|
||||||
import { JsonStringifyStream } from '@std/json'
|
|
||||||
import { JsonParseStream } from '@std/json/json-parse-stream'
|
|
||||||
import { TextLineStream } from '@std/streams/text-line-stream'
|
import { TextLineStream } from '@std/streams/text-line-stream'
|
||||||
|
|
||||||
export type JsonCompatible = JsonValue | { toJSON(): JsonValue } | unknown
|
export type JsonCompatible = JsonValue | { toJSON(): JsonValue } | unknown
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue