()
| 240 | }); |
| 241 | |
| 242 | async execute() { |
| 243 | const pkg = this.workspace.getPackage(this.package); |
| 244 | const bundler = getBundler(); |
| 245 | |
| 246 | if (this.dev) { |
| 247 | await BundleCommand.dev(pkg, bundler); |
| 248 | } else { |
| 249 | await BundleCommand.build(pkg, bundler); |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | static async build(pkg: Package, bundler: Bundler = getBundler()) { |
| 254 | if (bundler === 'rspack' && !isRspackSupportedPackageName(pkg.name)) { |
nothing calls this directly
no test coverage detected