Skip to content

Fix TypeScript data files not being processed#4247

Open
cypressSap wants to merge 2 commits into11ty:mainfrom
cypressSap:fix-typescript-data
Open

Fix TypeScript data files not being processed#4247
cypressSap wants to merge 2 commits into11ty:mainfrom
cypressSap:fix-typescript-data

Conversation

@cypressSap
Copy link
Copy Markdown

@cypressSap cypressSap commented Mar 28, 2026

As noted in #4194 (comment), TypeScript data files don't yet work in v4.0.0-alpha.7. This is a bit quick and dirty but seems to get them going, both global *.ts (etc.) and directory *.11tydata.ts (etc.) files :)

@cypressSap cypressSap requested a review from zachleat as a code owner March 28, 2026 07:36
Copy link
Copy Markdown
Contributor

@Ryuno-Ki Ryuno-Ki left a comment

Choose a reason for hiding this comment

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

I don't see new files being added. But then I'm not deep enough into the codebase to tell whether that's expected.

@cypressSap
Copy link
Copy Markdown
Author

I don't see new files being added. But then I'm not deep enough into the codebase to tell whether that's expected.

Sorry, I'm not sure what new files this is referring to?

t.deepEqual(paths, [
"./test/stubs/stubs.json",
"./test/stubs/stubs.11tydata.json",
"./test/stubs/stubs.11tydata.mts",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This sounds like a new file ought to be added.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Oh, gotcha. Most of the files already listed don't exist either, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants