summaryrefslogtreecommitdiffstats
path: root/meta/classes/npm.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/npm.bbclass')
-rw-r--r--meta/classes/npm.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index ba50fcac20..86ee0f665a 100644
--- a/meta/classes/npm.bbclass
+++ b/meta/classes/npm.bbclass
@@ -81,6 +81,7 @@ python npm_do_configure() {
81 import json 81 import json
82 import re 82 import re
83 import shlex 83 import shlex
84 import stat
84 import tempfile 85 import tempfile
85 from bb.fetch2.npm import NpmEnvironment 86 from bb.fetch2.npm import NpmEnvironment
86 from bb.fetch2.npm import npm_unpack 87 from bb.fetch2.npm import npm_unpack
@@ -202,6 +203,7 @@ python npm_do_configure() {
202 if has_shrinkwrap_file: 203 if has_shrinkwrap_file:
203 _update_manifest("devDependencies") 204 _update_manifest("devDependencies")
204 205
206 os.chmod(cached_manifest_file, os.stat(cached_manifest_file).st_mode | stat.S_IWUSR)
205 with open(cached_manifest_file, "w") as f: 207 with open(cached_manifest_file, "w") as f:
206 json.dump(cached_manifest, f, indent=2) 208 json.dump(cached_manifest, f, indent=2)
207 209