• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

electrode-io / electrode-native / 7575

08 Apr 2026 06:30AM UTC coverage: 56.617% (-11.2%) from 67.826%
7575

push

Azure Pipelines

r0h0gg6
Update lerna publish to avoid npm classic token deprec

3601 of 7762 branches covered (46.39%)

Branch coverage included in aggregate %.

9426 of 15247 relevant lines covered (61.82%)

523.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

14.29
/ern-container-gen/src/reactNativeBundleAndroid.ts
1
import { BundlingResult, reactnative, shell } from 'ern-core';
3✔
2
import fs from 'fs';
3✔
3
import path from 'path';
3✔
4

5
export async function reactNativeBundleAndroid({
3✔
6
  bundleOutput,
7
  dev,
8
  outDir,
9
  sourceMapOutput,
10
  cwd,
11
  resetCache,
12
}: {
13
  bundleOutput?: string;
14
  dev?: boolean;
15
  outDir: string;
16
  sourceMapOutput?: string;
17
  cwd?: string;
18
  resetCache?: boolean;
19
}): Promise<BundlingResult> {
20
  cwd = cwd ?? process.cwd();
×
21
  const libSrcMainPath = path.join(outDir, 'lib', 'src', 'main');
×
22
  bundleOutput =
×
23
    bundleOutput ?? path.join(libSrcMainPath, 'assets', 'index.android.bundle');
×
24
  const assetsDest = path.join(libSrcMainPath, 'res', 'bundle');
×
25

26
  // Cleanup everything from 'res' bundle directory
27
  if (fs.existsSync(assetsDest)) {
×
28
    shell.rm('-rf', assetsDest);
×
29
  }
30

31
  shell.pushd(cwd);
×
32

33
  const entryFile = fs.existsSync(path.join(cwd, 'index.android.js'))
×
34
    ? 'index.android.js'
×
35
    : 'index.js';
36

37
  try {
×
38
    const result = await reactnative.bundle({
×
39
      assetsDest,
40
      bundleOutput,
41
      dev: !!dev,
42
      entryFile,
43
      platform: 'android',
44
      resetCache,
45
      sourceMapOutput,
46
      workingDir: cwd,
47
    });
48
    return result;
×
49
  } finally {
50
    shell.popd();
×
51
  }
52
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc