mirror of
https://github.com/expo/eas-cli.git
synced 2026-11-15 17:31:46 -10:00
## Summary - standardize workspace clean/rebuild/prepack deletion steps on `rimraf` - add `rimraf` where package-local scripts invoke it directly - keep `worker` and root clean flows working from a clean install Also adds Codex config for new workspace. And the problem it solves is that sometimes `yarn clean` would fail if there were no `*.tsbuildinfo` files. Something weird about zsh in package.json ## Validation - mise exec -- yarn clean - mise exec -- yarn install --immutable - mise exec -- yarn build - mise exec -- yarn typecheck - mise exec -- yarn clean (in packages/worker) - mise exec -- yarn clean (in packages/logger)
@expo/template-file
@expo/template-file provides file-level variable substitution (Mustache template style).
API
templateFile(templateFilePath: string, outputFilePath: string, envs: Record<string, string | number>): Promise<void>
Usage example
import templateFile from '@expo/template-file';
await templateFile('abc.json.template', 'abc.json', { ABC: 123, XYZ: 789 });
abc.json.template file contents:
{
"someKey": {{ ABC }},
"anotherKey": {{ XYZ }}
}
abc.json file should be created with the following contents:
{
"someKey": 123,
"anotherKey": 789
}
Repository
https://github.com/expo/eas-cli/tree/main/packages/template-file