From e510f2fe4c227c107a1faca9386b5ceb326611ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6k=C3=A7e=20Merdun?= Date: Tue, 15 Aug 2023 03:39:32 +0300 Subject: [PATCH] fix(os): correct typo in OsType (#561) * fix(window): correct typo in OsType * change file * fix fmt check --- .changes/os-OsType.md | 5 +++++ package.json | 4 ++-- plugins/os/guest-js/index.ts | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changes/os-OsType.md diff --git a/.changes/os-OsType.md b/.changes/os-OsType.md new file mode 100644 index 00000000..7fab4948 --- /dev/null +++ b/.changes/os-OsType.md @@ -0,0 +1,5 @@ +--- +"os-js": "patch" +--- + +Fix `macss -> macos` typo in `OsType` type. diff --git a/package.json b/package.json index 7cdb65ad..5514a29a 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "scripts": { "build": "pnpm run -r --parallel --filter !plugins-workspace --filter !\"./plugins/*/examples/**\" --filter !\"./examples/*\" build", "lint": "eslint .", - "format": "prettier --write .", - "format-check": "prettier --check ." + "format": "prettier --write \"./**/*.{cjs,mjs,js,jsx,mts,ts,tsx,html,css,json}\" --ignore-path .prettierignore", + "format-check": "prettier --check \"./**/*.{cjs,mjs,js,jsx,mts,ts,tsx,html,css,json}\" --ignore-path .prettierignore" }, "devDependencies": { "@rollup/plugin-node-resolve": "15.1.0", diff --git a/plugins/os/guest-js/index.ts b/plugins/os/guest-js/index.ts index 02803361..25b56063 100644 --- a/plugins/os/guest-js/index.ts +++ b/plugins/os/guest-js/index.ts @@ -29,7 +29,7 @@ type Platform = | "android" | "windows"; -type OsType = "linux" | "windows" | "macss" | "ios" | "android"; +type OsType = "linux" | "windows" | "macos" | "ios" | "android"; type Arch = | "x86"