Skip to content

Commit 4ff1a85

Browse files
authored
Merge pull request #146 from PSDTools/bump
2 parents 6f0f9c3 + 54c10a3 commit 4ff1a85

31 files changed

+2664
-3788
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
.prettierrc @lishaduck
2323
.prettierignore @lishaduck
24-
eslint.config.js @lishaduck
24+
eslint.config.ts @lishaduck
2525
package.json @lishaduck
2626
pnpm-lock.yaml @lishaduck
2727
tsconfig.*json @lishaduck

.github/workflows/ci.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,10 @@ jobs:
4545
set-safe-directory: true
4646
- name: ⠨⠿ Install pnpm
4747
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
48-
with:
49-
package_json_file: package.json
5048
- name: ⬢ Install Node
5149
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
5250
with:
53-
node-version-file: package.json
51+
node-version-file: .nvmrc
5452
cache: "pnpm"
5553
- name: ⚙️ Cache Turbo
5654
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
@@ -71,8 +69,8 @@ jobs:
7169
run: pnpm run build
7270
- name: 🕵️ Merge Checks
7371
run: pnpm run merge-checks --continue
74-
- name: 🧹 Check for deduped dependencies
75-
run: pnpm exec turbo check-deduped-deps
72+
# - name: 🧹 Check for deduped dependencies
73+
# run: pnpm exec turbo check-deduped-deps
7674
- name: ⚙️ Upload GPA Calculator
7775
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
7876
with:

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
auto-install-peers=true
2+
strict-peer-dependencies=true
3+
disallow-workspace-cycles=true

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v23.6.0

apps/gpa-calculator/eslint.config.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

apps/gpa-calculator/eslint.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { config } from "deputy";
2+
3+
export default config();

apps/gpa-calculator/package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,27 @@
3131
"defaults and fully supports es6-module"
3232
],
3333
"dependencies": {
34-
"html-template-tag": "^4.1.0",
34+
"html-template-tag": "^4.1.1",
3535
"idb-keyval": "^6.2.1",
3636
"typed-query-selector": "^2.12.0",
37-
"unstorage": "^1.13.1",
37+
"unstorage": "^1.14.4",
3838
"zod": "^3.24.1"
3939
},
4040
"devDependencies": {
4141
"@psdtools/tsconfig": "workspace:^",
4242
"@total-typescript/ts-reset": "^0.6.1",
4343
"@vite-pwa/assets-generator": "^0.2.6",
44-
"browserslist": "^4.24.2",
44+
"browserslist": "^4.24.4",
4545
"browserslist-to-esbuild": "^2.1.1",
4646
"deputy": "workspace:^",
47-
"eslint": "^9.14.0",
47+
"eslint": "^9.18.0",
4848
"fontaine": "^0.5.0",
49-
"lightningcss": "^1.28.1",
50-
"typescript": "^5.7.2",
51-
"vite": "^5.4.11",
52-
"vite-plugin-html-minifier": "^1.0.4",
53-
"vite-plugin-pwa": "^0.20.5",
49+
"jiti": "^2.4.2",
50+
"lightningcss": "^1.29.1",
51+
"typescript": "~5.7.3",
52+
"vite": "^6.0.7",
53+
"vite-plugin-html-minifier": "^1.0.5",
54+
"vite-plugin-pwa": "^0.21.1",
5455
"workbox-build": "^7.3.0",
5556
"workbox-core": "^7.3.0",
5657
"workbox-precaching": "^7.3.0",

apps/gpa-calculator/src/data/data-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ const newCourse = z
3434
}),
3535
);
3636

37-
export { type Course, newCourse };
37+
export { type Course, courseSchema, newCourse };

apps/gpa-calculator/src/script.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ import {
2323
} from "./scripts/storage.ts";
2424

2525
declare global {
26-
function hsmsSwap(): Promise<void>;
2726
function classAmount(): Promise<void>;
28-
function loadGpa(): Promise<void>;
29-
function clearData(): Promise<void>;
3027
function clearAll(): Promise<void>;
31-
function toggleNav(open: boolean): void;
32-
function startApp(): Promise<void>;
28+
function clearData(): Promise<void>;
3329
function darkMode(): Promise<void>;
30+
function hsmsSwap(): Promise<void>;
31+
function loadGpa(): Promise<void>;
32+
function startApp(): Promise<void>;
33+
function toggleNav(open: boolean): void;
3434
}
3535

3636
let courses: Course[] = [];

apps/gpa-calculator/src/scripts/storage.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ import indexedDbDriver from "unstorage/drivers/indexedb";
33

44
import type { Course } from "../data/data-types";
55

6-
const storage: Storage = createStorage({
6+
interface StorageData {
7+
arraystorage: Course[];
8+
gradestorage: string;
9+
}
10+
11+
const storage: Storage<StorageData> = createStorage<StorageData>({
712
driver: indexedDbDriver({ base: "gpa:" }),
813
});
914

0 commit comments

Comments
 (0)