dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

build: Add npm prepare script

Open aloisklink opened this issue 4 years ago • 1 comments

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.

aloisklink avatar Apr 09 '21 16:04 aloisklink

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

iamkun avatar May 26 '21 07:05 iamkun