Skip to content
Closed
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
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,36 +23,36 @@
},
"homepage": "https://github.com/sveltejs/kit#readme",
"devDependencies": {
"@changesets/cli": "^2.18.1",
"@playwright/test": "^1.21.0",
"@rollup/plugin-commonjs": "^21.0.1",
"@changesets/cli": "^2.22.0",
"@playwright/test": "^1.22.2",
"@rollup/plugin-commonjs": "^21.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.6",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-replace": "^4.0.0",
"@sveltejs/eslint-config": "github:sveltejs/eslint-config#v5.8.0",
"@svitejs/changesets-changelog-github-compact": "^0.1.1",
"@types/node": "^16.11.36",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"cross-env": "^7.0.3",
"eslint": "^8.3.0",
"eslint-plugin-import": "^2.25.3",
"eslint": "^8.16.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-svelte3": "^4.0.0",
"port-authority": "^2.0.0",
"prettier": "^2.5.0",
"prettier-plugin-svelte": "^2.5.0",
"port-authority": "^2.0.1",
"prettier": "^2.6.2",
"prettier-plugin-svelte": "^2.7.0",
"rimraf": "^3.0.2",
"rollup": "^2.60.2",
"sirv": "^2.0.0",
"rollup": "^2.75.3",
"sirv": "^2.0.2",
"svelte": "^3.48.0",
"svelte-check": "^2.5.0",
"svelte-preprocess": "^4.9.8",
"svelte2tsx": "~0.5.0",
"svelte-check": "^2.7.1",
"svelte-preprocess": "^4.10.6",
"svelte2tsx": "~0.5.10",
"tiny-glob": "^0.2.9",
"turbo": "^1.2.12",
"turbo": "^1.2.14",
"typescript": "~4.7.2",
"uvu": "^0.5.2"
"uvu": "^0.5.3"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script>
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring;
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring = 'potato';

const dispatch = createEventDispatcher();
dispatch('event', true);
const dispatch = createEventDispatcher();
dispatch('event', true);
</script>

<slot {astring} />
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script>
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring;
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring = 'potato';

const dispatch = createEventDispatcher();
dispatch('event', true);
const dispatch = createEventDispatcher();
dispatch('event', true);
</script>

<slot {astring} />
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script>
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring;
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring = 'potato';

const dispatch = createEventDispatcher();
dispatch('event', true);
const dispatch = createEventDispatcher();
dispatch('event', true);
</script>

<slot {astring} />
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/** @typedef {typeof __propDef.slots} TestSlots */
export default class Test extends SvelteComponentTyped<
{
astring: string;
astring?: string;
},
{
event: CustomEvent<any>;
Expand All @@ -24,7 +24,7 @@ export type TestSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from 'svelte';
declare const __propDef: {
props: {
astring: string;
astring?: string;
};
events: {
event: CustomEvent<any>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script>
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring;
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring = 'potato';

const dispatch = createEventDispatcher();
dispatch('event', true);
const dispatch = createEventDispatcher();
dispatch('event', true);
</script>

<slot {astring} />
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script>
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring;
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring = 'potato';

const dispatch = createEventDispatcher();
dispatch('event', true);
const dispatch = createEventDispatcher();
dispatch('event', true);
</script>

<slot {astring} />
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/** @typedef {typeof __propDef.slots} TestSlots */
export default class Test extends SvelteComponentTyped<
{
astring: string;
astring?: string;
},
{
event: CustomEvent<any>;
Expand All @@ -24,7 +24,7 @@ export type TestSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from 'svelte';
declare const __propDef: {
props: {
astring: string;
astring?: string;
};
events: {
event: CustomEvent<any>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script>
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring;
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring = 'potato';

const dispatch = createEventDispatcher();
dispatch('event', true);
const dispatch = createEventDispatcher();
dispatch('event', true);
</script>

<slot {astring} />
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script>
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring;
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring = 'potato';

const dispatch = createEventDispatcher();
dispatch('event', true);
const dispatch = createEventDispatcher();
dispatch('event', true);
</script>

<slot {astring} />
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/** @typedef {typeof __propDef.slots} TestSlots */
export default class Test extends SvelteComponentTyped<
{
astring: string;
astring?: string;
},
{
event: CustomEvent<any>;
Expand All @@ -24,7 +24,7 @@ export type TestSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from 'svelte';
declare const __propDef: {
props: {
astring: string;
astring?: string;
};
events: {
event: CustomEvent<any>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @type {string}
*/
export const astring;
export const astring = 'potato';

const dispatch = createEventDispatcher();
dispatch('event', true);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script>
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring;
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring = 'potato';

const dispatch = createEventDispatcher();
dispatch('event', true);
const dispatch = createEventDispatcher();
dispatch('event', true);
</script>

<slot {astring} />
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/** @typedef {typeof __propDef.slots} TestSlots */
export default class Test extends SvelteComponentTyped<
{
astring: string;
astring?: string;
},
{
event: CustomEvent<any>;
Expand All @@ -24,7 +24,7 @@ export type TestSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from 'svelte';
declare const __propDef: {
props: {
astring: string;
astring?: string;
};
events: {
event: CustomEvent<any>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script>
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring;
import { createEventDispatcher } from 'svelte';
/**
* @type {string}
*/
export const astring = 'potato';

const dispatch = createEventDispatcher();
dispatch('event', true);
const dispatch = createEventDispatcher();
dispatch('event', true);
</script>

<slot {astring} />
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script>
import { createEventDispatcher } from 'svelte';
export const astring;
const dispatch = createEventDispatcher();
dispatch('event', true);
import { createEventDispatcher } from 'svelte';
export const astring = 'potato';
const dispatch = createEventDispatcher();
dispatch('event', true);
</script>

<slot {astring} />
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SvelteComponentTyped } from 'svelte';
declare const __propDef: {
props: {
astring: string;
astring?: string;
};
events: {
event: CustomEvent<boolean>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script>
export let foo;
export let foo;
</script>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts">
import { createEventDispatcher } from 'svelte';
export const astring: string;
import { createEventDispatcher } from 'svelte';
export const astring: string = 'potato';

const dispatch = createEventDispatcher<{ event: boolean }>();
dispatch('event', true);
const dispatch = createEventDispatcher<{ event: boolean }>();
dispatch('event', true);
</script>

<slot {astring} />
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script lang="ts">
import type { Foo } from './foo';
export let foo: Foo;
import type { Foo } from './foo';
export let foo: Foo;
</script>
2 changes: 1 addition & 1 deletion packages/kit/src/packaging/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function format(file, content) {
content = JSON.stringify(json);
}
return prettier.format(content, {
parser: file.endsWith('.svelte') ? 'svelte' : file.endsWith('.json') ? 'json' : 'babel-ts',
parser: file.endsWith('.svelte') ? 'svelte' : file.endsWith('.json') ? 'json' : 'typescript',
plugins: ['prettier-plugin-svelte']
});
}
Expand Down
Loading