Skip to content

Commit

Permalink
🩹 fix(none): fix tsconfig.json complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
kellymears committed Jun 27, 2024
1 parent 242c8cc commit 3334789
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sources/@roots/bud/config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"target": "ES6",
"target": "esnext",
"types": [
"node",
"@roots/bud-api",
Expand Down
8 changes: 2 additions & 6 deletions tests/reproductions/issue-2574/bud.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { sep } from 'node:path'
import {sep} from 'node:path'

import {bud} from '@roots/bud'

const path = bud.path(`..`, `..`, `..`, `.git`, `HEAD`)

const head = (await bud.fs.read(path))
?.toString()
.split(sep)
.pop()
.trim()
const head = (await bud.fs.read(path))?.toString().split(sep).pop().trim()

bud.fs
.setCredentials({
Expand Down
1 change: 0 additions & 1 deletion tests/reproductions/issue-2574/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"extends": "@roots/bud/config/tsconfig.json",
"target": "esnext",
"compilerOptions": {
"types": ["node", "@roots/bud"]
},
Expand Down

0 comments on commit 3334789

Please sign in to comment.