i set the default config for the package.json file using the command,
npm config set init-main "script.js"
after this i initialized a folder using
npm init --yes
but the main is still "index.js". But, if i write
npm config get init-main
it returns "script.js". I could not find anything related in the documentation. Please help. Thanks in advance.