Skip to content

Commit a8d6425

Browse files
committed
Revert "regenerate tsconfig when routes change"
This reverts commit 536634c.
1 parent 5410409 commit a8d6425

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/kit/src/core/dev/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { print_config_conflicts } from '../config/index.js';
66
import { SVELTE_KIT } from '../constants.js';
77
import { copy_assets, get_aliases, runtime } from '../utils.js';
88
import { create_plugin } from './plugin.js';
9+
import { generate_tsconfig } from '../tsconfig.js';
910

1011
/**
1112
* @typedef {{
@@ -22,6 +23,8 @@ import { create_plugin } from './plugin.js';
2223
export async function dev({ cwd, port, host, https, config }) {
2324
copy_assets(`${SVELTE_KIT}/runtime`);
2425

26+
generate_tsconfig(config);
27+
2528
const [vite_config] = deep_merge(
2629
{
2730
server: {

packages/kit/src/core/dev/plugin.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { get_mime_lookup, resolve_entry, runtime } from '../utils.js';
1212
import { coalesce_to_error } from '../../utils/error.js';
1313
import { load_template } from '../config/index.js';
1414
import { sequence } from '../../hooks.js';
15-
import { generate_tsconfig } from '../tsconfig.js';
1615

1716
/**
1817
* @param {import('types').ValidatedConfig} config
@@ -46,7 +45,6 @@ export async function create_plugin(config, cwd) {
4645
const manifest_data = create_manifest_data({ config, cwd });
4746

4847
create_app({ config, manifest_data, cwd });
49-
generate_tsconfig(config);
5048

5149
manifest = {
5250
appDir: config.kit.appDir,

0 commit comments

Comments
 (0)