Skip to content

Commit

Permalink
remove runes option
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryB432 committed Sep 27, 2024
1 parent c8e88b2 commit a13eb1a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion src/sveltekit-component/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 0 additions & 5 deletions src/sveltekit-component/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
"projectRoot": {
"type": "string",
"description": "Svelte App root directory"
},
"runes": {
"type": "boolean",
"description": "Use runes for reactivitty",
"default": true
}
},
"additionalProperties": false,
Expand Down
3 changes: 1 addition & 2 deletions src/sveltekit-route/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ function normalizeOptions(o: Options): Required<Options> {
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'))) {
Expand Down
5 changes: 0 additions & 5 deletions src/sveltekit-route/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit a13eb1a

Please sign in to comment.