refactor: centralise imports and cleanup exports (#2900)

The benefits of these changes are:
1. Managing and updating dependencies is easier. One only needs to run
`deno outdated` at the root, instead of in each workspace.
2. The versions of dependencies across workspaces is kept consistent.

Closes #2788
This commit is contained in:
Asher Gomez
2025-05-19 09:41:06 +02:00
committed by GitHub
parent 3900aa70d4
commit 3776ef3154
6 changed files with 60 additions and 245 deletions
+21 -3
View File
@@ -42,9 +42,10 @@
},
"imports": {
"@deno/doc": "jsr:@deno/doc@^0.172.0",
"@std/cli": "jsr:@std/cli@^1.0.17",
"@std/collections": "jsr:@std/collections@^1.0.11",
"@std/http": "jsr:@std/http@^1.0.15",
"fresh": "jsr:@fresh/core@^2.0.0-alpha.26",
"fresh": "jsr:@fresh/core@^2.0.0-alpha.29",
"preact": "npm:preact@^10.26.6",
"preact-render-to-string": "npm:preact-render-to-string@^6.5.11",
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts",
@@ -56,7 +57,7 @@
"@std/crypto": "jsr:@std/crypto@1",
"@std/datetime": "jsr:@std/datetime@^0.225.2",
"@std/encoding": "jsr:@std/encoding@1",
"@std/fmt": "jsr:@std/fmt@1",
"@std/fmt": "jsr:@std/fmt@^1.0.7",
"@std/fs": "jsr:@std/fs@1",
"@std/html": "jsr:@std/html@1",
"@std/jsonc": "jsr:@std/jsonc@1",
@@ -70,7 +71,24 @@
"linkedom": "npm:linkedom@^0.16.11",
"@std/async": "jsr:@std/async@1",
"@std/expect": "jsr:@std/expect@1",
"@std/testing": "jsr:@std/testing@1"
"@std/testing": "jsr:@std/testing@1",
"autoprefixer": "npm:autoprefixer@10.4.17",
"cssnano": "npm:cssnano@6.0.3",
"postcss": "npm:postcss@8.4.35",
"tailwindcss": "npm:tailwindcss@^3.4.1",
"ts-morph": "npm:ts-morph@^22.0.0",
"@fresh/plugin-tailwind": "jsr:@fresh/plugin-tailwind@^0.0.1-alpha.7",
"@std/front-matter": "jsr:@std/front-matter@^1.0.5",
"fresh/compat": "./src/compat/mod.ts",
"fresh/dev": "./src/dev/mod.ts",
"fresh/runtime": "./src/runtime/shared.ts",
"github-slugger": "npm:github-slugger@^2.0.0",
"marked": "npm:marked@^14.1.2",
"marked-mangle": "npm:marked-mangle@^1.1.9",
"prismjs": "npm:prismjs@^1.29.0"
},
"compilerOptions": {
"lib": ["dom", "dom.asynciterable", "deno.ns", "deno.unstable"],