Skip to content

Commit

Permalink
Format script with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-Hopkinson committed Apr 24, 2024
1 parent 791de02 commit dd3817a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
"version": "1.0.0",
"type": "module",
"license": "MIT",
"description": "A plugin for OpenRCT2 that allows you to edit the soft guest cap.",
"scripts": {
"start": "nodemon --watch ./src --ext js,ts --exec \"npm run build:dev\"",
"build": "rollup --config rollup.config.js --environment BUILD:production",
"build:dev": "rollup --config rollup.config.js",
"format": "prettier --write ."
"format": "prettier --write .",
"lint": "prettier --check ."
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.0.1",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function getOutput() {
if (platform === "win32") {
// Windows
const { stdout } = await promisify(exec)(
"powershell -command \"[Environment]::GetFolderPath('MyDocuments')\""
"powershell -command \"[Environment]::GetFolderPath('MyDocuments')\"",
);
return `${stdout.trim()}/${pluginPath}`;
} else if (platform === "darwin") {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const allWidgets = window({
text: "Current Guest Cap",
onClick: () => {
park.postMessage(
`Your current soft guest cap is ${park.suggestedGuestMaximum}`
`Your current soft guest cap is ${park.suggestedGuestMaximum}`,
);
},
height: "23px",
Expand Down

0 comments on commit dd3817a

Please sign in to comment.