From a13eb1a3f44372d41e398d672357787be3466e36 Mon Sep 17 00:00:00 2001 From: Gary Bortosky Date: Fri, 27 Sep 2024 12:59:31 -0500 Subject: [PATCH] remove runes option --- src/sveltekit-component/index.ts | 1 - src/sveltekit-component/schema.json | 5 ----- src/sveltekit-route/index.ts | 3 +-- src/sveltekit-route/schema.json | 5 ----- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/sveltekit-component/index.ts b/src/sveltekit-component/index.ts index 5619e61..704b315 100644 --- a/src/sveltekit-component/index.ts +++ b/src/sveltekit-component/index.ts @@ -37,7 +37,6 @@ function normalizeOptions(options: Options): Options { } export default function (options: Options): Rule { - if (!options.runes) throw new Error('only runes mode is supported'); const opts = normalizeOptions(options); const directory = opts.directory ?? 'lib/components'; const projectRoot = (opts.projectRoot ?? '.') as Path; diff --git a/src/sveltekit-component/schema.json b/src/sveltekit-component/schema.json index 9b62f2c..f46f303 100644 --- a/src/sveltekit-component/schema.json +++ b/src/sveltekit-component/schema.json @@ -33,11 +33,6 @@ "projectRoot": { "type": "string", "description": "Svelte App root directory" - }, - "runes": { - "type": "boolean", - "description": "Use runes for reactivitty", - "default": true } }, "additionalProperties": false, diff --git a/src/sveltekit-route/index.ts b/src/sveltekit-route/index.ts index a24e892..82271f0 100644 --- a/src/sveltekit-route/index.ts +++ b/src/sveltekit-route/index.ts @@ -40,11 +40,10 @@ function normalizeOptions(o: Options): Required { const endpoint = o.endpoint ?? false; const skipTests = o.skipTests ?? false; const projectRoot = o.projectRoot ?? '.'; - return { ...o, path, style, skipTests, endpoint, projectRoot, runes: true }; + return { ...o, path, style, skipTests, endpoint, projectRoot }; } export default function (opts: Options): Rule { - if (!opts.runes) throw new Error('only runes mode is supported'); return async (tree: Tree, context: SchematicContext) => { const options = normalizeOptions(opts); if (!tree.exists(join(options.projectRoot as Path, 'svelte.config.js'))) { diff --git a/src/sveltekit-route/schema.json b/src/sveltekit-route/schema.json index 836cfa0..e8028bf 100644 --- a/src/sveltekit-route/schema.json +++ b/src/sveltekit-route/schema.json @@ -49,11 +49,6 @@ }, "description": "The path to your project root, relative to the current workspace. Default is workingDirectory", "visible": false - }, - "runes": { - "type": "boolean", - "description": "Use runes for reactivitty", - "default": true } }, "required": ["name"]