Skip to content

Commit

Permalink
Hopefully fixed sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 committed Jan 27, 2024
1 parent 56dcd02 commit 9bdcc49
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-rabbits-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vite-plugin-pagefind": patch
---

Fixed pagefind post build not running after the build process
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@
"dist"
],
"scripts": {
"dev": "tsup src/index.ts --format esm --dts --out-dir dist --watch",
"build": "tsup src/index.ts --format esm --dts --out-dir dist",
"dev": "tsc -w",
"build": "tsc",
"format": "prettier --write .",
"release": "pnpm build && changeset publish"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@types/node": "^20.11.8",
"prettier": "3.2.4",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export function pagefind({

return {
name: 'pagefind',
enforce: 'post',
apply: 'build',
configureServer,
closeBundle
};
Expand Down
14 changes: 3 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
{
"display": "Node 20",
"_version": "20.1.0",
"compilerOptions": {
"outDir": "dist",
"lib": ["es2023"],
"module": "node16",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noUncheckedIndexedAccess": true,
"moduleResolution": "node16"
"module": "NodeNext",
"declaration": true,
"declarationMap": true
},
"include": ["./src/index.ts"]
}

0 comments on commit 9bdcc49

Please sign in to comment.