Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: Types generation fails for extensionless files in rules #6730

Closed
GregBrimble opened this issue Sep 17, 2024 · 0 comments · Fixed by #6792
Closed

🐛 BUG: Types generation fails for extensionless files in rules #6730

GregBrimble opened this issue Sep 17, 2024 · 0 comments · Fixed by #6792
Labels
bug Something that isn't working

Comments

@GregBrimble
Copy link
Member

Which Cloudflare product(s) does this pertain to?

Wrangler

What version(s) of the tool(s) are you using?

[email protected]

What version of Node are you using?

20.9.0

What operating system and version are you using?

macOS 14.6.1

Describe the Bug

Observed behavior

rules = [
  { type = "Text", globs = ["**/foo"], fallthrough = true }
]
npx wrangler types --experimental-include-runtime

produces:

declare module "*.**/foo" {
	const value: string;
	export default value;
}

Expected behavior

declare module "*/foo" {
	const value: string;
	export default value;
}

Steps to reproduce

See above

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

@GregBrimble GregBrimble added the bug Something that isn't working label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant