Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
style: 🎨 add description to all package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Feb 12, 2024
1 parent ccb3b6f commit 676e6fa
Show file tree
Hide file tree
Showing 26 changed files with 44 additions and 39 deletions.
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@graphql-tools/utils": "10.0.13",
"@libs/db": "workspace:^",
"@libs/lambda": "workspace:^",
"@libs/uc-irvine-api": "workspace:^",
"@libs/uc-irvine-lib": "workspace:^",
"@libs/utils": "workspace:^",
"@libs/websoc-utils": "workspace:^",
"@peterportal-api/types": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/routes/v1/rest/calendar/+endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PrismaClient } from "@libs/db";
import { createHandler } from "@libs/lambda";
import { getTermDateData } from "@libs/uc-irvine-api/registrar";
import { getTermDateData } from "@libs/uc-irvine-lib/registrar";
import type { Quarter, QuarterDates } from "@peterportal-api/types";
import { ZodError } from "zod";

Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/routes/v1/rest/websoc/+endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PrismaClient } from "@libs/db";
import { createHandler } from "@libs/lambda";
import type { WebsocAPIResponse } from "@libs/uc-irvine-api/websoc";
import type { WebsocAPIResponse } from "@libs/uc-irvine-lib/websoc";
import { notNull } from "@libs/utils";
import { combineAndNormalizeResponses, sortResponse } from "@libs/websoc-utils";
import { ZodError } from "zod";
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/routes/v1/rest/websoc/APILambdaClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
import { InvokeCommand, LambdaClient } from "@aws-sdk/client-lambda";
import { zeroUUID } from "@libs/lambda";
import type { WebsocAPIResponse } from "@libs/uc-irvine-api/websoc";
import type { WebsocAPIResponse } from "@libs/uc-irvine-lib/websoc";
import type { Department, TermData } from "@peterportal-api/types";
import type { APIGatewayProxyEvent, APIGatewayProxyResult, Context } from "aws-lambda";

Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/routes/v1/rest/websoc/lib.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Prisma } from "@libs/db";
import type { WebsocAPIOptions } from "@libs/uc-irvine-api/websoc";
import type { WebsocAPIOptions } from "@libs/uc-irvine-lib/websoc";
import { notNull } from "@libs/utils";

import type { Query } from "./schema";
Expand Down
1 change: 1 addition & 0 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@apps/docs",
"version": "0.0.0",
"private": true,
"description": "The documentation site for API",
"scripts": {
"build": "docusaurus build",
"dev": "docusaurus start"
Expand Down
1 change: 1 addition & 0 deletions libs/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@libs/db",
"version": "0.0.0",
"private": true,
"description": "Wrapper package for shared Prisma Client",
"license": "MIT",
"type": "module",
"main": "index.ts",
Expand Down
1 change: 1 addition & 0 deletions libs/lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@libs/lambda",
"version": "0.0.0",
"private": true,
"description": "Helpers for handling Lambda requests",
"license": "MIT",
"type": "module",
"main": "src/index.ts",
Expand Down
3 changes: 0 additions & 3 deletions libs/uc-irvine-api/tsconfig.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@libs/uc-irvine-api",
"name": "@libs/uc-irvine-lib",
"version": "0.10.8",
"private": true,
"description": "SDK for various UC Irvine services",
"description": "Libraries to interface with various UC Irvine data sources",
"keywords": [],
"homepage": "https://docs.api-next.peterportal.org",
"bugs": {
Expand All @@ -11,7 +11,7 @@
"repository": {
"type": "git",
"url": "https://github.com/icssc/peterportal-api-next",
"directory": "libs/uc-irvine-api"
"directory": "libs/uc-irvine-lib"
},
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -55,8 +55,5 @@
"engines": {
"node": "20",
"pnpm": "8"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions libs/uc-irvine-lib/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["../../tsconfig.json"],
}
1 change: 1 addition & 0 deletions libs/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@libs/utils",
"version": "0.0.0",
"private": true,
"description": "Miscellaneous utilities used by the API's components",
"license": "MIT",
"main": "src/index.ts"
}
3 changes: 2 additions & 1 deletion libs/websoc-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"name": "@libs/websoc-utils",
"version": "0.0.0",
"private": true,
"description": "Helper functions for transforming WebSoc JSON responses",
"type": "module",
"main": "src/index.ts",
"types": "src/index.ts",
"dependencies": {
"@libs/uc-irvine-api": "workspace:^",
"@libs/uc-irvine-lib": "workspace:^",
"@peterportal-api/types": "workspace:^"
}
}
2 changes: 1 addition & 1 deletion libs/websoc-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
WebsocSchool,
WebsocSection,
WebsocSectionMeeting,
} from "@libs/uc-irvine-api/websoc";
} from "@libs/uc-irvine-lib/websoc";
import type {
DayOfWeek,
WebsocAPIResponse as NormalizedResponse,
Expand Down
1 change: 1 addition & 0 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@peterportal-api/types",
"version": "1.0.0-rc.3",
"description": "",
"license": "MIT",
"type": "module",
"main": "index.ts",
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/websoc-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@libs/lambda": "workspace:^",
"@libs/uc-irvine-api": "workspace:^",
"@libs/uc-irvine-lib": "workspace:^",
"@libs/utils": "workspace:^",
"@libs/websoc-utils": "workspace:^"
},
Expand Down
4 changes: 2 additions & 2 deletions services/websoc-proxy/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createErrorResult, createOKResult, logger } from "@libs/lambda";
import { callWebSocAPI, getDepts, getTerms } from "@libs/uc-irvine-api/websoc";
import type { WebsocAPIResponse, WebsocAPIOptions } from "@libs/uc-irvine-api/websoc";
import { callWebSocAPI, getDepts, getTerms } from "@libs/uc-irvine-lib/websoc";
import type { WebsocAPIResponse, WebsocAPIOptions } from "@libs/uc-irvine-lib/websoc";
import { sleep } from "@libs/utils";
import { combineAndNormalizeResponses, fulfilled, sortResponse } from "@libs/websoc-utils";
import type { APIGatewayProxyEvent, APIGatewayProxyResult, Context } from "aws-lambda";
Expand Down
6 changes: 3 additions & 3 deletions services/websoc-scraper-v2/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PrismaClient } from "@libs/db";
import { getTermDateData } from "@libs/uc-irvine-api/registrar";
import { getTermDateData } from "@libs/uc-irvine-lib/registrar";
import type {
GE,
Quarter,
Expand All @@ -11,8 +11,8 @@ import type {
WebsocSection,
WebsocSectionMeeting,
sectionTypes,
} from "@libs/uc-irvine-api/websoc";
import { callWebSocAPI, getDepts, getTerms, geCodes } from "@libs/uc-irvine-api/websoc";
} from "@libs/uc-irvine-lib/websoc";
import { callWebSocAPI, getDepts, getTerms, geCodes } from "@libs/uc-irvine-lib/websoc";
import { sleep } from "@libs/utils";
import { createLogger, format, transports } from "winston";

Expand Down
2 changes: 1 addition & 1 deletion services/websoc-scraper-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@libs/db": "workspace:^",
"@libs/uc-irvine-api": "workspace:^",
"@libs/uc-irvine-lib": "workspace:^",
"@libs/utils": "workspace:^",
"@peterportal-api/types": "workspace:^",
"winston": "3.11.0"
Expand Down
3 changes: 2 additions & 1 deletion tools/grades-updater/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@tools/grades-updater",
"version": "0.0.0",
"private": true,
"description": "Scripts for updating the grades cache",
"type": "module",
"scripts": {
"populate": "dotenv -e ../../.env.grades -- tsx src/populate-ge.ts",
Expand All @@ -11,7 +12,7 @@
"dependencies": {
"@libs/db": "workspace:^",
"@libs/lambda": "workspace:^",
"@libs/uc-irvine-api": "workspace:^",
"@libs/uc-irvine-lib": "workspace:^",
"@libs/utils": "workspace:^",
"csv-parse": "5.5.3",
"csv-stringify": "6.4.5",
Expand Down
4 changes: 2 additions & 2 deletions tools/grades-updater/src/populate-ge.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PrismaClient } from "@libs/db";
import type { GE, Quarter } from "@libs/uc-irvine-api/websoc";
import { callWebSocAPI, geCodes } from "@libs/uc-irvine-api/websoc";
import type { GE, Quarter } from "@libs/uc-irvine-lib/websoc";
import { callWebSocAPI, geCodes } from "@libs/uc-irvine-lib/websoc";
import { sleep } from "@libs/utils";

const prisma = new PrismaClient();
Expand Down
4 changes: 2 additions & 2 deletions tools/grades-updater/src/sanitize-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import fs from "fs";
import { basename, resolve } from "node:path";
import { EOL } from "os";

import { callWebSocAPI } from "@libs/uc-irvine-api/websoc";
import type { WebsocAPIResponse, WebsocSection } from "@libs/uc-irvine-api/websoc";
import { callWebSocAPI } from "@libs/uc-irvine-lib/websoc";
import type { WebsocAPIResponse, WebsocSection } from "@libs/uc-irvine-lib/websoc";
import type { Quarter } from "@peterportal-api/types";
import type { CastingContext, Parser } from "csv-parse";
import { parse } from "csv-parse";
Expand Down
1 change: 1 addition & 0 deletions tools/registrar-scraper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@tools/registrar-scraper",
"version": "0.0.0",
"private": true,
"description": "Unified scraper for fetching data from UCI Catalogue and Registrar",
"license": "MIT",
"type": "module",
"main": "index.ts",
Expand Down

0 comments on commit 676e6fa

Please sign in to comment.