sveltekit_helpers.ts view source
(svelte_config_path?: string): Promise<Result<object, { message: string; }>> svelte_config_path
stringSVELTE_CONFIG_FILENAMEreturns
Promise<Result<object, { message: string; }>> 8 declarations
sveltekit_helpers.ts view source
(svelte_config_path?: string): Promise<Result<object, { message: string; }>> svelte_config_pathstringSVELTE_CONFIG_FILENAMEPromise<Result<object, { message: string; }>> sveltekit_helpers.ts view source
(package_json: { [x: string]: unknown; name: string; version: string; private?: boolean | undefined; public?: boolean | undefined; description?: string | undefined; motto?: string | undefined; glyph?: string | undefined; ... 24 more ...; exports?: string | ... 2 more ... | undefined; }, svelte_config?: ParsedSvelteConfig, dep_name?: string): Promise<...> package_json{ [x: string]: unknown; name: string; version: string; private?: boolean | undefined; public?: boolean | undefined; description?: string | undefined; motto?: string | undefined; glyph?: string | undefined; ... 24 more ...; exports?: string | ... 2 more ... | undefined; }svelte_configdefault_svelte_configdep_namestringSVELTE_PACKAGE_DEP_NAMEPromise<Result<object, { message: string; }>> sveltekit_helpers.ts view source
(specifier: string, aliases: [string, string][]): string Map an import specifier with the SvelteKit aliases.
specifierstringaliases[string, string][]string sveltekit_helpers.ts view source
(package_json: { [x: string]: unknown; name: string; version: string; private?: boolean | undefined; public?: boolean | undefined; description?: string | undefined; motto?: string | undefined; glyph?: string | undefined; ... 24 more ...; exports?: string | ... 2 more ... | undefined; }, options: SveltePackageOptions | undefined, cli: string | Cli, log: Logger, pm_cli: string): Promise<...> package_json{ [x: string]: unknown; name: string; version: string; private?: boolean | undefined; public?: boolean | undefined; description?: string | undefined; motto?: string | undefined; glyph?: string | undefined; ... 24 more ...; exports?: string | ... 2 more ... | undefined; }optionsSveltePackageOptions | undefinedclistring | ClilogLoggerpm_clistringPromise<void> sveltekit_helpers.ts view source
(sveltekit_cli?: string | Cli, pm_cli?: string): Promise<void> sveltekit_clistring | CliSVELTEKIT_CLIpm_clistringPM_CLI_DEFAULTPromise<void> sveltekit_helpers.ts view source
(sveltekit_cli?: string | Cli): Promise<void> If the SvelteKit CLI is found and its .svelte-kit directory is not, run svelte-kit sync.
sveltekit_clistring | CliSVELTEKIT_CLIPromise<void> sveltekit_helpers.ts view source
(sveltekit_cli?: string | Cli): Promise<void> If the SvelteKit CLI is found and its .svelte-kit directory is not, run svelte-kit sync.
sveltekit_clistring | CliSVELTEKIT_CLIPromise<void> sveltekit_helpers.ts view source
SveltePackageOptions Options to the SvelteKit packaging CLI.
watchWatch files in src/lib for changes and rebuild the package
booleanwAlias for watch.
booleaninputThe input directory which contains all the files of the package. Defaults to src/lib
stringiAlias for input.
stringoutputThe output directory where the processed files are written to. Your package.json's exports should point to files inside there, and the files array should include that folder. Defaults to dist
stringoAlias for output.
stringtypesWhether or not to create type definitions (d.ts files). We strongly recommend doing this as it fosters ecosystem library quality. Defaults to true
booleantAlias for types.
booleantsconfigThe path to a tsconfig or jsconfig. When not provided, searches for the next upper tsconfig/jsconfig in the workspace path.
string