Skip to content

feat: Ignore popup/index.ts instead of erroring #1520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

nishu-murmu
Copy link
Contributor

Overview

#1333

Manual Testing

I still wasn't able to work the second test work. Could use some help.

Related Issue

This PR closes #1333

Copy link

netlify bot commented Mar 17, 2025

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit bdccdef
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/67f6921b93b50800089d3aa4
😎 Deploy Preview https://deploy-preview-1520--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines 671 to 676
it('should ignore other index files when index.html exists', async () => {
globMock.mockResolvedValueOnce([
'popup/index.html',
'popup/index.ts',
'popup/index.css',
]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

@nishu-murmu I also made .css and any other index.* files be ignored when an index.html file exists.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool, thanks.

Comment on lines -673 to +694
'options/index.html',
'options/index.jsx',
'popup.html',
'popup/index.html',
'popup/index.ts',
'ui.html',
'other.ts',
'other/index.ts',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Slightly tweaked the inputs to this test, so it tests both HTML and script entrypoints.

@aklinker1 aklinker1 requested a review from aleclarson April 9, 2025 15:28
@aklinker1
Copy link
Collaborator

aklinker1 commented Apr 9, 2025

I've updated this PR. I moved the fix to the correct location and updated tests accordingly.

Copy link

pkg-pr-new bot commented Apr 9, 2025

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@1520

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@1520

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@1520

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@1520

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@1520

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@1520

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@1520

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@1520

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@1520

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@1520

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@1520

wxt

npm i https://pkg.pr.new/wxt@1520

commit: bdccdef

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.

Ignore popup/index.ts instead of erroring
3 participants