mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-30 04:21:08 +00:00
12 lines
309 B
JavaScript
Executable File
12 lines
309 B
JavaScript
Executable File
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const accessToken = fs.readFileSync(path.join('./', 'accesstoken'));
|
|
|
|
if (!accessToken) {
|
|
process.exit(1);
|
|
}
|
|
|
|
const fileContents = `{ "accessToken": "${new String(accessToken).trim()}" }`;
|
|
fs.writeFileSync(path.join('./', 'env.json'), fileContents);
|