Yarn: how to reset the author info when `yarn init`?

Created on 14 Dec 2017  路  2Comments  路  Source: yarnpkg/yarn

So, I want to change default author info when yarn init(it appears as an old old info of mine)
I`ve tried to change my github config and npm account config
none of them worked

triaged

Most helpful comment

Yarn uses his own config so you need to set author info directly thought yarn cli:
yarn config set init-author-name [username]
yarn config set init-author-email [email]

Commands mentioned above and others related to init are listed in docs:
https://yarnpkg.com/lang/en/docs/cli/init/#toc-setting-defaults-for-yarn-init

All 2 comments

Yarn uses his own config so you need to set author info directly thought yarn cli:
yarn config set init-author-name [username]
yarn config set init-author-email [email]

Commands mentioned above and others related to init are listed in docs:
https://yarnpkg.com/lang/en/docs/cli/init/#toc-setting-defaults-for-yarn-init

it works锛乼hank you very much锛丂Simek

Was this page helpful?
0 / 5 - 0 ratings