chiubaka / generator-chiubaka-typescript-package

Yeoman generator for standard Chiubaka Technologies TypeScript packages for libraries and other such things.
1 stars 0 forks source link

All private helper methods are getting run by Yeoman systematically #97

Closed chiubaka closed 2 years ago

chiubaka commented 2 years ago

Specifically documented under "Helper and private methods" on the running context page of the docs.

I'm seeing this behavior as I write the GitHubGenerator and realizing that it is randomly calling methods with private access.

Solution is likely to rename everything that should not get invoked by itself to start with a _.

chiubaka commented 2 years ago

Wondering if this may also be causing things to take so much longer to run?? Hard to say.

chiubaka commented 2 years ago

Or, probably better because I'm anal about these things: change all of the helper methods to be private properties with an arrow function assigned to them. Yeoman doesn't pick these up.