starlight-obsidian 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/index.ts +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# starlight-obsidian
|
|
2
2
|
|
|
3
|
+
## 0.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#72](https://github.com/HiDeoo/starlight-obsidian/pull/72) [`daada18`](https://github.com/HiDeoo/starlight-obsidian/commit/daada18956b50ea84dd52045ca54016860e5823e) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Improves the error message logged when the plugin configuration is invalid.
|
|
8
|
+
|
|
3
9
|
## 0.12.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/index.ts
CHANGED
|
@@ -75,7 +75,7 @@ const starlightObsidianConfigSchema = z.object({
|
|
|
75
75
|
return label !== '' && label !== '.' && !label.startsWith('..')
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
|
|
78
|
+
error: "The `output` directory cannot be empty, '.', or start with '..'.",
|
|
79
79
|
},
|
|
80
80
|
),
|
|
81
81
|
/**
|
|
@@ -163,7 +163,10 @@ function makeStarlightObsidianPlugin(
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
throwUserError(
|
|
166
|
-
`
|
|
166
|
+
`Invalid starlight-obsidian configuration:
|
|
167
|
+
|
|
168
|
+
${z.prettifyError(parsedConfig.error)}
|
|
169
|
+
`,
|
|
167
170
|
)
|
|
168
171
|
}
|
|
169
172
|
|