stephenh / ts-poet

A code generator DSL for typescript
Apache License 2.0
103 stars 13 forks source link

Fix extention regex which failed for files like `Author.type.ts` #57

Closed brudil closed 7 months ago

brudil commented 7 months ago

Will look in to this. Looks like Author.types.ts is incorrectly translated due to the .t

 - Snapshot  - 2
    + Received  + 2

    - "import { Author } from "./Author.types.js";
    + "import { Author } from "./Author.jsypes.jsx";
    - import { Book } from "./Book.types.jsx";
    + import { Book } from "./Book.jsypes.jsx";

Looks like the extention regexes were accidentally using ? (matching first .t or .ts) instead of $ (.ts at the end)

brudil commented 7 months ago

@stephenh Apologies for making you need to do another manual publish :D

stephenh commented 7 months ago

Gah! Thank you!

stephenh commented 7 months ago

Published as 6.8.1