Skip to content

Commit

Permalink
[chore] fix type error, remove obsolete entry from turbo config (#8089)
Browse files Browse the repository at this point in the history
(latter hopefully fixes some wrong cache hits)
  • Loading branch information
dummdidumm authored Dec 12, 2022
1 parent 53300c4 commit a5d1825
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
8 changes: 5 additions & 3 deletions packages/kit/src/core/prerender/prerender.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ const [, , client_out_dir, manifest_path, results_path, verbose, env] = process.
prerender();

/**
* @template T
* @template {{message: string}} T
* @template {Omit<T, 'message'>} K
* @param {import('types').Logger} log
* @param {'fail' | 'warn' | 'ignore' | ((details: T) => void)} input
* @param {(details: T) => string} format
* @returns {(details: T) => void}
* @param {(details: K) => string} format
* @returns {(details: K) => void}
*/
function normalise_error_handler(log, input, format) {
switch (input) {
Expand All @@ -41,6 +42,7 @@ function normalise_error_handler(log, input, format) {
case 'ignore':
return () => {};
default:
// @ts-expect-error TS thinks T might be of a different kind, but it's not
return (details) => input({ ...details, message: format(details) });
}
}
Expand Down
12 changes: 1 addition & 11 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"env": ["VERCEL", "ENABLE_VC_BUILD"]
},
"check": {
"dependsOn": ["prepare"],
"inputs": [
"index.js",
"index.d.ts",
"ambient.d.ts",
"src/**",
"source/**",
"types/**",
".svelte-kit/types/**",
".custom-out-dir/types/**",
Expand All @@ -41,16 +41,6 @@
"outputs": [],
"outputMode": "new-only"
},
"prepare": {
"inputs": ["src/**", "source/**"],
"outputs": [
".svelte-kit/types/**",
".svelte-kit/tsconfig.json",
".custom-out-dir/types/**",
".custom-out-dir/tsconfig.json"
],
"outputMode": "new-only"
},
"test": {
"dependsOn": ["^build"],
"outputs": ["coverage/", "test-results/**"],
Expand Down

0 comments on commit a5d1825

Please sign in to comment.