diff --git a/README.md b/README.md index d1df7cb..eb7003d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Install the `expo-atlas` package as (development) dependency to your project: $ npx expo install expo-atlas ``` -Configure your Metro config to emit a `.expo/stats.jsonl` file containing information about your bundles. +Configure your Metro config to emit an Atlas file containing information about your bundles. ```js metro.config.js const { getDefaultConfig } = require('expo/metro-config'); @@ -36,12 +36,12 @@ $ npx expo export --platform all $ npx expo-atlas ``` -## 🧑‍🤝‍🧑 Sharing stats files +## 🧑‍🤝‍🧑 Sharing the Atlas file -You can also open a previously created `stats.jsonl` file: +You can also open a previously created `atlas.jsonl` file: ``` -$ npx expo-atlas ./path/to/stats.jsonl +$ npx expo-atlas ./path/to/atlas.jsonl ```
diff --git a/src/utils/__tests__/stats.test.ts b/src/utils/__tests__/stats.test.ts index a0dd202..31b6ba4 100644 --- a/src/utils/__tests__/stats.test.ts +++ b/src/utils/__tests__/stats.test.ts @@ -7,8 +7,8 @@ import { AtlasValidationError } from '../errors'; import { getStatsPath, getStatsMetdata, createStatsFile, validateStatsFile } from '../stats'; describe('getStatsPath', () => { - it('returns default path `/.expo/stats.jsonl`', () => { - expect(getStatsPath('')).toBe('/.expo/stats.jsonl'); + it('returns default path `/.expo/atlas.jsonl`', () => { + expect(getStatsPath('')).toBe('/.expo/atlas.jsonl'); }); }); diff --git a/src/utils/stats.ts b/src/utils/stats.ts index 7b46773..4a2c571 100644 --- a/src/utils/stats.ts +++ b/src/utils/stats.ts @@ -10,7 +10,7 @@ export type StatsMetadata = { name: string; version: string }; /** The default location of the metro stats file */ export function getStatsPath(projectRoot: string) { - return path.join(projectRoot, '.expo/stats.jsonl'); + return path.join(projectRoot, '.expo/atlas.jsonl'); } /** The information to validate if a stats file is compatible with this library version */