diff options
Diffstat (limited to 'scripts/lib/recipetool/create_npm.py')
-rw-r--r-- | scripts/lib/recipetool/create_npm.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py index e794614978..7bb844cb0c 100644 --- a/scripts/lib/recipetool/create_npm.py +++ b/scripts/lib/recipetool/create_npm.py | |||
@@ -21,7 +21,7 @@ import subprocess | |||
21 | import tempfile | 21 | import tempfile |
22 | import shutil | 22 | import shutil |
23 | import json | 23 | import json |
24 | from recipetool.create import RecipeHandler, split_pkg_licenses, handle_license_vars | 24 | from recipetool.create import RecipeHandler, split_pkg_licenses, handle_license_vars, check_npm |
25 | 25 | ||
26 | logger = logging.getLogger('recipetool') | 26 | logger = logging.getLogger('recipetool') |
27 | 27 | ||
@@ -157,6 +157,8 @@ class NpmRecipeHandler(RecipeHandler): | |||
157 | 157 | ||
158 | files = RecipeHandler.checkfiles(srctree, ['package.json']) | 158 | files = RecipeHandler.checkfiles(srctree, ['package.json']) |
159 | if files: | 159 | if files: |
160 | check_npm(tinfoil.config_data) | ||
161 | |||
160 | data = read_package_json(files[0]) | 162 | data = read_package_json(files[0]) |
161 | if 'name' in data and 'version' in data: | 163 | if 'name' in data and 'version' in data: |
162 | extravalues['PN'] = data['name'] | 164 | extravalues['PN'] = data['name'] |