Skip to content

[Bug]: Running rsbuild build twice with Deno moves /public folder into /public subdirectory in dist #5804

@noverby

Description

@noverby

Version

deno 2.4.2 (stable, release, x86_64-unknown-linux-gnu)
v8 13.7.152.14-rusty
typescript 5.8.3

	"dependencies": {
		"react": "^19.1.0",
		"react-dom": "^19.1.0",
		"react-force-graph-3d": "^1.28.0",
		"react-router-dom": "^7.7.1",
		"three": "^0.178.0"
	},
	"devDependencies": {
		"@rsbuild/core": "^1.4.3",
		"@rsbuild/plugin-react": "^1.3.3",
		"@types/react": "^19.1.8",
		"@types/react-dom": "^19.1.6",
		"typescript": "^5.8.3"
	}

Details

Running rsbuild build once correctly installs /public into the root of /dist, but if you run rsbuild build twice, then it install /public as /dist/public

Reproduce link

https://codeberg.org/noverby/noverby/src/branch/main/projects/homepage

Reproduce Steps

deno install
deno run -A npm:@rsbuild/core build
deno run -A npm:@rsbuild/core build
deno run -A npm:@rsbuild/core preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions