You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior: npm install fails with ts-patch not found error
Description
I am making a cli application and published to npm. However, I cannot install the package in global or in a project without ts-patch and typescript pre-installed because typia had added postinstall script inpackage.json requiring ts-patch.
npm install fails with
npm ERR! code 127
npm ERR! path /Users/me/.nvm/versions/node/v18.13.0/lib/node_modules/gitove
npm ERR! command failed
npm ERR! command sh -c -- ts-patch install
npm ERR! sh: ts-patch: command not found
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/me/.npm/_logs/2023-08-18T19_11_01_832Z-debug-0.log
The latest version has removed postinstall script added by typia setup. However, if you want the actual source code for the error I can make you a branch.
Question
I don't understand npm scripts lifecycle well yet, but do you need "postinstall": "ts-patch install" even after the initial setup? If not, I think it is better to remove it from the scripts, as this may cause wrong dependency issue. Because of this script trying to setup ts-patch for npm install command, the package has dependency on ts-patch and typescript even when they are listed in devDependencies.
Thank you, and I really love your work!
The text was updated successfully, but these errors were encountered:
📝 Summary
Description
I am making a cli application and published to npm. However, I cannot install the package in global or in a project without
ts-patch
andtypescript
pre-installed because typia had addedpostinstall
script inpackage.json
requiringts-patch
.npm install fails with
error log indicating postinstall is the cause
Reproduction
You can try the error by installing
[email protected]
The latest version has removed
postinstall
script added by typia setup. However, if you want the actual source code for the error I can make you a branch.Question
I don't understand npm scripts lifecycle well yet, but do you need
"postinstall": "ts-patch install"
even after the initial setup? If not, I think it is better to remove it from the scripts, as this may cause wrong dependency issue. Because of this script trying to setupts-patch
fornpm install
command, the package has dependency onts-patch
andtypescript
even when they are listed in devDependencies.Thank you, and I really love your work!
The text was updated successfully, but these errors were encountered: