question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add postinstall removing of example

See original GitHub issue

Using the newest version from master with automatically generated example I faced a problem when I ran react-native start with duplication of dependencies. example folder is being copied while installing example (because of file:../ dependency). The solution is imo to add some postinstall script (like here I have done) 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
osdnkcommented, Aug 8, 2018

Oh, and maybe remember to remove “example” and “node_modules” from example/node_modules/yourlibname

0reactions
maickicommented, Aug 24, 2018

Hey all - this PR should fix this issue: #75 and does some more improvements around our example creation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm: disable postinstall script for package - node.js
It's not possible to disable only postinstall script. However, you can disable all scripts using: $ npm install --ignore-scripts.
Read more >
Run postinstall after package upgrades #2878 - yarnpkg/yarn
It worked for me for yarn install or add ran inside the package, but running upgrade or remove to modify some deps would...
Read more >
postinstall
Deploy files from modules after npm install. Latest version: 0.8.0, ... Start using postinstall in your project by running `npm i postinstall`.
Read more >
PostInstall script not running on MacOS
I have created a package installer for MacOS with "productbuild" command line and adding the postinstall script in the package through command.
Read more >
Example of a Post Install Script | ISVforce Guide
The following sample post install script performs these actions on package install/upgrade. If the previous version is null, that is, the package is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found