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 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
- message: "The `output` directory cannot be empty, '.', or start with '..'.",
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
- `The provided plugin configuration is invalid.\n${parsedConfig.error.issues.map((issue) => issue.message).join('\n')}`,
166
+ `Invalid starlight-obsidian configuration:
167
+
168
+ ${z.prettifyError(parsedConfig.error)}
169
+ `,
167
170
  )
168
171
  }
169
172
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starlight-obsidian",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "license": "MIT",
5
5
  "description": "Starlight plugin to publish Obsidian vaults.",
6
6
  "author": "HiDeoo <github@hideoo.dev> (https://hideoo.dev)",