summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create_npm.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/recipetool/create_npm.py')
-rw-r--r--scripts/lib/recipetool/create_npm.py4
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
21import tempfile 21import tempfile
22import shutil 22import shutil
23import json 23import json
24from recipetool.create import RecipeHandler, split_pkg_licenses, handle_license_vars 24from recipetool.create import RecipeHandler, split_pkg_licenses, handle_license_vars, check_npm
25 25
26logger = logging.getLogger('recipetool') 26logger = 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']