Commit Graph
1629 Commits
Author SHA1 Message Date
Brett Chalupa 662f795ae8 feat: add @/ path alias to generated projects (#3562)
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
2025-10-21 11:24:36 +02:00
Brett Chalupa 34aa46aa35 fix: disable static file caching in development (#3561)
When running Fresh 2 in development, the ETag caching was leading to
incorrect assets being served. I'd often get stale assets from days ago
or separate apps. This problem was especially bad with multiple apps
that run on the same port. For example, I may work on App A on the
default port 5173. Then boot up App B. I'd get assets from App A when I
wouldn't want them, leading to a frustrating dev experience.
2025-10-21 11:24:22 +02:00
Marvin Hagemeister 8b7caba444 chore: release 2.1.2 (#3542)
- @fresh/core@2.1.2
- @fresh/update@2.1.2
- @fresh/plugin-vite@1.0.5
2025-10-08 12:56:08 +02:00
Marvin Hagemeister efef51714b fix(vite): unable to load transpiled commonjs with node builtins (#3541) 2025-10-08 12:47:04 +02:00
Marvin Hagemeister 4b069ee0d0 fix(vite): empty commonjs files with only __esModule (#3540)
When modules only contain the `__esModule` flag, we still need to add
the `exports` and `module.exports` initializers.
2025-10-08 11:50:34 +02:00
Marvin Hagemeister 6c03a9bc26 fix(vite): support jsx namespaces (#3539)
Babel throws when encountering jsx namespaces by default. It needs a
setting to not throw.
2025-10-08 11:30:07 +02:00
Devon Wells a2c9350cc4 docs: typos in define helpers page (#3533)
## Summary

Minor typos in define docs page I noticed while onboarding to Fresh 2.
2025-10-07 12:48:29 +02:00
fry69 88de90704e test(init): fix address in use (#3532)
Reverting back to the old init script also re-introduced the "address in
use" problem.

This does not have any effect: `env: { PORT: "0" }`

Adding arguments to `deno task start` also have no effect.

The only solution I can come up with is to ignore the task and call
`deno serve` with proper arguments directly for the build tests.
2025-10-07 10:34:10 +02:00
Marvin Hagemeister 026889dbc2 chore: release @fresh/init@2.1.1 (#3531) 2025-10-06 17:58:32 +02:00
Marvin Hagemeister 41fba500de 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.
2025-10-06 17:48:25 +02:00
fry69 b3c91bd008 chore: fix use free port in builder globals test (#3529)
Fix "port in use" problem re-introduced in builder globals test.
2025-10-06 07:54:44 +00:00
Marvin Hagemeister 909c2b3280 chore: remove old tests (#3528)
Not needed anymore
2025-10-06 09:31:36 +02:00
Marvin Hagemeister cc9946d105 chore: remove old tests (#3527) 2025-10-06 09:29:28 +02:00
fry69 198816b042 feat(init): template based init script (#3524)
Supersedes earlier attempt ->
https://github.com/denoland/fresh/pull/3517

This is now ready for review.

The major upside and motivation for this template based approach is that
it is now possible to view what gets generated in the repository as
actual valid files including syntax highlighting and formatting.

Previously those files where just strings inside the old `init` script,
which is IMHO a nightmare for maintainability.

The approach for this template system is loosely based on Vite's
`create-vite`, which also includes (redundant) templates inside the
repository, see here ->
https://github.com/vitejs/vite/tree/main/packages/create-vite

Included in the tests are compatibility checks against the current
`@fresh/init@2.0.9`, those can get removed at a later point when the
templates start to diverge. They are only included for demonstration
purposes, that this new implementation generates 100% identical output.

This means that the first PR after this got included, which modifies the
templates so the output differs from the old `init` script, also needs
to include:
```shell
rm packages/init/tests/compatibility_test.ts
```

Since this is a rather large PR, it may be more approachable to view the
branch directly ->
https://github.com/fry69/fresh/tree/fry69/refactor-init-template-rename/packages/init

Generated PR message below:

---

Replaces inline string-based project generation with file-based
templates for improved maintainability and extensibility.

### Architecture

**Template structure:**
- `assets/template/` - Complete project templates (vite, vite-tailwind,
builder, builder-tailwind)
- `assets/variants/` - Additive overlays (docker, vscode,
vscode-tailwind)
- `assets/base/` - Common files synced across template variants

Templates use `__VARIABLE__` syntax for substitution (project name,
dependency versions). Files with `__` prefix are renamed to `.` prefix
during generation (e.g., `__gitignore` → .gitignore).

**Template selection logic:**
```
Base: vite|vite-tailwind|builder|builder-tailwind
Variants: +docker, +vscode, +vscode-tailwind
```

### Maintenance workflow

Edit shared files in `assets/base/vite/` or `assets/base/builder/`, then
run `deno task sync` to propagate changes to template variants.
Template-specific files (deno.json, vite.config.ts, styles.css) are
never overwritten.

### Version resolution

Matches existing behavior: only Fresh core version is fetched from JSR,
all other dependencies use fixed versions updated by release scripts.

### Testing

55 tests covering:
- Unit tests for core functionality
- Integration tests (project generation, builds, dev servers)
- CLI argument parsing
- Compatibility tests verifying output matches v2.0.9 (pre-refactor
baseline)
- Template sync workflow

### Breaking changes

None. CLI interface and programmatic API remain identical. Package
publishes to same `@fresh/init` scope at JSR.

### Documentation

- README.md - User-facing usage documentation
- DESIGN.md - Maintainer documentation (architecture, template
maintenance, development setup)
2025-10-06 09:12:07 +02:00
fry69 317f1cb95f chore: make sure free ports get used in tests (#3497)
This fixes issues I have with running tests on one of my servers, where
port 8000 on `localhost` is occupied.

Note: The current `init` test will continue to fail, but that will
hopefully get replaced by #3524 which does not have this problem.

Before:
```
[
  "error: Uncaught (in promise) AddrInUse: Address already in use (os error 98)",
  "    at listen (ext:deno_net/01_net.js:594:35)",
  "    at serveInner (ext:deno_http/00_serve.ts:675:16)",
  "    at Object.serve (ext:deno_http/00_serve.ts:591:10)",
  "    at ext:deno_http/00_serve.ts:819:10",
  "    at ext:runtime_main/js/99_main.js:708:13",
  "    at eventLoopTick (ext:core/01_core.js:179:7)"
]
[...]
Builder - write prod routePattern => ./packages/fresh/src/dev/builder_test.ts:284:6
Builder - file:// islands => ./packages/fresh/src/dev/builder_test.ts:319:6
Builder - serves static files in subdir in prod => ./packages/fresh/src/dev/builder_test.ts:474:6
init - can start built project => ./packages/init/src/init_test.ts:237:6

FAILED | 471 passed (14 steps) | 4 failed | 18 ignored
```

After:
```
ok | 475 passed (14 steps) | 0 failed | 18 ignored
```
2025-10-06 09:10:25 +02:00
Christian 88781463da showcase: add Retro Ranker project to showcase.json (#3490)
Hello there,

Thought I would add my hobby project to the showcase, since it was built
with Fresh 1.0 and now ported to 2.0 (beta). Here's the link: [Retro
Ranker](https://retroranker.site) and the
[github](https://github.com/Nergy101/retro-ranker)

- [x] Ran `deno task ok` and passed.

If I missed anything, let me know.
Cheers!
2025-10-06 08:15:40 +02:00
Marvin Hagemeister c93e19dfbd docs: add Deno upgrade section (#3526) 2025-10-06 08:08:30 +02:00
fry69 84576bd848 fix: prevent island names from shadowing JavaScript globals (#3522)
fix #3521 

Generated PR message below

---

## Problem

Island files named after JavaScript global objects (e.g., Map.tsx,
`Set.tsx`, `Array.tsx`, `Promise.tsx`) cause runtime errors. The
generated boot code uses object shorthand syntax that resolves to the
global constructor instead of the imported component:

```javascript
import Map from "/islands/Map.tsx";
boot({Map}, props);  // {Map} resolves to global Map constructor
```

This results in `TypeError: Map is not a constructor` when the runtime
attempts to instantiate islands.

## Solution

Generate safe prefixed variable names (`__FRSH_ISLAND_N`) for island
imports and use explicit object property syntax to preserve the original
island names:

```javascript
import __FRSH_ISLAND_0 from "/islands/Map.tsx";
boot({"Map":__FRSH_ISLAND_0}, props);
```

This approach:
- Eliminates variable shadowing in all contexts (no scope collisions)
- Preserves original island names in HTML markers, error messages, and
runtime registry
- Allows any valid filename without restrictions
- Follows existing Fresh conventions for generated identifiers

## Changes

- preact_hooks.ts: Updated client-side boot script generation
- dev_build_cache.ts: Updated server-side snapshot generation
- Added integration tests for both Builder and Vite build systems
- Added documentation comment explaining why globals aren't in
`JS_RESERVED`

## Testing

Both tests verify that islands named after globals build successfully
and use safe variable names in generated code. Tests confirm the bug is
detected when fixes are reverted.
2025-10-05 10:53:55 +02:00
David Sherret a45cfe1ced fix(docs): export FreshViteConfig type (#3516)
For https://jsr.io/@fresh/plugin-vite/doc/~/fresh
2025-10-03 19:59:34 +02:00
fry69 8e9dcc087f docs: troubleshoot deploy error message (#3511)
This adds one sentence to the "My deployment won't start" section
mentioning the common `ISOLATE_INTERNAL_FAILURE` error message, so it
can get found via search.

See also discussion in Discord ->
https://discord.com/channels/684898665143206084/1422792167797166121
2025-10-02 23:47:48 +02:00
fry69 1e94e1c9c5 docs: troubleshoot VS Code extension (#3510)
This adds a short blurb how to install the VS Code extension to the
troubleshooting guide.

Possible concerns:
- maybe redundant as there are already official VS Code Deno docs
- could be shortened to just refer to the main docs or completely
removed
2025-10-01 13:20:47 +02:00
fry69 89ae0935b6 docs: troubleshoot dependency installation (#3508)
This adds:
- a short blurb about missing dependencies to the troubleshooting guide
- a hint to this guide in the getting starting page
2025-09-30 11:32:37 +02:00
Marvin Hagemeister 63dd77a319 fix(vite): dev server not recovering on syntax error (#3507)
Fixes https://github.com/denoland/fresh/issues/3506
2025-09-29 19:03:02 +02:00
Jade bff711411d docs: update readme for fresh 2 (#3503)
The current version of the README is misleading, because:

1. The build instructions result in a Fresh v1.0 project.
2. Since Fresh v2.0, Fresh no longer does JIT rendering on the edge.
2025-09-27 17:58:34 +02:00
Bruno Bernardino fa6f4f4bef docs: fix wrong variable name in migration guide (#3496)
You have `export const handlers = ` when it needs to be `export const
handler = `.

I'm unsure if there's any build process I need to run for this.
2025-09-26 11:03:42 +02:00
fry69 1c1ea06138 ci: fix publish workflow (#3495)
Looks like the `publish.yml` workflow also needs a `deno install` step,
the current one fails with missing types, see here ->
https://github.com/denoland/fresh/actions/runs/18017720086/job/51266850091#step:4:6

I have no clue why the `deploy.yml` workflow failed with `vite: command
not found` (see here ->
https://github.com/denoland/fresh/actions/runs/18017526863/job/51266206092?pr=3493#step:4:6).
That should work IMHO.
2025-09-25 22:47:14 +02:00
fry69andMarvin Hagemeister f7a2422e93 fix: set nodeModulesDir to manual (#3493)
Hopefully a less invasive fix for #3378

---------

Co-authored-by: Marvin Hagemeister <hello@marvinh.dev>
2025-09-25 20:54:27 +02:00
fry69 f82bd7e63d docs: add deno.json update section to migration guide (#3471)
fix #3470 

This adds a short blurb about `deno.json` focusing on imports.

Background: Without `npm:vite` and `jsr:@fresh/plugin-vite` installed it
can lead to confusing errors like this one:
```shell
$ deno task dev
vite: command not found
```

Which might lead to users install Vite globally, which is not needed
(and will not fix this problem).
2025-09-20 13:17:11 +02:00
Marvin Hagemeister 5c05d6533f chore: release 2.1.1 (#3466)
- @fresh/core@2.1.1
- @fresh/update@2.1.1
- @fresh/plugin-vite@1.0.4
2025-09-19 20:27:35 +02:00
Marvin Hagemeister 9b83a1e1b3 fix(vite): cover more commonjs cases (#3465)
Fixes https://github.com/denoland/fresh/issues/3463
Fixes https://github.com/denoland/fresh/issues/3449
2025-09-19 18:36:51 +02:00
Marvin Hagemeister a6016fc045 showcase: remove paquet (#3462)
Fixes https://github.com/denoland/fresh/issues/3460
2025-09-19 10:15:10 +02:00
Marvin Hagemeister 69ad9bc3c1 fix(vite): improve cjs esm detection + builtins resolution (#3457) 2025-09-16 19:41:22 +02:00
Mau Scheff 18961995d5 docs: Revise migration guide with new help sections (#3455)
Revise migration guide with new help sections
2025-09-16 13:24:39 +02:00
fry69 e5a3a99e96 fix: update command message (#3452)
fix #3451
2025-09-16 12:24:17 +02:00
Marvin Hagemeister 9a2098ecba fix(vite): ensure plugins are only instantiated once (#3450)
This makes debugging a lot easier as by default vite instantiates
plugins multiple times for each environment.
2025-09-16 11:35:00 +02:00
Marvin Hagemeister b9d550fef8 docs: fix slugs shared across all pages (#3448)
The slugger was shared across all pages and it assumes each passed value
should be unqiue. Due to that it would append additional numbers to the
id value.
2025-09-16 09:50:23 +02:00
Marvin Hagemeister cc95155047 fix: returned handler headers only working with plain objects (#3447)
We only dealt with returned headers as objects instead of all potential
shapes of `Headersinit`.

Fixes https://github.com/denoland/fresh/issues/3445
2025-09-16 09:45:11 +02:00
15067345ed chore: resolve resource leak in www/main_test.ts (#3428)
The `buildVite` function returns a disposable object which was not being
properly disposed of, leading to a resource leak warning in the test
suite.

This change wraps the tests in `www/main_test.ts` in an async function
and uses `await using` to ensure that the temporary directory created by
`buildVite` is cleaned up after the tests complete.

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
Co-authored-by: Emil Krebs <68400102+emilkrebs@users.noreply.github.com>
Co-authored-by: Marvin Hagemeister <hello@marvinh.dev>
2025-09-15 22:31:07 +02:00
Marvin Hagemeister de9b8a7c40 chore: release 2.1.0 (#3443)
- @fresh/core@2.1.0
- @fresh/plugin-vite@1.0.3
- @fresh/update@2.1.0
- @fresh/init@2.0.9
2025-09-15 19:29:04 +02:00
Marvin Hagemeister 78b886d397 chore: fix non-prerelease version in release script (#3442) 2025-09-15 19:19:44 +02:00
Marvin Hagemeister 3867e60664 fix: improve missing build cache error message (#3441)
Hoping that this helps folks who ignore the migration guide and keep the
entry pointed to `main.ts`.
2025-09-15 19:19:10 +02:00
fry69 999b89501e docs: fix testing docs (#3419)
This fixes the testing page in the docs for real this time.

Every test is hand checked now. Thanks to a certain button, which
appeared recently.

Optionally I can also split this page up in separate pages:
- Middlewars
- AppWrappers and Layouts
- Routing and Handlers
- SSR and Islands
2025-09-15 16:53:48 +00:00
Marvin Hagemeister 399cbc3aa2 fix(vite): nested islands not working (#3440)
This PR makes nested islands work. Problem was that only entry files
have the `src` property in the vite manifest. For that we need to ensure
that every island is an entry point.

Fixes https://github.com/denoland/fresh/issues/3439
2025-09-15 17:55:44 +02:00
Marvin Hagemeister 3fb3cd9443 fix(vite): route css import (#3438)
Fixes https://github.com/denoland/fresh/issues/3426
2025-09-15 13:20:07 +02:00
fry69 016f94e28e docs: fix minor issues in middleware docs (#3436) 2025-09-15 12:20:48 +02:00
Emil KrebsandMarvin Hagemeister b4bb004753 feat: add CSP and header middleware (#3421)
Added a CSP and header middleware to simplify the HTTP Security Response
Header creation.

Fixes:
- https://github.com/denoland/fresh/issues/1705

Example:

```ts
// main.ts

export const app = new App<State>()
    .use(csp({
        reportTo: '/api/csp-reports',
    }))
    .use(headers({
        'Cross-Origin-Resource-Policy': 'same-site',
        'Cross-Origin-Embedder-Policy': 'require-corp',
        'Cross-Origin-Opener-Policy': 'same-origin',
        'Permissions-Policy':
            'geolocation=(), camera=(), microphone=(), payment=(), usb=(), bluetooth=(), magnetometer=(), gyroscope=(), accelerometer=()',
        'Referrer-Policy': 'strict-origin-when-cross-origin',
        'X-Content-Type-Options': 'nosniff',
        'X-Frame-Options': 'DENY',
        'Strict-Transport-Security': 'max-age=63072000; includeSubDomains; preload',
    }))
```

Endpoint example:
```ts
// routes/api/csp-handler.ts

import { Context } from 'fresh';
import { State } from '../../main.ts';

export const handler = {
    async POST(ctx: Context<State>) {
        try {
            const text = await ctx.req.text();
            const body = JSON.parse(text);

            const logEntry = {
                timestamp: new Date().toISOString(),
                report: body,
                userAgent: ctx.req.headers.get('user-agent') || 'unknown',
            };
            await Deno.writeFile('csp-reports.log', new TextEncoder().encode(JSON.stringify(logEntry) + '\n'), { append: true });

            return new Response(JSON.stringify({ status: "ok" }), { status: 200 });
        } catch (error) {
            console.error("Error handling CSP report:", error);
            return new Response(JSON.stringify({ status: "error", error: String(error) }), { status: 500 });
        }
    },
};

```

Implementing these headers improved the security report at [Security
Headers](securityheaders.com) from F to A and helps to prevent security
vulnerabilities like Cross-Site Scripting and Clickjacking.

**Before**
<img width="1200" height="308" alt="image"
src="https://github.com/user-attachments/assets/01adfff4-5bb4-4cc6-bd8f-5e74b471301b"
/>
**After**
<img width="1200" height="335" alt="image"
src="https://github.com/user-attachments/assets/c5a9b07e-babf-4797-b47d-4368de70cbc3"
/>

---------

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2025-09-15 12:20:22 +02:00
Marvin Hagemeister f9ba5417c4 fix: bring back support for middleware Array (#3434)
Our validation didn't account for `_middleware` files exporting an Array
of middlewares.

Fixes https://github.com/denoland/fresh/issues/3400
2025-09-15 10:44:21 +02:00
Marvin Hagemeister b31f36265c fix(vite): keep require calls in ESM file (#3433)
Detect if a file is ESM based on file extension or finding ESM-only
statements. When we know that it's an ESM file we should keep
`require()` calls as is, because some libraries use it as a conditional
check like `npm:motion`.

Fixes https://github.com/denoland/fresh/issues/3429
2025-09-15 10:40:09 +02:00
fry69andgoogle-labs-jules[bot] a12e20d992 fix(init): correct temporary directory creation in tests (#3425)
The tests for the `init` package were failing with a `PermissionDenied`
error in Jules container environment when creating temporary
directories. This was because the tests were attempting to create the
temporary directories in the root of the project, where permissions are
often restricted.

This change corrects the issue by removing the local `withTmpDir` helper
function in `packages/init/src/init_test.ts` and instead using the one
from `../../fresh/src/test_utils.ts`. The shared helper function
correctly creates temporary directories in the operating system's
default temporary directory, which resolves the permission issue.

Sample error message from Jules before this fix:

```
 ERRORS 

init - new project => ./packages/init/src/init_test.ts:99:6
error: PermissionDenied: Permission denied (os error 13): tmpdir
  const dir = await Deno.makeTempDir(options);
                         ^
    at Object.makeTempDir (ext:deno_fs/30_fs.js:168:10)
    at withTmpDir (file:///app/packages/fresh/src/test_utils.ts:136:26)
    at withTmpDir (file:///app/packages/init/src/init_test.ts:41:10)
    at file:///app/packages/init/src/init_test.ts:100:27

init - create project dir => ./packages/init/src/init_test.ts:107:6
error: PermissionDenied: Permission denied (os error 13): tmpdir
  const dir = await Deno.makeTempDir(options);
              ^
    at async withTmpDir (file:///app/packages/fresh/src/test_utils.ts:136:15)
    at async file:///app/packages/init/src/init_test.ts:108:21

init - with tailwind => ./packages/init/src/init_test.ts:122:6
error: PermissionDenied: Permission denied (os error 13): tmpdir
  const dir = await Deno.makeTempDir(options);
                         ^
    at Object.makeTempDir (ext:deno_fs/30_fs.js:168:10)
    at withTmpDir (file:///app/packages/fresh/src/test_utils.ts:136:26)
    at withTmpDir (file:///app/packages/init/src/init_test.ts:41:10)
    at file:///app/packages/init/src/init_test.ts:123:27

init - with vscode => ./packages/init/src/init_test.ts:140:6
error: PermissionDenied: Permission denied (os error 13): tmpdir
  const dir = await Deno.makeTempDir(options);
              ^
    at async withTmpDir (file:///app/packages/fresh/src/test_utils.ts:136:15)
    at async file:///app/packages/init/src/init_test.ts:141:21

init - fmt, lint, and type check project => ./packages/init/src/init_test.ts:153:6
error: PermissionDenied: Permission denied (os error 13): tmpdir
  const dir = await Deno.makeTempDir(options);
              ^
    at async withTmpDir (file:///app/packages/fresh/src/test_utils.ts:136:15)
    at async fn (file:///app/packages/init/src/init_test.ts:159:23)

init with tailwind - fmt, lint, and type check project => ./packages/init/src/init_test.ts:179:6
error: PermissionDenied: Permission denied (os error 13): tmpdir
  const dir = await Deno.makeTempDir(options);
              ^
    at async withTmpDir (file:///app/packages/fresh/src/test_utils.ts:136:15)
    at async file:///app/packages/init/src/init_test.ts:182:23

init - can start dev server => ./packages/init/src/init_test.ts:205:6
error: PermissionDenied: Permission denied (os error 13): tmpdir
  const dir = await Deno.makeTempDir(options);
              ^
    at async withTmpDir (file:///app/packages/fresh/src/test_utils.ts:136:15)
    at async fn (file:///app/packages/init/src/init_test.ts:211:23)

init - can start built project => ./packages/init/src/init_test.ts:233:6
error: PermissionDenied: Permission denied (os error 13): tmpdir
  const dir = await Deno.makeTempDir(options);
              ^
    at async withTmpDir (file:///app/packages/fresh/src/test_utils.ts:136:15)
    at async file:///app/packages/init/src/init_test.ts:234:21

init - errors on missing build cache in prod => ./packages/init/src/init_test.ts:265:6
error: PermissionDenied: Permission denied (os error 13): tmpdir
  const dir = await Deno.makeTempDir(options);
                         ^
    at Object.makeTempDir (ext:deno_fs/30_fs.js:168:10)
    at withTmpDir (file:///app/packages/fresh/src/test_utils.ts:136:26)
    at withTmpDir (file:///app/packages/init/src/init_test.ts:41:10)
    at file:///app/packages/init/src/init_test.ts:266:27

init - with vite => ./packages/init/src/init_test.ts:348:6
error: PermissionDenied: Permission denied (os error 13): tmpdir
  const dir = await Deno.makeTempDir(options);
                         ^
    at Object.makeTempDir (ext:deno_fs/30_fs.js:168:10)
    at withTmpDir (file:///app/packages/fresh/src/test_utils.ts:136:26)
    at withTmpDir (file:///app/packages/init/src/init_test.ts:41:10)
    at file:///app/packages/init/src/init_test.ts:349:27

 FAILURES 

init - new project => ./packages/init/src/init_test.ts:99:6
init - create project dir => ./packages/init/src/init_test.ts:107:6
init - with tailwind => ./packages/init/src/init_test.ts:122:6
init - with vscode => ./packages/init/src/init_test.ts:140:6
init - fmt, lint, and type check project => ./packages/init/src/init_test.ts:153:6
init with tailwind - fmt, lint, and type check project => ./packages/init/src/init_test.ts:179:6
init - can start dev server => ./packages/init/src/init_test.ts:205:6
init - can start built project => ./packages/init/src/init_test.ts:233:6
init - errors on missing build cache in prod => ./packages/init/src/init_test.ts:265:6
init - with vite => ./packages/init/src/init_test.ts:348:6

FAILED | 449 passed (14 steps) | 10 failed | 17 ignored (2m38s)
```

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-09-14 11:44:47 +02:00
Marvin Hagemeister 4cc0722465 chore: release 2.0.2 (#3418)
- @fresh/core@2.0.2
- @fresh/plugin-vite@1.0.2
- @fresh/update@2.0.2
- @fresh/init@2.0.8
2025-09-12 19:16:12 +02:00