Skip to content

Commit e675f64

Browse files
authored
update turbo (#5060)
* update turbo * fix typechecking * check depends on build * restrict test to packages/* * blurgh
1 parent 4592b76 commit e675f64

File tree

17 files changed

+110
-86
lines changed

17 files changed

+110
-86
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
node-version: ${{ matrix.node-version }}
4545
cache: pnpm
4646
- run: pnpm install --frozen-lockfile
47-
- run: pnpm turbo run test
47+
- run: pnpm test
4848
- name: archive test results
4949
if: failure()
5050
shell: bash

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"scripts": {
77
"build": "turbo run build",
8-
"test": "turbo run test",
8+
"test": "turbo run test --filter=./packages/*",
99
"check": "turbo run check",
1010
"lint": "turbo run lint",
1111
"format": "turbo run format",
@@ -51,7 +51,7 @@
5151
"svelte2tsx": "~0.5.0",
5252
"tiny-glob": "^0.2.9",
5353
"turbo": "^1.2.6",
54-
"typescript": "~4.6.2",
54+
"typescript": "~4.7.2",
5555
"uvu": "^0.5.2"
5656
},
5757
"packageManager": "[email protected]",

packages/kit/test/apps/amp/src/routes/http-equiv/cache-control.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script context="module">
22
export const prerender = true;
33
4-
/** @type {import('./__types/cache-control')} */
4+
/** @type {import('./__types/cache-control').Load} */
55
export function load() {
66
return {
77
cache: {

packages/kit/test/apps/amp/tsconfig.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"compilerOptions": {
3+
"allowJs": true,
4+
"checkJs": true,
35
"noEmit": true,
46
"paths": {
7+
"@sveltejs/kit": ["../../../types"],
58
"$lib": ["src/lib"],
69
"$lib/*": ["src/lib/*"],
710
"types": ["../../../types/internal"]

packages/kit/test/apps/basics/src/routes/load/window-fetch/correct.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script context="module">
2-
/** @type {import('./index').Load} */
2+
/** @type {import('./__types/correct').Load} */
33
export async function load({ url, fetch }) {
44
const res = await fetch(`${url.origin}/load/window-fetch/data.json`);
55
const { answer } = await res.json();

packages/kit/test/apps/basics/src/routes/load/window-fetch/data.json.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @type {import('./data.json').RequestHandler} */
1+
/** @type {import('./__types/data.json').RequestHandler} */
22
export function get() {
33
return {
44
body: {

packages/kit/test/apps/basics/src/routes/load/window-fetch/incorrect.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script context="module">
2-
/** @type {import('./index').Load} */
2+
/** @type {import('./__types/incorrect').Load} */
33
export async function load({ url }) {
44
const res = await fetch(`${url.origin}/load/window-fetch/data.json`);
55
const { answer } = await res.json();
@@ -15,4 +15,4 @@
1515
export let answer;
1616
</script>
1717

18-
<h1>{answer}</h1>
18+
<h1>{answer}</h1>

packages/kit/test/apps/basics/tsconfig.json

+4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
3+
"allowJs": true,
4+
"checkJs": true,
5+
"esModuleInterop": true,
36
"noEmit": true,
47
"paths": {
8+
"@sveltejs/kit": ["../../../types"],
59
"$lib": ["src/lib"],
610
"$lib/*": ["src/lib/*"],
711
"types": ["../../../types/internal"]

packages/kit/test/apps/options-2/tsconfig.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"compilerOptions": {
3+
"allowJs": true,
4+
"checkJs": true,
35
"noEmit": true,
46
"paths": {
7+
"@sveltejs/kit": ["../../../types"],
58
"$lib": ["src/lib"],
69
"$lib/*": ["src/lib/*"],
710
"types": ["../../../types/internal"]

packages/kit/test/apps/options/tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"compilerOptions": {
3+
"allowJs": true,
4+
"checkJs": true,
35
"noEmit": true,
46
"paths": {
57
"$lib": ["source/components"],
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="@sveltejs/kit" />;

packages/kit/test/prerendering/basics/tsconfig.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"compilerOptions": {
3+
"allowJs": true,
4+
"checkJs": true,
35
"noEmit": true,
46
"paths": {
7+
"@sveltejs/kit": ["../../../types"],
58
"$lib": ["src/lib"],
69
"$lib/*": ["src/lib/*"],
710
"types": ["../../../types/internal"]

packages/kit/test/prerendering/options/tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"compilerOptions": {
3+
"allowJs": true,
4+
"checkJs": true,
35
"noEmit": true,
46
"paths": {
57
"$lib": ["src/lib"],
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="@sveltejs/kit" />;

packages/kit/test/prerendering/paths-base/tsconfig.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"compilerOptions": {
3+
"allowJs": true,
4+
"checkJs": true,
35
"noEmit": true,
46
"paths": {
7+
"@sveltejs/kit": ["../../../types"],
58
"$lib": ["src/lib"],
69
"$lib/*": ["src/lib/*"],
710
"types": ["../../../types/internal"]

0 commit comments

Comments
 (0)