-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adds a package stub to the _hygencook dir to better handle ts files
Hygen can parse a .ts prompt file in a template using ts-node/register, which is cool, but if you're running templates in a directory where your package json has type: module that causes ts-node/register to transpile to imports/exports instead of the commonjs format hygen needs. This change drops a package.json stub into the _hygencook dir containing only type: "commonjs", which is enough to convince ts-node/register to transpile any .ts files to the correct syntax for hygen to be able to load.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters