Skip to content

Commit

Permalink
Misc packaging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Sep 5, 2024
1 parent 32d78f7 commit 0102fae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"scripts": {
"lint": "eslint --report-unused-disable-directives --max-warnings 0",
"prebuild": "rimraf dist esm",
"build:esm": "tsc --target es2018 --outDir esm --module es2020",
"build:es5": "tsc --target es5 --outDir dist --module commonjs",
"build:esm": "tsc --target esnext --outDir esm",
"build:es5": "tsc --target es2015 --outDir dist --module commonjs",
"build": "npm run build:esm && npm run build:es5",
"preversion": "npm run lint && npm test run && npm run build",
"postversion": "git push --follow-tags",
Expand Down
18 changes: 4 additions & 14 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,11 @@ function uniqBy<T>(a: T[], key: (elt: T) => string) {
}

export default class Trix {
private ixFile: GenericFilehandle

private ixxFile: GenericFilehandle

maxResults: number

constructor(
ixxFile: GenericFilehandle,
ixFile: GenericFilehandle,
maxResults = 20,
) {
this.ixFile = ixFile
this.ixxFile = ixxFile
this.maxResults = maxResults
}
public ixxFile: GenericFilehandle,
public ixFile: GenericFilehandle,
public maxResults = 20,
) {}

async search(searchString: string, opts?: { signal?: AbortSignal }) {
let resultArr = [] as [string, string][]
Expand Down

0 comments on commit 0102fae

Please sign in to comment.