mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-21 11:26:15 +02:00
fix(fs): Apply requireLiteralLeadingDot config (#1585)
* fix(fs): Apply requireLiteralLeadingDot config * fix deserialization * reword changefile [skip ci]
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"fs": patch
|
||||
---
|
||||
|
||||
Fixed an issue that caused the plugin to ignore the `requireLiteralLeadingDot` config.
|
||||
@@ -854,7 +854,7 @@ pub fn resolve_path<R: Runtime>(
|
||||
.chain(global_scope.denies().iter().map(|e| e.path.clone()))
|
||||
.chain(command_scope.denies().iter().map(|e| e.path.clone()))
|
||||
.collect(),
|
||||
require_literal_leading_dot: None,
|
||||
require_literal_leading_dot: app.fs_scope().require_literal_leading_dot,
|
||||
},
|
||||
)?;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
use serde::Deserialize;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
#[serde(rename_all = "camelCase", deny_unknown_fields)]
|
||||
pub struct Config {
|
||||
/// Whether or not paths that contain components that start with a `.`
|
||||
/// will require that `.` appears literally in the pattern; `*`, `?`, `**`,
|
||||
|
||||
Reference in New Issue
Block a user