fix adding newlines after updating dependencies

This commit is contained in:
Allan Niles 2025-07-06 18:11:22 -06:00
parent 6161d7f140
commit 820a9fa962
No known key found for this signature in database
GPG Key ID: 4801D0A65C62A5B6
4 changed files with 7 additions and 3 deletions

View File

@ -19,4 +19,3 @@ To install a specific core, run the following command:
```bash
npm install @emulatorjs/core-<core-name>
```

View File

@ -22,4 +22,3 @@ To install all cores, run the following command:
```bash
npm install @emulatorjs/cores
```

View File

@ -306,7 +306,7 @@
"DPAD_UP": "DPAD_위",
"DPAD_DOWN": "DPAD_아래",
"DPAD_LEFT": "DPAD_왼쪽",
"DPAD_RIGHT": "DPAD_오른쪽"
"DPAD_RIGHT": "DPAD_오른쪽",
"Disks": "디스크",
"Exit EmulatorJS": "EmulatorJS 끝내기",
"BUTTON_1": "버튼_1",

View File

@ -27,12 +27,18 @@ const updateDependencies = async () => {
try {
fs.copyFileSync(socket_io, ejs_socket_io);
if (!fs.readFileSync(ejs_socket_io, 'utf8').endsWith('\n')) {
fs.appendFileSync(ejs_socket_io, '\n');
}
} catch(error) {
console.error("Error updating socket.io:", error.message);
}
try {
fs.copyFileSync(nipplejs, ejs_nipplejs);
if (!fs.readFileSync(ejs_nipplejs, 'utf8').endsWith('\n')) {
fs.appendFileSync(ejs_nipplejs, '\n');
}
} catch(error) {
console.error("Error updating nipplejs:", error.message);
}