MCPcopy Index your code
hub / github.com/toeverything/AFFiNE / execute

Method execute

tools/cli/src/bundle.ts:242–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)) {

Callers

nothing calls this directly

Calls 4

getBundlerFunction · 0.90
getPackageMethod · 0.80
devMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected