Commit Graph

3 Commits

Author SHA1 Message Date
Lachlan Collins
7c382c8a8f Fix typescript errors and update packages (#561)
* Add @ts-expect errro

* Fix store type

* Add strictNullChecks

* Remove confusing $layout alias

* Update packages

* Use save-exact

* Update vitest
2023-12-30 21:52:04 +11:00
Lachlan Collins
9d6c7c55dc fix: Script types and a11y warnings (#535)
* Fix Tag.svelte a11y warnings

* Fix types in scripts

* Remove unused CardList.svelte

* Revert "Remove unused CardList.svelte"

This reverts commit acd01fd4fdb57487521de9721e175e9d8d4c72cf.

* Clearer import

* Format
2023-12-21 10:32:57 +11:00
Lachlan Collins
156f65436c feat: Add script to check if packages pass publint (#523)
* Add zod schemas for CI validation

* Require npm field for components.json

* Remove svelte-layout-resizable

* Stricter Zod validation

* Stricter repository field validation

* Implement requested changes

* Add back accidentally removed field

* Move SvelteStore to templates.json

* Update category and tags

* Add script to get npm data

* Add script to get publint data

* Re-run updateNpm.js

* Re-run updatePublint.js

* Implement initial feedback

* Use npm.json data

* Update npm.js

* Switch async/await to then/catch

Co-authored-by: MacFJA <MacFJA@users.noreply.github.com>

* Fix prettier

* Run script

* Re-run updateNpm

* Also read tools.json

* Add @types/node

* Restructure npm.json output

* Fix updatePublint.js

* Display last update on components page

* Add to weekly workflow

* Clarify updating npm data

* Update src/lib/utils/injectNpmData.ts

Co-authored-by: MacFJA <MacFJA@users.noreply.github.com>

* Smaller date font, add version

* Improve error text

* Fix property title

* Move json to lib/data directory

* Fix npm.json path

* Also check tools.json

* Add to automated PR

* Add injectPublintData function

* Update publint

---------

Co-authored-by: MacFJA <MacFJA@users.noreply.github.com>
2023-12-18 13:26:25 +11:00