From 90eecbefa8c02a122c8dbe4574d416b2a1c6709e Mon Sep 17 00:00:00 2001 From: Nutthapat Pongtanyavichai <59821765+leomotors@users.noreply.github.com> Date: Sun, 9 Jun 2024 09:07:39 +0700 Subject: [PATCH] fix: build and lint error --- .changeset/cold-fishes-greet.md | 8 ++++++++ apps/admin-api/package.json | 1 + apps/api/package.json | 1 + apps/reg-scraper/package.json | 1 + .../src/common/components/TopBar/index.tsx | 6 +++++- pnpm-lock.yaml | 19 +++++++++++++++++++ 6 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .changeset/cold-fishes-greet.md diff --git a/.changeset/cold-fishes-greet.md b/.changeset/cold-fishes-greet.md new file mode 100644 index 000000000..08c2ad37a --- /dev/null +++ b/.changeset/cold-fishes-greet.md @@ -0,0 +1,8 @@ +--- +"reg-scraper": patch +"admin-api": patch +"api": patch +"web": patch +--- + +fix: build and lint error diff --git a/apps/admin-api/package.json b/apps/admin-api/package.json index bd6848cc7..ee7e0c448 100644 --- a/apps/admin-api/package.json +++ b/apps/admin-api/package.json @@ -41,6 +41,7 @@ "@types/express": "^4.17.21", "@types/node": "^20.11.25", "eslint": "8.57.0", + "rimraf": "^5.0.7", "ts-morph": "^21.0.1", "typescript": "~5.4.2" } diff --git a/apps/api/package.json b/apps/api/package.json index 4aba50fbc..f49dc7417 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -17,6 +17,7 @@ "@types/node": "20.11.25", "@types/passport-jwt": "^4.0.1", "eslint": "8.57.0", + "rimraf": "^5.0.7", "ts-morph": "^21.0.1", "typescript": "~5.4.2" }, diff --git a/apps/reg-scraper/package.json b/apps/reg-scraper/package.json index 8fa712bed..e6c3d0b57 100644 --- a/apps/reg-scraper/package.json +++ b/apps/reg-scraper/package.json @@ -15,6 +15,7 @@ "@types/node": "20.11.25", "@types/tough-cookie": "4.0.5", "eslint": "8.57.0", + "rimraf": "^5.0.7", "typescript": "~5.4.2" }, "dependencies": { diff --git a/apps/web/src/common/components/TopBar/index.tsx b/apps/web/src/common/components/TopBar/index.tsx index c12d5ae97..ab9d412d4 100644 --- a/apps/web/src/common/components/TopBar/index.tsx +++ b/apps/web/src/common/components/TopBar/index.tsx @@ -1,7 +1,11 @@ import { useRouter } from 'next/router' import { AnnouncementBar } from './components/AnnouncementBar' -import { getAnnouncement1, getNotRegChulaWarning, term67Issue } from './components/AnnouncementBar/announcements' +import { + getAnnouncement1, + getNotRegChulaWarning, + term67Issue, +} from './components/AnnouncementBar/announcements' import { ConfigBar } from './components/ConfigBar' import { ConfigBarLayout } from './components/ConfigBar/styled' import { NavBar } from './components/NavBar' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f9331a556..bc7e21c92 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -117,6 +117,9 @@ importers: eslint: specifier: 8.57.0 version: 8.57.0 + rimraf: + specifier: ^5.0.7 + version: 5.0.7 ts-morph: specifier: ^21.0.1 version: 21.0.1 @@ -311,6 +314,9 @@ importers: eslint: specifier: 8.57.0 version: 8.57.0 + rimraf: + specifier: ^5.0.7 + version: 5.0.7 ts-morph: specifier: ^21.0.1 version: 21.0.1 @@ -405,6 +411,9 @@ importers: eslint: specifier: 8.57.0 version: 8.57.0 + rimraf: + specifier: ^5.0.7 + version: 5.0.7 typescript: specifier: ~5.4.2 version: 5.4.2 @@ -9878,6 +9887,7 @@ packages: /glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported dependencies: fs.realpath: 1.0.0 inflight: 1.0.6 @@ -13277,6 +13287,7 @@ packages: /rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true dependencies: glob: 7.2.3 @@ -13288,6 +13299,14 @@ packages: dependencies: glob: 9.3.5 + /rimraf@5.0.7: + resolution: {integrity: sha512-nV6YcJo5wbLW77m+8KjH8aB/7/rxQy9SZ0HY5shnwULfS+9nmTtVXAJET5NdZmCzA4fPI/Hm1wo/Po/4mopOdg==} + engines: {node: '>=14.18'} + hasBin: true + dependencies: + glob: 10.3.10 + dev: true + /rollup@4.12.1: resolution: {integrity: sha512-ggqQKvx/PsB0FaWXhIvVkSWh7a/PCLQAsMjBc+nA2M8Rv2/HG0X6zvixAB7KyZBRtifBUhy5k8voQX/mRnABPg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'}