Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Add npm prepare script #1450

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

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