diff options
Diffstat (limited to 'scripts/api/require-depts.js')
-rw-r--r-- | scripts/api/require-depts.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/scripts/api/require-depts.js b/scripts/api/require-depts.js deleted file mode 100644 index c9c8814..0000000 --- a/scripts/api/require-depts.js +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | /** | ||
2 | * Require the dependencies to be installed or fail otherwise | ||
3 | */ | ||
4 | module.exports = () => { | ||
5 | try { | ||
6 | // Try to include some package to see if it throws an error | ||
7 | require('targz'); | ||
8 | require('fs-extra'); | ||
9 | require('git-url-parse'); | ||
10 | require('image-size'); | ||
11 | require('semver'); | ||
12 | } catch (e) { | ||
13 | console.log(`⚠️ Could not add your recipe: Please make sure to install the dependencies first! | ||
14 | It looks like you havn't run "npm install" yet. Please run that command in order to install all the dependencies required to run the scripts. | ||
15 | If you get an error similar to "command not found: npm" while installing the dependencies, make sure to install npm first using the guide at https://www.npmjs.com/get-npm. | ||
16 | If you've already installed the dependencies before, please re-run "npm install" again as the dependencies might have changed. | ||
17 | For more information about installing this script visit https://github.com/getferdi/recipes/blob/master/docs/integration.md#publishing`); | ||
18 | process.exit(0); | ||
19 | } | ||
20 | } \ No newline at end of file | ||