Skip to content

Conversation

@aloisklink
Copy link
Contributor

Adds an npm prepare script to package.json

npm prepare runs automatically when doing npm install from a git dependency.

This will allow users to use dayjs with npm directly from the git repo, e.g. with:

npm install https://github.com/iamkun/dayjs.git

(feel free to test it by installing this branch, with npm install https://github.com/aloisklink/dayjs.git#add-npm-prepare-script)

It should be helpful for testing dayjs, as well as if people want to use bugfixes before dayjs pushes releases to NPM.

See https://docs.npmjs.com/cli/v7/using-npm/scripts for more details about npm prepare.

Adds an "npm prepare" script to package.json

npm prepare runs automatically when doing `npm install`
from a git dependency.

This will allow users to use dayjs with npm directly from the git repo,
e.g. with:

`npm install https://github.com/iamkun/dayjs.git`

See https://docs.npmjs.com/cli/v7/using-npm/scripts for more details
about npm prepare.
@iamkun
Copy link
Owner

iamkun commented May 26, 2021

I'm not sure if there will be some side effects or not. I'll check the docs later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants