mirror of
https://github.com/LukeHagar/sveltesociety.dev.git
synced 2025-12-07 12:47:45 +00:00
feat: Submitted data restructure (#533)
* Merge tools into components and resources * Rename components to packages * Format * Redirect with code 302 * Fix text on submitting page * Validate misc.json, format * Permanent redirects * Implement feedback for resources * Fix lint * Improve updateNpm.js types * Fix repo links
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
// @ts-check
|
||||
|
||||
import { componentsSchema, templatesSchema, toolsSchema } from '../src/lib/schemas.js';
|
||||
import components from '../src/routes/components/components.json' assert { type: 'json' };
|
||||
import { packagesSchema, templatesSchema } from '../src/lib/schemas.js';
|
||||
import packages from '../src/routes/packages/packages.json' assert { type: 'json' };
|
||||
import templates from '../src/routes/templates/templates.json' assert { type: 'json' };
|
||||
import tools from '../src/routes/tools/tools.json' assert { type: 'json' };
|
||||
|
||||
componentsSchema.parse(components);
|
||||
console.log('Validated components.json');
|
||||
packagesSchema.parse(packages);
|
||||
console.log('Validated packages.json');
|
||||
|
||||
templatesSchema.parse(templates);
|
||||
console.log('Validated templates.json');
|
||||
|
||||
toolsSchema.parse(tools);
|
||||
console.log('Validated tools.json');
|
||||
|
||||
Reference in New Issue
Block a user