Skip to content

Commit 04b0f10

Browse files
authored
Merge pull request #1070 from 06kellyjac/fix_type_issue
fix: correct typing for ConfigLoader env
2 parents cfc069c + 3354838 commit 04b0f10

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ jobs:
4545
- name: Install dependencies
4646
run: npm i
4747

48+
# for now only check the types of the server
49+
# tsconfig isn't quite set up right to respect what vite accepts
50+
# for the frontend code
51+
- name: Check Types (Server)
52+
run: npm run check-types:server
53+
4854
- name: Test
4955
id: test
5056
run: |

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"build-lib": "./scripts/build-for-publish.sh",
1515
"restore-lib": "./scripts/undo-build.sh",
1616
"check-types": "tsc",
17+
"check-types:server": "tsc --project tsconfig.publish.json --noEmit",
1718
"test": "NODE_ENV=test ts-mocha './test/**/*.test.js' --exit",
1819
"test-coverage": "nyc npm run test",
1920
"test-coverage-ci": "nyc --reporter=lcovonly --reporter=text npm run test",

src/config/ConfigLoader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ export class ConfigLoader extends EventEmitter {
317317
cwd: process.cwd(),
318318
env: {
319319
// dont wait for credentials; the command should be sufficiently authed
320-
GIT_TERMINAL_PROMPT: 0,
320+
// https://git-scm.com/docs/git#Documentation/git.txt-codeGITTERMINALPROMPTcode
321+
GIT_TERMINAL_PROMPT: 'false',
321322
...process.env,
322323
...(source.auth?.type === 'ssh'
323324
? {

0 commit comments

Comments
 (0)