Skip to content

Commit

Permalink
feat: Add ts-reset (t3-oss#1234)
Browse files Browse the repository at this point in the history
Co-authored-by: Julius Marminge <julius0216@outlook.com>
  • Loading branch information
drewradcliff and juliusmarminge authored Feb 27, 2023
1 parent d964125 commit 992180c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
},
"checkJs": true
},
"include": ["src", "tsup.config.ts"]
"include": ["src", "tsup.config.ts", "../reset.d.ts"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.0",
"@manypkg/cli": "^0.20.0",
"@total-typescript/ts-reset": "^0.3.7",
"@types/eslint": "^8.21.1",
"@types/node": "^18.14.0",
"@types/prettier": "^2.7.2",
Expand Down
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions reset.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "@total-typescript/ts-reset";
2 changes: 1 addition & 1 deletion www/src/utils/fetchGithub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const fetchGithub = async (url: string, opts: Options) => {
},
});

const data = (await res.json()) as unknown;
const data = await res.json();

if (!res.ok) {
const msg = `Request to fetch ${url} failed. Reason: ${res.statusText}
Expand Down
3 changes: 2 additions & 1 deletion www/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
".eslintrc.cjs",
"**/*.js",
"**/*.cjs",
"**/*.mjs"
"**/*.mjs",
"../reset.d.ts"
]
}

0 comments on commit 992180c

Please sign in to comment.