mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user