diff --git a/src/constants.ts b/src/runtime/constants.ts similarity index 100% rename from src/constants.ts rename to src/runtime/constants.ts diff --git a/src/runtime/internal/scheduler.ts b/src/runtime/internal/scheduler.ts index 0e2c3a417d..b36185d9d2 100644 --- a/src/runtime/internal/scheduler.ts +++ b/src/runtime/internal/scheduler.ts @@ -1,6 +1,6 @@ import { run_all } from './utils'; import { set_current_component } from './lifecycle'; -import { resolved_promise } from '../../constants'; +import { resolved_promise } from '../constants'; export const dirty_components = []; export const intros = { enabled: false }; diff --git a/src/runtime/internal/transitions.ts b/src/runtime/internal/transitions.ts index ded0a657be..e0d19709c0 100644 --- a/src/runtime/internal/transitions.ts +++ b/src/runtime/internal/transitions.ts @@ -5,7 +5,7 @@ import { create_rule, delete_rule } from './style_manager'; import { custom_event } from './dom'; import { add_render_callback } from './scheduler'; import { TransitionConfig } from '../transition'; -import { resolved_promise } from '../../constants'; +import { resolved_promise } from '../constants'; let promise: Promise|null; diff --git a/src/runtime/motion/spring.ts b/src/runtime/motion/spring.ts index 5de2604706..c4eb6d2856 100644 --- a/src/runtime/motion/spring.ts +++ b/src/runtime/motion/spring.ts @@ -1,7 +1,7 @@ import { Readable, writable } from 'svelte/store'; import { loop, now, Task } from 'svelte/internal'; import { is_date } from './utils'; -import { resolved_promise } from '../../constants'; +import { resolved_promise } from '../constants'; interface TickContext { inv_mass: number; diff --git a/src/runtime/motion/tweened.ts b/src/runtime/motion/tweened.ts index f40bc7e81b..cccfb9c0fc 100644 --- a/src/runtime/motion/tweened.ts +++ b/src/runtime/motion/tweened.ts @@ -2,7 +2,7 @@ import { Readable, writable } from 'svelte/store'; import { assign, is_function, loop, now, Task } from 'svelte/internal'; import { linear } from 'svelte/easing'; import { is_date } from './utils'; -import { resolved_promise } from '../../constants'; +import { resolved_promise } from '../constants'; function get_interpolator(a, b) { if (a === b || a !== a) return () => a; diff --git a/src/runtime/tsconfig.json b/src/runtime/tsconfig.json index a58a02f42b..f3b4691b41 100644 --- a/src/runtime/tsconfig.json +++ b/src/runtime/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig.json", - "include": [".", "../constants.ts"], + "include": ["."], "compilerOptions": { "lib": ["es2015", "dom", "dom.iterable"],