-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
baa52cf
commit cf59f8d
Showing
4 changed files
with
16 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,11 @@ | ||
// @ts-check | ||
|
||
import { packagesSchema, templatesSchema, resourcesSchema } from '../src/lib/schemas.js'; | ||
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 books from '../src/routes/resources/books.json' assert { type: 'json' }; | ||
import extensions from '../src/routes/resources/extensions.json' assert { type: 'json' }; | ||
import misc from '../src/routes/resources/misc.json' assert { type: 'json' }; | ||
import videos from '../src/routes/resources/videos.json' assert { type: 'json' }; | ||
|
||
packagesSchema.parse(packages); | ||
console.log('Validated packages.json'); | ||
|
||
templatesSchema.parse(templates); | ||
console.log('Validated templates.json'); | ||
|
||
resourcesSchema.parse(books); | ||
console.log('Validated books.json'); | ||
|
||
resourcesSchema.parse(extensions); | ||
console.log('Validated extensions.json'); | ||
|
||
resourcesSchema.parse(misc); | ||
console.log('Validated misc.json'); | ||
|
||
resourcesSchema.parse(videos); | ||
console.log('Validated videos.json'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters