Skip to content

Commit 520b700

Browse files
committed
Update dependencies and add browser extension structure
- Updated `@types/react` to version 19.2.14 in `package.json` and `pnpm-lock.yaml`. - Updated `eslint` to version 10.0.3 and `vitest` to version 4.1.0. - Added new `browser-extension` package with initial configuration, including `package.json`, `tsconfig.json`, and various scripts. - Introduced new public files for the browser extension, including hooks and icons. - Updated `pnpm-workspace.yaml` to remove the `devtools` package from the workspace configuration.
1 parent 0355246 commit 520b700

179 files changed

Lines changed: 2298 additions & 11818 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

e2e/qwik-react-e2e/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"description": "Qwik react test app",
44
"devDependencies": {
55
"@qwik.dev/react": "workspace:*",
6-
"@types/react": "19.2.7",
6+
"@types/react": "19.2.14",
77
"@types/react-dom": "19.2.3",
8-
"react": "19.2.3",
9-
"react-dom": "19.2.3"
8+
"react": "19.2.4",
9+
"react-dom": "19.2.4"
1010
},
1111
"engines": {
1212
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"@types/node": "24.10.0",
126126
"@types/path-browserify": "1.0.3",
127127
"@types/prompts": "2.4.9",
128-
"@types/react": "19.2.7",
128+
"@types/react": "19.2.14",
129129
"@types/semver": "7.7.1",
130130
"@types/tmp": "0.2.6",
131131
"@types/which-pm-runs": "1.0.2",
@@ -137,7 +137,7 @@
137137
"csstype": "3.2.3",
138138
"dotenv": "17.2.3",
139139
"esbuild": "0.27.2",
140-
"eslint": "10.0.2",
140+
"eslint": "10.0.3",
141141
"eslint-plugin-import": "2.32.0",
142142
"eslint-plugin-no-only-tests": "3.3.0",
143143
"eslint-plugin-qwik": "workspace:*",
@@ -172,8 +172,8 @@
172172
"vite": "7.3.1",
173173
"vite-imagetools": "10.0.0",
174174
"vite-plugin-dts": "4.5.4",
175-
"vite-tsconfig-paths": "6.0.4",
176-
"vitest": "4.0.18",
175+
"vite-tsconfig-paths": "6.1.1",
176+
"vitest": "4.1.0",
177177
"watchlist": "0.3.1",
178178
"which-pm-runs": "1.1.0",
179179
"zod": "3.25.48"
@@ -189,13 +189,14 @@
189189
"scripts": {
190190
"api.update": "node --require ./scripts/runBefore.ts scripts/index.ts --tsc --api --dev",
191191
"build": "node --require ./scripts/runBefore.ts scripts/index.ts",
192+
"build.browser-extension": "pnpm build.devtools && node --require ./scripts/runBefore.ts scripts/index.ts --browser-extension",
192193
"build.changelog-formatter": "tsc .changeset/changelog-github-custom.ts && mv .changeset/changelog-github-custom.js .changeset/changelog-github-custom.cjs",
193194
"build.clean": "node ./scripts/build-clean.ts",
194195
"build.cli": "node --require ./scripts/runBefore.ts scripts/index.ts --cli --dev",
195196
"build.cli.prod": "node --require ./scripts/runBefore.ts scripts/index.ts --cli",
196197
"build.core": "node --require ./scripts/runBefore.ts scripts/index.ts --tsc --qwik --optimizer --insights --qwikrouter --api --platform-binding",
197198
"build.core.dev": "node --require ./scripts/runBefore.ts scripts/index.ts --qwik --optimizer --insights --qwikrouter --platform-binding --dev",
198-
"build.devtools": "node --require ./scripts/runBefore.ts scripts/index.ts --devtools",
199+
"build.devtools": "node --require ./scripts/runBefore.ts scripts/index.ts --devtools --browser-extension",
199200
"build.eslint": "node --require ./scripts/runBefore.ts scripts/index.ts --eslint",
200201
"build.full": "node --require ./scripts/runBefore.ts scripts/index.ts --tsc --tsc-docs --qwik --optimizer --insights --supabaseauthhelpers --api --eslint --qwikrouter --qwikworker --qwikreact --cli --platform-binding --wasm",
201202
"build.local": "node --require ./scripts/runBefore.ts scripts/index.ts --tsc --tsc-docs --qwik --optimizer --insights --supabaseauthhelpers --api --eslint --qwikrouter --qwikworker --qwikreact --cli --platform-binding-wasm-copy",
File renamed without changes.
File renamed without changes.

packages/devtools/browser-extension/.wxt/types/globals.d.ts renamed to packages/browser-extension/.wxt/types/globals.d.ts

File renamed without changes.

packages/devtools/browser-extension/.wxt/types/i18n.d.ts renamed to packages/browser-extension/.wxt/types/i18n.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ declare module "wxt/browser" {
1414

1515
export interface WxtI18n extends I18n.Static {
1616
/**
17-
* The extension or app ID; you might use this string to construct URLs for resources inside the extension. Even unlocalized extensions can use this message.
17+
* The extension or app ID; you might use this string to construct URLs for resources inside the extension. Even non-localized extensions can use this message.
1818
* Note: You can't use this message in a manifest file.
1919
*
2020
* "<browser.runtime.id>"

packages/devtools/browser-extension/.wxt/types/imports-module.d.ts renamed to packages/browser-extension/.wxt/types/imports-module.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Types for the #import virtual module
33
declare module '#imports' {
44
export { browser, Browser } from 'wxt/browser';
5-
export { storage, StorageArea, WxtStorage, WxtStorageItem, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage';
5+
export { storage, WxtStorage, WxtStorageItem, StorageArea, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage';
66
export { getAppConfig, useAppConfig } from 'wxt/utils/app-config';
77
export { ContentScriptContext, WxtWindowEventMap } from 'wxt/utils/content-script-context';
88
export { createIframeUi, IframeContentScriptUi, IframeContentScriptUiOptions } from 'wxt/utils/content-script-ui/iframe';
File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Generated by wxt
2+
/// <reference types="wxt/vite-builder-env" />
3+
import type {} from './types/paths.d.ts';
4+
import type {} from './types/i18n.d.ts';
5+
import type {} from './types/globals.d.ts';
6+
import type {} from './types/imports-module.d.ts';

packages/devtools/browser-extension/package.json renamed to packages/browser-extension/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
"name": "@devtools/browser-extension",
33
"description": "Qwik DevTools browser extension for Chrome and Firefox",
44
"version": "0.1.0",
5+
"dependencies": {
6+
"@qwik.dev/devtools": "workspace:^",
7+
"lit": "^3.3.2",
8+
"wxt": "^0.20.20"
9+
},
10+
"devDependencies": {
11+
"@types/chrome": "0.1.38",
12+
"typescript": "5.9.3",
13+
"vitest": "4.1.0"
14+
},
515
"private": true,
6-
"type": "module",
716
"scripts": {
8-
"dev": "wxt",
9-
"dev:firefox": "wxt --browser firefox",
1017
"build": "wxt build",
1118
"build:firefox": "wxt build --browser firefox",
12-
"zip": "wxt zip",
13-
"zip:firefox": "wxt zip --browser firefox",
19+
"dev": "wxt",
20+
"dev:firefox": "wxt --browser firefox",
21+
"lint": "eslint src/",
1422
"test": "vitest run",
1523
"test:watch": "vitest",
16-
"lint": "eslint src/"
17-
},
18-
"dependencies": {
19-
"lit": "^3.3.2",
20-
"wxt": "^0.20.20"
24+
"zip": "wxt zip",
25+
"zip:firefox": "wxt zip --browser firefox"
2126
},
22-
"devDependencies": {
23-
"@devtools/kit": "workspace:*",
24-
"@types/chrome": "^0.1.38",
25-
"typescript": "5.9.3",
26-
"vitest": "^4.1.0"
27-
}
27+
"type": "module"
2828
}

0 commit comments

Comments
 (0)