fix(init): revert init template to make init work again (#3530)

https://github.com/denoland/fresh/pull/3524 unfortunately introduced a
regression in the init script which breaks it. This was caused by two
independent problems:

1. Only files reachable in the module graph are published, meaning the
templates itself weren't published to JSR
2. When publishing to JSR all specifiers become `https://` internally
which breaks doing path operations like `path.resolve()`,
`path.relative()` and all others. This is something that cannot be
tested locally in advance

Addressing these is going to require a bit of work. The quickest way to
get init working again is to revert it.
This commit is contained in:
Marvin Hagemeister
2025-10-06 17:48:25 +02:00
committed by GitHub
parent b3c91bd008
commit 41fba500de
96 changed files with 1243 additions and 4053 deletions
Generated
-12
View File
@@ -19,7 +19,6 @@
"jsr:@std/async@^1.0.13": "1.0.14",
"jsr:@std/bytes@^1.0.5": "1.0.6",
"jsr:@std/bytes@^1.0.6": "1.0.6",
"jsr:@std/cli@1": "1.0.22",
"jsr:@std/cli@^1.0.19": "1.0.22",
"jsr:@std/cli@^1.0.21": "1.0.22",
"jsr:@std/collections@^1.1.2": "1.1.3",
@@ -30,7 +29,6 @@
"jsr:@std/encoding@1": "1.0.10",
"jsr:@std/encoding@^1.0.10": "1.0.10",
"jsr:@std/expect@^1.0.16": "1.0.17",
"jsr:@std/fmt@1": "1.0.8",
"jsr:@std/fmt@1.0.3": "1.0.3",
"jsr:@std/fmt@^1.0.3": "1.0.8",
"jsr:@std/fmt@^1.0.7": "1.0.8",
@@ -3754,16 +3752,6 @@
"npm:@types/node@^24.2.1"
]
},
"packages/init": {
"dependencies": [
"jsr:@std/cli@1",
"jsr:@std/fmt@1",
"jsr:@std/fs@1",
"jsr:@std/jsonc@1",
"jsr:@std/path@1",
"jsr:@std/semver@1"
]
},
"packages/plugin-tailwindcss-v3": {
"dependencies": [
"npm:autoprefixer@^10.4.21",