Skip to content

Commit

Permalink
fix: alter npm_private_config method to adjust for list
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsobanjaved committed May 3, 2024
1 parent 4c901de commit 93a867d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tubular/scripts/frontend_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ def get_npm_aliases_config(self):

def get_npm_private_config(self):
""" Combines the common and environment configs NPM_PRIVATE packages """
npm_private_config = self.common_cfg.get('NPM_PRIVATE', {})
npm_private_config.update(self.env_cfg.get('NPM_PRIVATE', {}))
npm_private_config = self.common_cfg.get('NPM_PRIVATE', [])
npm_private_config.extend(self.env_cfg.get('NPM_PRIVATE', []))
if not npm_private_config:
self.LOG('No npm private packages defined in config.')
return npm_private_config
return list(set(npm_private_config))

def build_app(self, env_vars, fail_msg):
""" Builds the app with environment variable."""
Expand Down

0 comments on commit 93a867d

Please sign in to comment.