diff --git a/bun.lock b/bun.lock index 3dbddaf7..0e11e269 100644 --- a/bun.lock +++ b/bun.lock @@ -321,11 +321,11 @@ "normalize-path": "^3.0.0", "nypm": "^0.6.5", "ohash": "^2.0.11", - "open": "^11.0.0", "picomatch": "^4.0.3", "prompts": "^2.4.2", "publish-browser-extension": "^5.1.0 || ^6.0.0", "scule": "^1.3.0", + "tiny-open": "^1.3.0", "tinyglobby": "^0.2.16", "unimport": "^3.13.1 || ^4.0.0 || ^5.0.0 || ^6.0.0", }, @@ -2312,6 +2312,8 @@ "through": ["through@2.3.8", "", {}, "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg=="], + "tiny-open": ["tiny-open@1.3.0", "", {}, "sha512-GUFS8yjJZq0oWqCKCJVHcBgMpmi2WEGXY1le3E5ncR0DsgTII5uUyxtfk8/vGyDDGBE42UYHR6Ocvlk8mkXSRg=="], + "tinybench": ["tinybench@6.0.1", "", {}, "sha512-cMdWsxmysdg8mNWf1pujiWl3TW0cU6m8QuNw55QlnP3I6N96Grb0wnu5N0syHIu3LbiVZCNqlfWzWDq84HZphA=="], "tinyexec": ["tinyexec@1.1.1", "", {}, "sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg=="], diff --git a/packages/wxt/e2e/tests/analysis.test.ts b/packages/wxt/e2e/tests/analysis.test.ts index b78f44f3..f3b5df2d 100644 --- a/packages/wxt/e2e/tests/analysis.test.ts +++ b/packages/wxt/e2e/tests/analysis.test.ts @@ -1,9 +1,9 @@ import { describe, it, expect, beforeEach, vi } from 'vitest'; import { TestProject } from '../utils'; import { resetBundleIncrement } from '../../src/core/builders/vite/plugins'; -import open from 'open'; +import open from 'tiny-open'; -vi.mock('open'); +vi.mock('tiny-open'); const openMock = vi.mocked(open); vi.mock('ci-info', () => ({ diff --git a/packages/wxt/package.json b/packages/wxt/package.json index cefe9a32..9d4a13ac 100644 --- a/packages/wxt/package.json +++ b/packages/wxt/package.json @@ -44,11 +44,11 @@ "normalize-path": "^3.0.0", "nypm": "^0.6.5", "ohash": "^2.0.11", - "open": "^11.0.0", "picomatch": "^4.0.3", "prompts": "^2.4.2", "publish-browser-extension": "^5.1.0 || ^6.0.0", "scule": "^1.3.0", + "tiny-open": "^1.3.0", "tinyglobby": "^0.2.16", "unimport": "^3.13.1 || ^4.0.0 || ^5.0.0 || ^6.0.0" }, diff --git a/packages/wxt/src/core/utils/building/internal-build.ts b/packages/wxt/src/core/utils/building/internal-build.ts index c0d889e1..bc22fce9 100644 --- a/packages/wxt/src/core/utils/building/internal-build.ts +++ b/packages/wxt/src/core/utils/building/internal-build.ts @@ -18,6 +18,7 @@ import { wxt } from '../../wxt'; import { mergeJsonOutputs } from '@aklinker1/rollup-plugin-visualizer'; import { isCI } from 'ci-info'; import { styleText } from 'node:util'; +import open from 'tiny-open'; /** * Builds the extension based on an internal config. No more config discovery is @@ -92,7 +93,6 @@ export async function internalBuild(): Promise { wxt.logger.info( `Opening ${styleText('yellow', statsPath)} in browser...`, ); - const { default: open } = await import('open'); await open(wxt.config.analysis.outputFile); } }