Skip to content

Commit 0164638

Browse files
committed
Update vite config
1 parent 679e971 commit 0164638

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
"build": "tsc && vite build && terser dest/simple-jekyll-search.js -o dest/simple-jekyll-search.min.js",
1616
"prebuild": "yarn run test",
1717
"postbuild": "node scripts/stamp.js < dest/simple-jekyll-search.min.js > dest/simple-jekyll-search.min.js.tmp && mv dest/simple-jekyll-search.min.js.tmp dest/simple-jekyll-search.min.js && yarn run copy-example-code",
18+
"copy-example-code": "cp dest/simple-jekyll-search.min.js docs/assets/js/",
1819
"test": "vitest run --coverage",
1920
"test:watch": "vitest",
2021
"start": "cd docs; jekyll serve",
21-
"copy-example-code": "cp dest/simple-jekyll-search.min.js docs/assets/js/",
2222
"start:docs": "cd docs && bundle exec jekyll serve"
2323
},
2424
"repository": {

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default defineConfig({
77
lib: {
88
entry: resolve(__dirname, 'src/index.ts'),
99
name: 'SimpleJekyllSearch',
10-
fileName: (format) => `simple-jekyll-search${format === 'es' ? '.mjs' : '.js'}`,
10+
fileName: (_format) => 'simple-jekyll-search.js',
1111
formats: ['umd'],
1212
},
1313
minify: false,

0 commit comments

Comments
 (0)