What’s the right way to resolve app.css and other non-registry files in jsrepo? #614
Unanswered
mmailaender
asked this question in
Q&A
Replies: 2 comments 6 replies
-
|
Normally you would add these as |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Good hint. Added them as configFiles "configFiles": [
{
"name": "app.css",
"path": "./src/app.css",
"expectedPath": "./src/app.css",
"optional": false
},
{
"name": "hooks.server.ts",
"path": "./src/hooks.server.ts",
"expectedPath": "./src/hooks.server.ts",
"optional": false
},
{
"name": "app.html",
"path": "./src/app.html",
"expectedPath": "./src/app.html",
"optional": false
}
],But now it's unhappy with my import in app.css app.css ./src/app.css Config files cannot have local dependencies!the app.css imports another css file (which is also a block) Do you have any ideas for this as well? ;) |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I run
jsrepo add routes/+layoutit throws the errorInvalid block! app.css/index does not exist!.So the problem seems, that only

convex,lib, androutesare included in the registry, but not app.cssIt seems to me that jsrepo sees the import in
import '../app.css';and attempts to resolve it as the blockapp.css/index, but then fails when importing it. It also fails if the file already exists, so it seems the mechanic is only interested in whether the local import exists as a block or not.These files are currently not covered by the registry, so adding them would simplify things significantly.
I'm asking myself how to resolve this best. Any ideas?
Current
jsrepo-build-config.json{ "$schema": "https://unpkg.com/jsrepo@2.4.5/schemas/registry-config.json", "name": "@auth/svelte", "version": "0.0.5", "readme": "README.md", "meta": { "author": "Micha Mailänder", "bugs": "https://github.com/mmailaender/auth/issues", "description": "Plug & Play Auth Widgets for your application", "homepage": "https://etesie.dev/docs/auth", "repository": "https://github.com/mmailaender/auth", "tags": ["auth", "svelte", "ui", "convex", "better-auth"] }, "dirs": ["./src"], "allowSubdirectories": true, "doNotListBlocks": ["primitives", "_generated"], "doNotListCategories": [], "listBlocks": [], "listCategories": [], "excludeDeps": ["svelte", "@sveltejs/kit"], "peerDependencies": { "svelte": "5.x.x", "@sveltejs/kit": "2.x.x", "tailwindcss": "4.x.x" }, "includeBlocks": [], "includeCategories": [], "excludeBlocks": [], "excludeCategories": [], "preview": false, "includeDocs": false, "rules": { "require-local-dependency-exists": "warn", "no-circular-dependency": "warn", "no-framework-dependency": "warn" } }Beta Was this translation helpful? Give feedback.
All reactions