node_modules: Move success stamp to root of cache dir.

This location makes more sense, since it's the entire directory we're
certifying, not just the `node_modules` subdirectory.
This commit is contained in:
Tim Abbott
2017-07-21 16:15:15 -07:00
parent 4c37f93238
commit 8523c24a17
2 changed files with 2 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ def setup_node_modules(npm_args=None, stdout=None, stderr=None, copy_modules=Fal
sha1sum = generate_sha1sum_node_modules(npm_args)
npm_cache = os.path.join(NODE_MODULES_CACHE_PATH, sha1sum)
cached_node_modules = os.path.join(npm_cache, 'node_modules')
success_stamp = os.path.join(cached_node_modules, '.success-stamp')
success_stamp = os.path.join(npm_cache, '.success-stamp')
# Check if a cached version already exists
if not os.path.exists(success_stamp):
do_npm_install(npm_cache,