DamianEdwards / grunt-tsng

A TypeScript pre-processor for AngularJS
Apache License 2.0
29 stars 3 forks source link

tsng not working with dependencies with '-' in name #12

Open morgothulhu opened 9 years ago

morgothulhu commented 9 years ago

Unable to use angular-leaflet-directive as the leaflet-directive dependency (note the '-') is causing all dependencies to be dropped in the autogen-ed .ng.ts file.

Once the regex in parseModuleFiles::regex.dependencies is fixed to:

                dependencies: /var\s+dependencies\s*=\s*\[([\w\s.,"'\-]*)\]/,

everything seems back in order.