chore(biome): flag barrel files outside package entry points by goosewobbler · Pull Request #729 · webdriverio/desktop-mobile · GitHub
Skip to content

chore(biome): flag barrel files outside package entry points - #729

Merged
goosewobbler merged 4 commits into
mainfrom
chore/biome-no-barrel-file
Oct 22, 2026
Merged

goosewobbler merged 4 commits into
mainfrom
chore/biome-no-barrel-file

Conversation

@goosewobbler

Copy link
Copy Markdown
Contributor

Turns on Biome's noBarrelFile for packages/*/src, except each package's root index.ts, so "no barrel files" is checked by pnpm lint instead of written in AGENTS.md. Type-only re-exports stay allowed.

Five files already re-exported. None was part of a package's public API, since each package exports only its root:

File What it re-exported Now
react-native-service/src/deviceManager.ts DeviceManager from @wdio/native-mobile-core Deleted; its spec imports the package
react-native-service/src/commands/triggerDeeplink.ts triggerDeeplink from @wdio/native-mobile-core Deleted; service.ts and the spec import the package
tauri-service/src/portManager.ts PortManager from @wdio/native-core Deleted; launcher.ts imports the package, and the launcher specs mock PortManager on @wdio/native-core
electron-service/src/mock.ts createClassMock from ./classMock.js Line removed; commands/mock.ts imports classMock.js
tauri-service/src/commands/execute.ts clearPluginAvailabilityCache from ../pluginCache.js Line removed; nothing imported it through execute.ts

tauri-service/test/portManager.spec.ts was byte-for-byte the same as native-core/test/portManager.spec.ts, so it's deleted with the shim. The React Native specs differ from native-mobile-core's, so they stay and now import from the package.

Typecheck, unit and integration tests pass for electron-service, react-native-service, tauri-service and native-core.

Once this and #725 merge, the barrel-file line comes out of AGENTS.md.

🤖 Generated with Claude Code

goosewobbler and others added 2 commits October 11, 2026 10:34
The React Native deviceManager and triggerDeeplink modules, and Tauri's
portManager, only re-exported @wdio/native-mobile-core and
@wdio/native-core. Their callers now import from those packages. Tauri's
portManager spec was a copy of native-core's and goes with it. Electron's
mock.ts and Tauri's execute.ts no longer re-export createClassMock and
clearPluginAvailabilityCache, which nothing imported through them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Biome's noBarrelFile now runs on packages/*/src, except each package's
root index.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor
Release Preview — no release

No bump label detected.
Note: Add bump:patch, bump:minor, or bump:major to trigger a release.


Updated automatically by ReleaseKit

@greptile-apps

greptile-apps Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

@goosewobbler
goosewobbler merged commit 0801287 into main Oct 22, 2026
266 of 268 checks passed
@goosewobbler
goosewobbler deleted the chore/biome-no-barrel-file branch October 22, 2026 10:43
@github-actions github-actions Bot mentioned this pull request Oct 21, 2026
11 of 12 tasks
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.

1 participant