Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📦 Version Update #596

Merged
merged 3 commits into from
Oct 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/brown-onions-smile.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quiet-buses-film.md

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# houdini

## 0.16.8

### 🐛 Fixes

- [#595](https://github.com/HoudiniGraphql/houdini/pull/595) [`3421404`](https://github.com/HoudiniGraphql/houdini/commit/3421404e58697bc8e066d3f0b2d9c74c77c0318a) Thanks [@AlecAivazis](https://github.com/AlecAivazis)! - Don't consider the schema path as an source for generation

- [#594](https://github.com/HoudiniGraphql/houdini/pull/594) [`4ee9db3`](https://github.com/HoudiniGraphql/houdini/commit/4ee9db312c8ef9db3244bcd2f10f877d596e6f8d) Thanks [@AlecAivazis](https://github.com/AlecAivazis)! - Fixed bug preventing documents from being discovered on windows

## 0.16.7

### 🐛 Fixes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "houdini",
"version": "0.16.7",
"version": "0.16.8",
"description": "The disappearing graphql client for SvelteKit",
"type": "module",
"bin": "./build/cmd.js",
Expand Down
13 changes: 12 additions & 1 deletion src/cmd/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,18 @@ async function collectDocuments(config: Config): Promise<CollectedGraphQLDocumen
.flat()
.filter((filepath) => config.includeFile(filepath))
// don't include the schema path as a source file
.filter((filepath) => !config.schemaPath || !minimatch(filepath, config.schemaPath))
.filter((filepath) => {
const prefix = config.schemaPath?.startsWith('./') ? './' : ''

return (
!config.schemaPath ||
!minimatch(
prefix +
path.relative(config.projectRoot, filepath).replaceAll('\\', '/'),
config.schemaPath
)
)
})
),
]

Expand Down