Skip to content

Added web-ext --ignore-files option to args to ignore npm or yarn related files in firefox.js#6

Open
gkrishnaks wants to merge 7 commits intoLinusU:masterfrom
gkrishnaks:master
Open

Added web-ext --ignore-files option to args to ignore npm or yarn related files in firefox.js#6
gkrishnaks wants to merge 7 commits intoLinusU:masterfrom
gkrishnaks:master

Conversation

@gkrishnaks
Copy link

Added web-ext --ignore-files option to args to ignore npm or yarn related files in firefox.js

lib/firefox.js Outdated
'sign',
'--source-dir', source,
'--api-key', process.env.WEXT_SHIPIT_FIREFOX_JWT_ISSUER,
'--ignore-files', '.api-key package.json package-lock.json yarn.lock .npmrc .yarnc',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that .api-key is a standardized file name 🤔 what's the rationale for including it here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
It's an example from Mozilla MDN reference documentation https://developer.mozilla.org/en-US/Add-ons/WebExtensions/web-ext_command_reference#Global_options

(Looks like some people do store their keys in a file of format "filename.api-key" )

However, I tried my changes from my gitlab and it didn't consider ignore-files option.. I raised an issue regarding that - it didn't seem to work when you call it within nodejs script. mozilla/web-ext#1333

In an earlier issue there mozilla/web-ext#843 , they did add ignore-files support for 'sign' - but that doesn't seem to pick for when you call it programmatically.. I guess "web-ext sign" from a CLI might work with ignore-files after that fix which they closed.

@gkrishnaks
Copy link
Author

Hi @LinusU, updated the PR by correcting exclude pattern based on the comment in mozilla/web-ext#1333 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants