Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update turbo #5060

Merged
merged 5 commits into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm turbo run test
- run: pnpm test
- name: archive test results
if: failure()
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"scripts": {
"build": "turbo run build",
"test": "turbo run test",
"test": "turbo run test --filter=./packages/*",
"check": "turbo run check",
"lint": "turbo run lint",
"format": "turbo run format",
Expand Down Expand Up @@ -51,7 +51,7 @@
"svelte2tsx": "~0.5.0",
"tiny-glob": "^0.2.9",
"turbo": "^1.2.6",
"typescript": "~4.6.2",
"typescript": "~4.7.2",
"uvu": "^0.5.2"
},
"packageManager": "[email protected]",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script context="module">
export const prerender = true;

/** @type {import('./__types/cache-control')} */
/** @type {import('./__types/cache-control').Load} */
export function load() {
return {
cache: {
Expand Down
3 changes: 3 additions & 0 deletions packages/kit/test/apps/amp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"noEmit": true,
"paths": {
"@sveltejs/kit": ["../../../types"],
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"],
"types": ["../../../types/internal"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script context="module">
/** @type {import('./index').Load} */
/** @type {import('./__types/correct').Load} */
export async function load({ url, fetch }) {
const res = await fetch(`${url.origin}/load/window-fetch/data.json`);
const { answer } = await res.json();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('./data.json').RequestHandler} */
/** @type {import('./__types/data.json').RequestHandler} */
export function get() {
return {
body: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script context="module">
/** @type {import('./index').Load} */
/** @type {import('./__types/incorrect').Load} */
export async function load({ url }) {
const res = await fetch(`${url.origin}/load/window-fetch/data.json`);
const { answer } = await res.json();
Expand All @@ -15,4 +15,4 @@
export let answer;
</script>

<h1>{answer}</h1>
<h1>{answer}</h1>
4 changes: 4 additions & 0 deletions packages/kit/test/apps/basics/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"noEmit": true,
"paths": {
"@sveltejs/kit": ["../../../types"],
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"],
"types": ["../../../types/internal"]
Expand Down
3 changes: 3 additions & 0 deletions packages/kit/test/apps/options-2/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"noEmit": true,
"paths": {
"@sveltejs/kit": ["../../../types"],
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"],
"types": ["../../../types/internal"]
Expand Down
2 changes: 2 additions & 0 deletions packages/kit/test/apps/options/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"noEmit": true,
"paths": {
"$lib": ["source/components"],
Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/prerendering/basics/src/app.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="@sveltejs/kit" />;
3 changes: 3 additions & 0 deletions packages/kit/test/prerendering/basics/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"noEmit": true,
"paths": {
"@sveltejs/kit": ["../../../types"],
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"],
"types": ["../../../types/internal"]
Expand Down
2 changes: 2 additions & 0 deletions packages/kit/test/prerendering/options/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"noEmit": true,
"paths": {
"$lib": ["src/lib"],
Expand Down
1 change: 1 addition & 0 deletions packages/kit/test/prerendering/paths-base/src/app.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="@sveltejs/kit" />;
3 changes: 3 additions & 0 deletions packages/kit/test/prerendering/paths-base/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"noEmit": true,
"paths": {
"@sveltejs/kit": ["../../../types"],
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"],
"types": ["../../../types/internal"]
Expand Down
Loading