Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add safeguard postinstall script prompt
- Loading branch information
1 parent
0109a87
commit 2b6e58a
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,13 @@ | |||
#!/bin/sh | |||
|
|||
echo "In order to run the server, the source files in src/ must be transpiled to lib/. This will overwrite any changes you have made to the files in lib/." | |||
echo -n "Do you want to build now? [y/N]? " | |||
read answer | |||
echo | |||
|
|||
if test "$answer" = "y" || test "$answer" = "Y"; then | |||
echo "Running $npm_package_scripts_build_server" | |||
$npm_package_scripts_build_server | |||
else | |||
echo "Skipping build step. You can build at a later time by running \`npm run build-server\`." | |||
fi |