You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-12 12:41:46 +03:00
Instead of making this part of the build process, let the devs generate stripped-emoji.json
With the expectation that when the file needs to be regenerated to include other keys, the developer will run this script.
This commit is contained in:
@ -11,7 +11,8 @@ const output = Object.keys(EMOJI_DATA).map(
|
||||
category: datum.category,
|
||||
emoji_order: datum.emoji_order,
|
||||
};
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
fs.writeFileSync('./lib/stripped-emoji.json', JSON.stringify(output));
|
||||
// Write to a file in src. Changes should be checked in to git
|
||||
fs.writeFileSync('./src/stripped-emoji.json', JSON.stringify(output));
|
||||
|
Reference in New Issue
Block a user