Move SvelteKit to subfolder
SvelteKit moved to subfolder for sake of compartimentalization.
This commit is contained in:
parent
073296a90b
commit
c8d2640fea
25 changed files with 467 additions and 1 deletions
263
packages/.svelte-kit/ambient.d.ts
vendored
Normal file
263
packages/.svelte-kit/ambient.d.ts
vendored
Normal file
|
@ -0,0 +1,263 @@
|
|||
|
||||
// this file is generated — do not edit it
|
||||
|
||||
|
||||
/// <reference types="@sveltejs/kit" />
|
||||
|
||||
/**
|
||||
* Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private), this module cannot be imported into client-side code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured).
|
||||
*
|
||||
* _Unlike_ [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination.
|
||||
*
|
||||
* ```ts
|
||||
* import { API_KEY } from '$env/static/private';
|
||||
* ```
|
||||
*
|
||||
* Note that all environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
|
||||
*
|
||||
* ```
|
||||
* MY_FEATURE_FLAG=""
|
||||
* ```
|
||||
*
|
||||
* You can override `.env` values from the command line like so:
|
||||
*
|
||||
* ```bash
|
||||
* MY_FEATURE_FLAG="enabled" npm run dev
|
||||
* ```
|
||||
*/
|
||||
declare module '$env/static/private' {
|
||||
export const NVM_INC: string;
|
||||
export const COREPACK_ROOT: string;
|
||||
export const npm_package_devDependencies_prettier: string;
|
||||
export const TERM_PROGRAM: string;
|
||||
export const npm_package_devDependencies_eslint_plugin_svelte: string;
|
||||
export const NODE: string;
|
||||
export const NVM_CD_FLAGS: string;
|
||||
export const npm_package_devDependencies_prettier_plugin_svelte: string;
|
||||
export const INIT_CWD: string;
|
||||
export const SHELL: string;
|
||||
export const TERM: string;
|
||||
export const npm_package_devDependencies_vite: string;
|
||||
export const TMPDIR: string;
|
||||
export const HOMEBREW_REPOSITORY: string;
|
||||
export const RIPGREP_CONFIG_PATH: string;
|
||||
export const npm_package_scripts_lint: string;
|
||||
export const TERM_PROGRAM_VERSION: string;
|
||||
export const npm_package_scripts_dev: string;
|
||||
export const TERM_SESSION_ID: string;
|
||||
export const npm_package_devDependencies__sveltejs_kit: string;
|
||||
export const npm_config_registry: string;
|
||||
export const ZSH: string;
|
||||
export const npm_package_devDependencies_globals: string;
|
||||
export const USER: string;
|
||||
export const NVM_DIR: string;
|
||||
export const LS_COLORS: string;
|
||||
export const COMMAND_MODE: string;
|
||||
export const npm_package_devDependencies_mdsvex: string;
|
||||
export const PNPM_SCRIPT_SRC_DIR: string;
|
||||
export const SSH_AUTH_SOCK: string;
|
||||
export const __CF_USER_TEXT_ENCODING: string;
|
||||
export const npm_package_devDependencies_eslint: string;
|
||||
export const TERM_FEATURES: string;
|
||||
export const npm_execpath: string;
|
||||
export const PAGER: string;
|
||||
export const FZF_DEFAULT_OPTS: string;
|
||||
export const npm_package_devDependencies_svelte: string;
|
||||
export const LSCOLORS: string;
|
||||
export const npm_config_frozen_lockfile: string;
|
||||
export const PATH: string;
|
||||
export const TERMINFO_DIRS: string;
|
||||
export const FZF_COMPLETION_TRIGGER: string;
|
||||
export const npm_config_engine_strict: string;
|
||||
export const __CFBundleIdentifier: string;
|
||||
export const PWD: string;
|
||||
export const npm_command: string;
|
||||
export const JAVA_HOME: string;
|
||||
export const npm_package_scripts_preview: string;
|
||||
export const EDITOR: string;
|
||||
export const npm_lifecycle_event: string;
|
||||
export const LANG: string;
|
||||
export const npm_package_name: string;
|
||||
export const npm_package_devDependencies__sveltejs_vite_plugin_svelte: string;
|
||||
export const ITERM_PROFILE: string;
|
||||
export const NODE_PATH: string;
|
||||
export const npm_package_scripts_build: string;
|
||||
export const XPC_FLAGS: string;
|
||||
export const npm_package_devDependencies_vitest: string;
|
||||
export const FZF_COMPLETION_OPTS: string;
|
||||
export const NVM_LAZY_LOAD: string;
|
||||
export const npm_package_devDependencies_eslint_config_prettier: string;
|
||||
export const npm_config_node_gyp: string;
|
||||
export const XPC_SERVICE_NAME: string;
|
||||
export const npm_package_version: string;
|
||||
export const npm_package_devDependencies__sveltejs_adapter_auto: string;
|
||||
export const COLORFGBG: string;
|
||||
export const HOME: string;
|
||||
export const SHLVL: string;
|
||||
export const PYENV_SHELL: string;
|
||||
export const npm_package_type: string;
|
||||
export const npm_package_scripts_test: string;
|
||||
export const LC_TERMINAL_VERSION: string;
|
||||
export const HOMEBREW_PREFIX: string;
|
||||
export const ITERM_SESSION_ID: string;
|
||||
export const LOGNAME: string;
|
||||
export const LESS: string;
|
||||
export const npm_package_scripts_format: string;
|
||||
export const VISUAL: string;
|
||||
export const npm_lifecycle_script: string;
|
||||
export const FZF_DEFAULT_COMMAND: string;
|
||||
export const NVM_BIN: string;
|
||||
export const npm_config_user_agent: string;
|
||||
export const HOMEBREW_CELLAR: string;
|
||||
export const INFOPATH: string;
|
||||
export const DISPLAY: string;
|
||||
export const LC_TERMINAL: string;
|
||||
export const npm_package_devDependencies__types_eslint: string;
|
||||
export const COLORTERM: string;
|
||||
export const npm_package_scripts_test_unit: string;
|
||||
export const npm_node_execpath: string;
|
||||
export const NODE_ENV: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar to [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
||||
*
|
||||
* Values are replaced statically at build time.
|
||||
*
|
||||
* ```ts
|
||||
* import { PUBLIC_BASE_URL } from '$env/static/public';
|
||||
* ```
|
||||
*/
|
||||
declare module '$env/static/public' {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://svelte.dev/docs/kit/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured).
|
||||
*
|
||||
* This module cannot be imported into client-side code.
|
||||
*
|
||||
* Dynamic environment variables cannot be used during prerendering.
|
||||
*
|
||||
* ```ts
|
||||
* import { env } from '$env/dynamic/private';
|
||||
* console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE);
|
||||
* ```
|
||||
*
|
||||
* > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
|
||||
*/
|
||||
declare module '$env/dynamic/private' {
|
||||
export const env: {
|
||||
NVM_INC: string;
|
||||
COREPACK_ROOT: string;
|
||||
npm_package_devDependencies_prettier: string;
|
||||
TERM_PROGRAM: string;
|
||||
npm_package_devDependencies_eslint_plugin_svelte: string;
|
||||
NODE: string;
|
||||
NVM_CD_FLAGS: string;
|
||||
npm_package_devDependencies_prettier_plugin_svelte: string;
|
||||
INIT_CWD: string;
|
||||
SHELL: string;
|
||||
TERM: string;
|
||||
npm_package_devDependencies_vite: string;
|
||||
TMPDIR: string;
|
||||
HOMEBREW_REPOSITORY: string;
|
||||
RIPGREP_CONFIG_PATH: string;
|
||||
npm_package_scripts_lint: string;
|
||||
TERM_PROGRAM_VERSION: string;
|
||||
npm_package_scripts_dev: string;
|
||||
TERM_SESSION_ID: string;
|
||||
npm_package_devDependencies__sveltejs_kit: string;
|
||||
npm_config_registry: string;
|
||||
ZSH: string;
|
||||
npm_package_devDependencies_globals: string;
|
||||
USER: string;
|
||||
NVM_DIR: string;
|
||||
LS_COLORS: string;
|
||||
COMMAND_MODE: string;
|
||||
npm_package_devDependencies_mdsvex: string;
|
||||
PNPM_SCRIPT_SRC_DIR: string;
|
||||
SSH_AUTH_SOCK: string;
|
||||
__CF_USER_TEXT_ENCODING: string;
|
||||
npm_package_devDependencies_eslint: string;
|
||||
TERM_FEATURES: string;
|
||||
npm_execpath: string;
|
||||
PAGER: string;
|
||||
FZF_DEFAULT_OPTS: string;
|
||||
npm_package_devDependencies_svelte: string;
|
||||
LSCOLORS: string;
|
||||
npm_config_frozen_lockfile: string;
|
||||
PATH: string;
|
||||
TERMINFO_DIRS: string;
|
||||
FZF_COMPLETION_TRIGGER: string;
|
||||
npm_config_engine_strict: string;
|
||||
__CFBundleIdentifier: string;
|
||||
PWD: string;
|
||||
npm_command: string;
|
||||
JAVA_HOME: string;
|
||||
npm_package_scripts_preview: string;
|
||||
EDITOR: string;
|
||||
npm_lifecycle_event: string;
|
||||
LANG: string;
|
||||
npm_package_name: string;
|
||||
npm_package_devDependencies__sveltejs_vite_plugin_svelte: string;
|
||||
ITERM_PROFILE: string;
|
||||
NODE_PATH: string;
|
||||
npm_package_scripts_build: string;
|
||||
XPC_FLAGS: string;
|
||||
npm_package_devDependencies_vitest: string;
|
||||
FZF_COMPLETION_OPTS: string;
|
||||
NVM_LAZY_LOAD: string;
|
||||
npm_package_devDependencies_eslint_config_prettier: string;
|
||||
npm_config_node_gyp: string;
|
||||
XPC_SERVICE_NAME: string;
|
||||
npm_package_version: string;
|
||||
npm_package_devDependencies__sveltejs_adapter_auto: string;
|
||||
COLORFGBG: string;
|
||||
HOME: string;
|
||||
SHLVL: string;
|
||||
PYENV_SHELL: string;
|
||||
npm_package_type: string;
|
||||
npm_package_scripts_test: string;
|
||||
LC_TERMINAL_VERSION: string;
|
||||
HOMEBREW_PREFIX: string;
|
||||
ITERM_SESSION_ID: string;
|
||||
LOGNAME: string;
|
||||
LESS: string;
|
||||
npm_package_scripts_format: string;
|
||||
VISUAL: string;
|
||||
npm_lifecycle_script: string;
|
||||
FZF_DEFAULT_COMMAND: string;
|
||||
NVM_BIN: string;
|
||||
npm_config_user_agent: string;
|
||||
HOMEBREW_CELLAR: string;
|
||||
INFOPATH: string;
|
||||
DISPLAY: string;
|
||||
LC_TERMINAL: string;
|
||||
npm_package_devDependencies__types_eslint: string;
|
||||
COLORTERM: string;
|
||||
npm_package_scripts_test_unit: string;
|
||||
npm_node_execpath: string;
|
||||
NODE_ENV: string;
|
||||
[key: `PUBLIC_${string}`]: undefined;
|
||||
[key: `${string}`]: string | undefined;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar to [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
||||
*
|
||||
* Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead.
|
||||
*
|
||||
* Dynamic environment variables cannot be used during prerendering.
|
||||
*
|
||||
* ```ts
|
||||
* import { env } from '$env/dynamic/public';
|
||||
* console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE);
|
||||
* ```
|
||||
*/
|
||||
declare module '$env/dynamic/public' {
|
||||
export const env: {
|
||||
[key: `PUBLIC_${string}`]: string | undefined;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue