[Question]Specify sub directory created by postinstall script
Is it possible to specify a sub directory that is created after the postinstall script runs? For example my repo has a script build-lib and when run it outputs to the subdirectory dist-lib. I always seem to get a 500 error when I attempt. Here is the url I am adding to package.json
https://gitpkg.now.sh/<repo>/dist-lib?<tag>&scripts.postinstall=npm%20install%20--ignore-scripts%20%26%26%20npm%20run%20build-lib
If I remove the sub directory dist-lib from the above url I do not get the errors. Even when there is an empty sub directory named dist-lib I get 500 errors
The custom scripts will be inserted into package.json. Thus the build script will be run on the client side (where you run non install).
You can install the root folder then use the custom scripts to build and then move the built files.