stephenh / ts-poet

A code generator DSL for typescript
Apache License 2.0
100 stars 12 forks source link

Remove regex pattern restrictions from the module specifier. #59

Closed jollytoad closed 5 months ago

jollytoad commented 5 months ago

I've completely removed fileNamePattern and replaced modulePattern with .+ to allow use of any characters in the module specifier.

I've added a bunch of tests for common cases with unusual characters, along with URL, node: & jsr: style imports.

The ECMAScript spec imposes no restrictions on the module specifier string... https://tc39.es/ecma262/#prod-ModuleSpecifier.

Closes #58

stephenh commented 5 months ago

This is great @jollytoad ! Thank you for the tests!

stephenh commented 5 months ago

Published as v6.8.2