MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / externalScripts

Function externalScripts

infra/compiler/src/plugins.ts:159–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157 * Plugin to mark all WebdriverIO scripts in `packages/webdriverio/src/scripts` as external
158 */
159export function externalScripts(): Plugin {
160 const name = 'ExternalScripts'
161 return {
162 name,
163 setup(build) {
164 build.onResolve({ filter: /\/scripts\// }, (args) => ({
165 path: `./scripts/${path.basename(args.path)}`,
166 external: true,
167 pluginName: name
168 }))
169 }
170 }
171}
172
173export function runBuildScript(absWorkingDir: string, pkg: PackageJson): Plugin {
174 return {

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…