js-pull-to-refresh | js实现上拉加载,下拉刷新功能,兼容jQuery和zepto
kandi X-RAY | js-pull-to-refresh Summary
kandi X-RAY | js-pull-to-refresh Summary
js实现上拉加载,下拉刷新功能,兼容jQuery和zepto
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of js-pull-to-refresh
js-pull-to-refresh Key Features
js-pull-to-refresh Examples and Code Snippets
Community Discussions
Trending Discussions on js-pull-to-refresh
QUESTION
Working on a pull request for this module: https://github.com/echoulen/react-pull-to-refresh ...
I believe the published module builds /dist
in the package.json prepublish
npm script. I am using the module locally with my github branch installed via yarn add https://github.com/jbeuckm/react-pull-to-refresh
.
The problem is when I try to build my (consuming) project in a bitbucket pipeline. The pipeline fails when the react-js-pull-to-refresh
module can not be resolved. I suspect this is because the /dist
folder is built in prepublish
and my version is not published.
How can I tell npm to build /dist
in my unpublished repo module when building the consuming project?
ANSWER
Answered 2020-May-05 at 07:03You can change the prepublish
script in your package.json
to prepare
instead. The prepare
script should run on the consuming project when installing the dependency.
According to the docs (https://docs.npmjs.com/cli/install under the bullet-point npm install
):
If the package being installed contains a
prepare
script, its dependencies and devDependencies will be installed, and the prepare script will be run, before the package is packaged and installed.
Check out https://docs.npmjs.com/misc/scripts#prepublish-and-prepare
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install js-pull-to-refresh
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page