You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is my use case. I am requiring typescript into a javascript extension.
constts=require('typescript');
so that I can use things like ts.isArrowFunction(node.initializer).
and have added typescript as a dependency. When I try to publish many "secrets" are flagged like
ERROR Potential security issue detected: Your extension package contains sensitive information that should not be published. Please remove these secrets before packaging.
found npm access token: npm_i_save_dev_types_Slash... [npm]
node_modules\typescript\lib\_tsc.js#6552:84-6552:124
found npm access token: npm_i_save_dev_types_Slash... [npm]
node_modules\typescript\lib\zh-cn\diagnosticMessages.generated.json#1709:8-1709:48
That first link points to this in the node_modules\typescript\lib\_tsc.js file:
npm_i_save_dev_types_Slashjest_or_npm_i_
The second error link points to
npm_i_save_dev_types_Slash_1_if_it_exists
They all seem to be diagnostic message related. I assume these are all false positives?
Activity
ArturoDent commentedon Jun 4, 2025
Thank you, works great.