tree: 0a86252aaa461425e6fc6ad2d6ca08b939824ebc [path history] [tgz]
  1. BUILD.bazel
  2. devices.ts


A list of Android device names and their aliases.

This file is updated from

Importing JSON from TypeScript

Note: The below comments might be obsolete now that we have migrated to rules_js.

Currently, the rules_nodejs Bazel rules do not allow importing JSON documents from TypeScript source files. See this bug.

When said bug is resolved, we might want to transform devices.ts into a JSON document, so that it can be imported from TypeScript sources via the --resolveJsonModule mechanism as follows:

import * as DEVICE_ALIASES_ANY from '../../modules/devices/devices.json';

const DEVICE_ALIASES = DEVICE_ALIASES_ANY as Record<string, string>;

The following line will need to be added to //tsconfig.json for this to work:

"resolveJsonModule": true,