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
+1 -26
View File
@@ -4,37 +4,12 @@
"license": "MIT",
"exports": "./src/mod.ts",
"exclude": ["**/tmp/*"],
"lint": {
"rules": {
"exclude": ["no-console"]
}
},
"tasks": {
"check": "deno fmt --check . && deno lint . && deno check **/*.ts",
"test": "deno test -A",
"sync": "deno run -A src/sync.ts"
},
"imports": {
"@std/cli": "jsr:@std/cli@^1",
"@std/fmt": "jsr:@std/fmt@^1",
"@std/fs": "jsr:@std/fs@^1",
"@std/path": "jsr:@std/path@^1",
"@std/semver": "jsr:@std/semver@^1",
"@std/jsonc": "jsr:@std/jsonc@^1"
},
"publish": {
"include": [
"src/**/*.ts",
"assets/**/*",
"deno.json",
"README.md"
],
"exclude": [
"**/*_test.*",
"*.todo",
"tests/",
"DESIGN.md",
"src/sync.ts"
]
"exclude": ["**/*_test.*", "*.todo"]
}
}