9023ed3ef9
humanizer 2.2.0 -> 2.9.1 (blader/humanizer, MIT): adds a Voice Calibration section and a passive-voice pattern, reworks negative parallelisms and em dashes. Version moved to metadata.version upstream. impeccable 3.6.0 -> 4.0.4 (pbakaus/impeccable, Apache-2.0): the repo tags the skill and the npm CLI separately, so 3.6.0 was a real release and npm's 3.5.0 was never the comparison. Adds native-platform reference briefs. Each now carries an UPSTREAM file; bin/check-vendored.sh reports drift.
72 lines
1.8 KiB
JavaScript
72 lines
1.8 KiB
JavaScript
/**
|
|
* SvelteKit registry entry.
|
|
*
|
|
* Detection and the apply/remove pair are the existing adapter's
|
|
* (`../sveltekit-adapter.mjs`); this file only declares them to the registry
|
|
* and names the artifacts the journal has to be able to heal.
|
|
*/
|
|
|
|
import {
|
|
SVELTE_LAYOUT_MARKER_OPEN,
|
|
SVELTE_LIVE_ROOT_COMPONENT,
|
|
applySvelteKitLiveAdapter,
|
|
detectSvelteKitProject,
|
|
removeSvelteKitLiveAdapter,
|
|
unpatchSvelteLayout,
|
|
} from '../sveltekit-adapter.mjs';
|
|
|
|
export const sveltekit = {
|
|
name: 'sveltekit',
|
|
|
|
detect(cwd, config) {
|
|
return detectSvelteKitProject(cwd, config);
|
|
},
|
|
|
|
inject: {
|
|
kind: 'adapter',
|
|
|
|
apply({ cwd, port, token, config }) {
|
|
return applySvelteKitLiveAdapter({ cwd, port, token, config });
|
|
},
|
|
|
|
remove({ cwd, config }) {
|
|
return removeSvelteKitLiveAdapter({ cwd, config });
|
|
},
|
|
|
|
// The generated root component and the `src/lib/impeccable/` runtime paths
|
|
// are already in the static LIVE_IGNORE_PATTERNS list, so nothing extra.
|
|
ignorePatterns() {
|
|
return [];
|
|
},
|
|
|
|
artifacts({ project }) {
|
|
return [
|
|
{
|
|
kind: 'created',
|
|
path: SVELTE_LIVE_ROOT_COMPONENT,
|
|
marker: 'impeccable-live-root',
|
|
pruneTo: 'src',
|
|
},
|
|
{
|
|
kind: 'patched',
|
|
path: project?.layoutFile || 'src/routes/+layout.svelte',
|
|
patch: 'sveltekit-layout',
|
|
markers: [SVELTE_LAYOUT_MARKER_OPEN],
|
|
},
|
|
];
|
|
},
|
|
|
|
unpatch: {
|
|
'sveltekit-layout': unpatchSvelteLayout,
|
|
},
|
|
},
|
|
|
|
source: {
|
|
extensions: ['.svelte'],
|
|
// Svelte resets component-local state on markup HMR updates, so variants
|
|
// are mounted from generated components rather than written into the route.
|
|
preview: 'component',
|
|
commentSyntax: 'html',
|
|
},
|
|
};
|