File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11"""npm-related utilities."""
2+
23# Copyright (c) Jupyter Development Team.
34# Distributed under the terms of the Modified BSD License.
45import json
@@ -153,6 +154,8 @@ def handle_npm_config(npm_token):
153154 short_reg = registry .replace ("https://" , "//" )
154155 short_reg = short_reg .replace ("http://" , "//" )
155156 auth_entry = f"{ short_reg } :_authToken={ npm_token } "
157+ else :
158+ util .log ("No NPM_TOKEN provided, will attempt to use npm Trusted Publishers if configured" )
156159
157160 # Handle existing config
158161 if npmrc .exists ():
@@ -182,13 +185,13 @@ def get_package_versions(version):
182185 npm_version = data .get ("version" , "" )
183186 if npm_version != version :
184187 message += f"\n Python version: { version } "
185- message += f' \n npm version: { data [" name" ]} : { npm_version } '
188+ message += f" \n npm version: { data [' name' ]} : { npm_version } "
186189 if "workspaces" in data :
187190 message += "\n npm workspace versions:"
188191 for path in _get_workspace_packages (data ):
189192 text = path .joinpath ("package.json" ).read_text (encoding = "utf-8" )
190193 data = json .loads (text )
191- message += f' \n { data [" name" ]} : { data .get (" version" , "" ) } '
194+ message += f" \n { data [' name' ]} : { data .get (' version' , '' ) } "
192195 return message
193196
194197
You can’t perform that action at this time.
0 commit comments