Skip to content

feat: add @/ path alias to generated projects#3562

Merged
marvinhagemeister merged 1 commit into
freshframework:mainfrom
brettchalupa:root-alias
Oct 21, 2025
Merged

feat: add @/ path alias to generated projects#3562
marvinhagemeister merged 1 commit into
freshframework:mainfrom
brettchalupa:root-alias

Conversation

@brettchalupa
Copy link
Copy Markdown
Contributor

Sets up @/ as the default path alias in newly generated Fresh
projects, following the official Deno documentation guidelines. This
allows developers to use @/ for absolute imports from the project root
instead of relative paths. This is especially convenient to remove
import that require deeply traversing up the directory tree.

The @/ alias is now included in the imports section of deno.json for
all new projects, enabling cleaner import statements like:

import { Button } from "@/components/Button.tsx";

Fixes #3485

Sets up `@/` as the default path alias in newly generated Fresh
projects, following the official Deno documentation guidelines. This
allows developers to use `@/` for absolute imports from the project root
instead of relative paths. This is especially convenient to remove
import that require deeply traversing up the directory tree.

The `@/` alias is now included in the imports section of deno.json for
all new projects, enabling cleaner import statements like:

```
import { Button } from "@/components/Button.tsx";
```

Fixes freshframework#3485
@brettchalupa brettchalupa marked this pull request as ready for review October 21, 2025 03:07
Copy link
Copy Markdown
Contributor

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet, thanks!

@marvinhagemeister marvinhagemeister merged commit 662f795 into freshframework:main Oct 21, 2025
4 of 7 checks passed
@brettchalupa brettchalupa deleted the root-alias branch October 21, 2025 12:17
cailloumajor added a commit to cailloumajor/factory-frontend that referenced this pull request Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set up @/ alias by default

2 participants