Skip to content

Commit

Permalink
Cleaned up tsup config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 committed Jan 27, 2024
1 parent d911925 commit 30debb4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .changeset/short-balloons-jam.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"vite-plugin-pagefind": patch
'vite-plugin-pagefind': patch
---

Fixed hardcoded buildDir
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@

### Patch Changes

- 04163e9: Added cwd option that defaults to process.cwd, added default to buildDir: build
- 04163e9: Added cwd option that defaults to process.cwd, added default to buildDir: build

## 0.0.4

### Patch Changes

- 93731cd: Bugfix: Had colorette as devDep causing issues with the plugin
- 93731cd: Bugfix: Had colorette as devDep causing issues with the plugin

## 0.0.3

### Patch Changes

- 2f8a075: Only packaging dist files now
- 2f8a075: Only packaging dist files now

## 0.0.2

### Patch Changes

- a969687: Released package
- a969687: Released package
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"dist"
],
"scripts": {
"dev": "tsup src/index.ts --format esm --dts-resolve --dts --watch",
"build": "tsup src/index.ts --format esm --dts-resolve --dts --minify --out-dir dist",
"dev": "tsup src/index.ts --format esm --dts --out-dir dist --watch",
"build": "tsup src/index.ts --format esm --dts --out-dir dist",
"format": "prettier --write .",
"release": "pnpm build && changeset publish"
},
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ function log(input: string) {
console.log(`${green('[vite-plugin-pagefind]')} ${input}`);
}

type PagefindConfig = {
export type PagefindConfig = {
pagefindDir: string;
buildDir?: string;
cwd?: string;
};

export default function ({
export function pagefind({
pagefindDir,
buildDir = 'build',
cwd = process.cwd()
Expand Down

0 comments on commit 30debb4

Please sign in to comment.