You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey again @PeteBBC, thanks for opening that issue and for the kind words 😄
The only path alias mechanism supported by skott for now is TypeScript.
I'm not really familiar with jsconfig files, is that a widely used standard? I'm aware of path aliases that can be defined through manifest files (package.json) and I believe that this will be the way to go in the future, but never saw jsconfig files in action yet. How are these paths converted afterwards so that they are runtime compatible?
Nevertheless it's definitely something that skott could support, if skott supports TS path aliases there is no reason that JS path aliases aren't, either if that's through jsconfig or package.json files!
js projects can have aliases configured in a jsconfig file.
Currently they won't be discovered if you run the CLI with
--tsconfig jsconfig.json
, however.This looks to be because buildFromEntrypoint in
packages/skott/src/skott.ts
only runsbuildPathAliases
for .ts entrypoints:Thanks again for the great work! 🙏
The text was updated successfully, but these errors were encountered: