diff --git a/README.md b/README.md index 474ecb2..4ce9abb 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ pnpm install -D @jstors/farm-plugin-yaml export default defineConfig({ plugins: [ - 'farm-plugin-yaml', + '@jstors/farm-plugin-yaml', ] }); diff --git a/package.json b/package.json index e53fba2..60eb7a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jstors/farm-plugin-yaml", - "version": "0.0.2", + "version": "0.0.3", "main": "scripts/index.js", "types": "scripts/index.d.ts", "type": "module", diff --git a/src/lib.rs b/src/lib.rs index 3a5952a..48379fc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,7 +31,7 @@ impl Plugin for FarmPluginYaml { _context: &std::sync::Arc, _hook_context: &farmfe_core::plugin::PluginHookContext, ) -> farmfe_core::error::Result> { - if param.resolved_path.ends_with(".yaml") { + if param.resolved_path.ends_with(".yaml") || param.resolved_path.ends_with(".yml") { return Ok(Some(PluginLoadHookResult { content: fs::read_file_utf8(param.resolved_path)?, module_type: ModuleType::Custom("yaml".to_string()),