Skip to content

Commit

Permalink
style: apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Trap committed Aug 9, 2024
1 parent 1da0aac commit b3f24a1
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions scripts/install-files.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { execSync } = require('child_process');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const packageJson = require('../package.json');

const dllFileName = 'PTTExtracts.dll'
const cprFlags = '--overwrite --delete-first'

const main = async modName => {
[
`cpr ./dist/user/mods/${modName} ../../../user/mods/${modName} ${cprFlags}`,
`cpr ./dist/BepInEx/plugins/${dllFileName} ../../../BepInEx/plugins/${dllFileName} ${cprFlags}`,
'echo "> Successfully installed files!"',
].forEach(cmd => {
if (typeof cmd === 'string') {
process.stdout.write(execSync(cmd));
} else {
cmd();
}
});
};

main(packageJson.fullName);
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { execSync } = require('child_process');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const packageJson = require('../package.json');

const dllFileName = 'PTTExtracts.dll';
const cprFlags = '--overwrite --delete-first';

const main = async modName => {
[
`cpr ./dist/user/mods/${modName} ../../../user/mods/${modName} ${cprFlags}`,
`cpr ./dist/BepInEx/plugins/${dllFileName} ../../../BepInEx/plugins/${dllFileName} ${cprFlags}`,
'echo "> Successfully installed files!"',
].forEach(cmd => {
if (typeof cmd === 'string') {
process.stdout.write(execSync(cmd));
} else {
cmd();
}
});
};

main(packageJson.fullName);

0 comments on commit b3f24a1

Please sign in to comment.