Skip to content

Commit

Permalink
Merge branch 'main' of github.com:jycouet/kitql
Browse files Browse the repository at this point in the history
  • Loading branch information
jycouet committed Sep 17, 2024
2 parents b0fe6ca + a3d166d commit fb72b81
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 7 deletions.
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"eighty-teachers-behave",
"empty-coats-repeat",
"hungry-garlics-play",
"lemon-ghosts-applaud",
"little-rules-whisper",
"nasty-years-obey",
"spicy-rice-mix",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/tasty-horses-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'vite-plugin-kit-routes': patch
---

Doesn't generate when +page.svelte is saved (only create or delete)
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ body:
- annoyance
- serious, but I can work around it
- blocking an upgrade
- blocking all usage of Houdini
- blocking all usage of KitQL
validations:
required: true

Expand Down
11 changes: 11 additions & 0 deletions packages/eslint-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# eslint-config-kitql

## 0.4.0-next.6

### Patch Changes

- [`6f047c7`](https://github.com/jycouet/kitql/commit/6f047c78afcf389651697e754d42dfff18c22976)
Thanks [@jycouet](https://github.com/jycouet)! - fix
https://github.com/sweepline/eslint-plugin-unused-imports/issues/100

- Updated dependencies []:
- @kitql/helpers@0.8.10

## 0.4.0-next.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kitql/eslint-config",
"version": "0.4.0-next.5",
"version": "0.4.0-next.6",
"type": "module",
"description": "opinionated linting and formatting for projects",
"repository": {
Expand Down
19 changes: 14 additions & 5 deletions packages/vite-plugin-kit-routes/src/lib/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ ${objTypes

// report things
if (shouldLog('post_update_run', options)) {
child.stdout.on('data', (data) => {
child.stderr.on('data', (data) => {
if (data.toString()) {
log.info(data.toString())
}
Expand All @@ -1006,7 +1006,7 @@ ${objTypes

// report errors
if (shouldLog('errors', options)) {
child.stderr.on('data', (data) => {
child.stderr.on('error', (data) => {
const msg = data.toString().replace(/\n$/, '')
if (msg.includes('DEP0040') && msg.includes('punycode')) {
// silent error
Expand Down Expand Up @@ -1046,7 +1046,6 @@ function theEnd(
log.success(`${yellow(options.generated_file_path)} updated`)
}
}

if (atStart && shouldLog('stats', options)) {
let version = ''
try {
Expand Down Expand Up @@ -1127,9 +1126,19 @@ export function kitRoutes<T extends RouteMappings = RouteMappings>(
// Run the thing when any change in a +page.svelte (add, remove, ...)
watchAndRun([
{
name: 'kit-routes-watch',
name: 'kit-routes-watch-svelte-files',
logs: [],
watchKind: ['add', 'unlink'],
watch: ['**/+page.svelte'],
run: async () => {
await run(false, options)
},
},

{
name: 'kit-routes-watch-server-files',
logs: [],
watch: ['**/+page.svelte', '**/+page.server.ts', '**/+server.ts'],
watch: ['**/+page.server.ts', '**/+server.ts'],
run: async () => {
await run(false, options)
},
Expand Down

0 comments on commit fb72b81

Please sign in to comment.