Skip to content

Commit 296fdee

Browse files
committed
fix(sponsor): fixing sponsor syncing
1 parent d03fc38 commit 296fdee

File tree

9 files changed

+231
-304
lines changed

9 files changed

+231
-304
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@
110110
"isomorphic-git": "1.27.2",
111111
"jsonfile": "6.1.0",
112112
"keyv": "^5.2.2",
113-
"keyv-file": "^5.0.4",
113+
"keyv-file": "^5.1.1",
114114
"lowdb": "7.0.1",
115115
"marked": "4.3.0",
116116
"minimist": "1.2.8",
117117
"p-retry": "6.2.1",
118118
"project-name-generator": "2.1.9",
119119
"quick-score": "^0.2.0",
120-
"replace-in-file": "8.2.0",
120+
"replace-in-file": "8.3.0",
121121
"rimraf": "6.0.1",
122122
"rxjs": "7.8.1",
123123
"safe-stable-stringify": "^2.5.0",
@@ -144,7 +144,7 @@
144144
"tsx": "4.19.2",
145145
"typescript": "5.7.2",
146146
"unzipper": "0.12.3",
147-
"vite": "6.0.3"
147+
"vite": "6.0.4"
148148
},
149149
"ava": {
150150
"environmentVariables": {

pnpm-lock.yaml

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/kit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ let groupScripts = (scripts) => {
15031503
return groupChoices(scripts, {
15041504
groupKey: 'kenv',
15051505
missingGroupName: 'Main',
1506-
order: splitEnvVarIntoArray(process?.env?.KIT_MAIN_ORDER, ['Favorite', 'Main', 'Scriptlets']),
1506+
order: splitEnvVarIntoArray(process?.env?.KIT_MAIN_ORDER, ['Favorite', 'Main', 'Scriptlets', 'Kit']),
15071507

15081508
endOrder: splitEnvVarIntoArray(process?.env?.KIT_MAIN_END_ORDER, ['Apps', 'Pass']),
15091509
recentKey: 'timestamp',

src/core/db.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { JSONFile } from 'lowdb/node'
3131
import type { RestEndpointMethodTypes } from '@octokit/plugin-rest-endpoint-methods'
3232
import type { Keyv } from 'keyv'
3333
import type { DBData, DBKeyOrPath, DBReturnType } from '../types/kit.js'
34+
import { Env } from './enum.js'
3435

3536
export const resolveKenv = (...parts: string[]) => {
3637
if (global.kitScript) {
@@ -402,6 +403,7 @@ export type AppDb = {
402403
export type UserDb = Partial<RestEndpointMethodTypes['users']['getAuthenticated']['response']['data']>
403404

404405
export let setUserJson = async (user: UserDb) => {
406+
await global.cli('set-env-var', 'KIT_LOGIN', user?.login || Env.REMOVE)
405407
await writeJson(userDbPath, user)
406408
}
407409

0 commit comments

Comments
 (0)