Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 0e160d8

Browse files
committed
fix: upgrade find-cache-dir + types
1 parent 94bc3c5 commit 0e160d8

File tree

8 files changed

+119
-129
lines changed

8 files changed

+119
-129
lines changed

package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"destr": "^2.0.2",
3131
"events": "^3.3.0",
3232
"fast-deep-equal": "^3.1.3",
33-
"find-cache-dir": "^4.0.0",
33+
"find-cache-dir": "^5.0.0",
3434
"fs-extra": "^11.1.1",
3535
"graphql": "^16.6.0",
3636
"jose": "^4.14.4",
@@ -67,15 +67,14 @@
6767
"@nuxt/image": "1.0.0-rc.1",
6868
"@nuxtjs/tailwindcss": "6.8.0",
6969
"@rollup/plugin-virtual": "3.0.2",
70-
"@types/find-cache-dir": "3.2.1",
71-
"@types/fs-extra": "11.0.2",
72-
"@types/jszip": "3.4.1",
73-
"@types/lodash.sortby": "4.7.7",
74-
"@types/lodash.truncate": "4.4.7",
75-
"@types/serialize-javascript": "5.0.2",
76-
"@types/tailwindcss": "3.1.0",
77-
"@types/tar": "6.1.6",
78-
"@types/uuid": "9.0.5",
70+
"@types/fs-extra": "^11.0.3",
71+
"@types/jszip": "^3.4.1",
72+
"@types/lodash.sortby": "^4.7.8",
73+
"@types/lodash.truncate": "^4.4.8",
74+
"@types/serialize-javascript": "^5.0.3",
75+
"@types/tailwindcss": "^3.1.0",
76+
"@types/tar": "^6.1.7",
77+
"@types/uuid": "^9.0.6",
7978
"@vitejs/plugin-vue": "4.4.0",
8079
"eslint": "8.52.0",
8180
"eslint-config-prettier": "9.0.0",

packages/code-highlight/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"release": "yarn run lint && yarn run prepack && changelogen --release && yarn npm publish && git push --follow-tags"
2020
},
2121
"dependencies": {
22-
"@types/prismjs": "^1.26.1"
22+
"@types/prismjs": "^1.26.2"
2323
},
2424
"publishConfig": {
2525
"access": "public"

packages/create-karbon/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"minimist": "^1.2.8"
1919
},
2020
"devDependencies": {
21-
"@types/node": "18.18.5",
21+
"@types/node": "^20.8.8",
2222
"unbuild": "2.0.0"
2323
},
2424
"publishConfig": {

packages/jose-browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"jose": "^4.14.4"
3030
},
3131
"devDependencies": {
32-
"@types/node": "18.18.5",
32+
"@types/node": "^20.8.8",
3333
"typescript": "5.2.2",
3434
"unbuild": "2.0.0"
3535
},

packages/karbon/package.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"fast-xml-parser": "^4.3.2",
142142
"feed": "^4.2.2",
143143
"file-type": "^18.5.0",
144-
"find-cache-dir": "^4.0.0",
144+
"find-cache-dir": "^5.0.0",
145145
"fs-extra": "^11.1.1",
146146
"graphql": "^16.7.1",
147147
"hookable": "^5.5.3",
@@ -199,17 +199,16 @@
199199
"@nuxt/module-builder": "0.5.2",
200200
"@nuxt/test-utils": "3.6.5",
201201
"@nuxtjs/tailwindcss": "6.8.0",
202-
"@types/find-cache-dir": "3.2.1",
203-
"@types/fs-extra": "11.0.2",
204-
"@types/js-yaml": "4.0.8",
205-
"@types/jszip": "3.4.1",
206-
"@types/lodash.sortby": "4.7.7",
207-
"@types/lodash.truncate": "4.4.7",
208-
"@types/minimist": "1.2.3",
209-
"@types/serialize-javascript": "5.0.2",
210-
"@types/tailwindcss": "3.1.0",
211-
"@types/tar": "6.1.6",
212-
"@types/uuid": "9.0.5",
202+
"@types/fs-extra": "^11.0.3",
203+
"@types/js-yaml": "^4.0.8",
204+
"@types/jszip": "^3.4.1",
205+
"@types/lodash.sortby": "^4.7.8",
206+
"@types/lodash.truncate": "^4.4.8",
207+
"@types/minimist": "^1.2.4",
208+
"@types/serialize-javascript": "^5.0.3",
209+
"@types/tailwindcss": "^3.1.0",
210+
"@types/tar": "^6.1.7",
211+
"@types/uuid": "^9.0.6",
213212
"@vitejs/plugin-vue": "4.4.0",
214213
"changelogen": "0.5.5",
215214
"eslint": "8.52.0",

packages/karbon/src/track.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import fsDriver from 'unstorage/drivers/fs'
44
import findCacheDirectory from 'find-cache-dir'
55
import * as Sentry from '@sentry/node'
66
import '@sentry/tracing'
7+
import path from 'pathe'
78
import type { ResourcePage } from './runtime/types'
89

910
export enum EventName {
@@ -122,8 +123,8 @@ async function getAnonymousId(): Promise<string> {
122123
return cachedAnonymousId
123124
}
124125

125-
const thunk = findCacheDirectory({ name: 'storipress', thunk: true })
126-
const cachePath = thunk?.('cli-cache')
126+
const cacheDir = findCacheDirectory({ name: 'storipress' })
127+
const cachePath = cacheDir ? path.join(cacheDir, 'cli-cache') : 'cli-cache'
127128
const storage = createStorage({
128129
driver: fsDriver({ base: cachePath }),
129130
})

packages/playground/package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"destr": "^2.0.2",
3838
"events": "^3.3.0",
3939
"fast-deep-equal": "^3.1.3",
40-
"find-cache-dir": "^4.0.0",
40+
"find-cache-dir": "^5.0.0",
4141
"fs-extra": "^11.1.1",
4242
"graphql": "^16.7.1",
4343
"jose": "^4.14.4",
@@ -74,15 +74,14 @@
7474
"@nuxt/image": "1.0.0-rc.1",
7575
"@nuxtjs/tailwindcss": "6.8.0",
7676
"@rollup/plugin-virtual": "3.0.2",
77-
"@types/find-cache-dir": "3.2.1",
78-
"@types/fs-extra": "11.0.2",
79-
"@types/jszip": "3.4.1",
80-
"@types/lodash.sortby": "4.7.7",
81-
"@types/lodash.truncate": "4.4.7",
82-
"@types/serialize-javascript": "5.0.2",
83-
"@types/tailwindcss": "3.1.0",
84-
"@types/tar": "6.1.6",
85-
"@types/uuid": "9.0.5",
77+
"@types/fs-extra": "^11.0.3",
78+
"@types/jszip": "^3.4.1",
79+
"@types/lodash.sortby": "^4.7.8",
80+
"@types/lodash.truncate": "^4.4.8",
81+
"@types/serialize-javascript": "^5.0.3",
82+
"@types/tailwindcss": "^3.1.0",
83+
"@types/tar": "^6.1.7",
84+
"@types/uuid": "^9.0.6",
8685
"@vitejs/plugin-vue": "4.4.0",
8786
"eslint": "8.52.0",
8887
"eslint-config-prettier": "9.0.0",

0 commit comments

Comments
 (0)