()
| 157 | * Plugin to mark all WebdriverIO scripts in `packages/webdriverio/src/scripts` as external |
| 158 | */ |
| 159 | export 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 | |
| 173 | export function runBuildScript(absWorkingDir: string, pkg: PackageJson): Plugin { |
| 174 | return { |
no outgoing calls
no test coverage detected
searching dependent graphs…