@nera-static/plugin-search 1.0.0 → 1.0.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
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.1] - 2025-07-25
9
+
10
+ ### Added
11
+ - missing script to publish templates
12
+
13
+ ### Fix
14
+ - publish templates command
15
+
16
+
8
17
  ## [1.0.0] - 2025-07-25
9
18
 
10
19
  ### Added
@@ -18,4 +27,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
27
  - Allows multiple search inputs per page via `[data-search-input]` selectors
19
28
  - Provides `publish-template` command to copy `search.pug` for customization
20
29
  - Comprehensive test suite to validate index generation and file handling
21
-
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+
3
+ import path from 'path'
4
+ import { fileURLToPath } from 'url'
5
+ import { publishAllTemplates } from '@nera-static/plugin-utils'
6
+
7
+ const __dirname = path.dirname(fileURLToPath(import.meta.url))
8
+ const pluginName = 'plugin-search'
9
+ const sourceDir = path.resolve(__dirname, '../views/')
10
+
11
+ const result = publishAllTemplates({
12
+ pluginName,
13
+ sourceDir,
14
+ expectedPackageName: 'dummy', // for test-only override
15
+ })
16
+
17
+ process.exit(result ? 0 : 1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nera-static/plugin-search",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A plugin for the Nera static site generator that builds a JSON search index and provides a client-side search script.",
5
5
  "main": "index.js",
6
6
  "scripts": {