Skip to content

Commit

Permalink
Fix type definition for stopwords (#525)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Diebold <florian.diebold@orbitlabs.de>
  • Loading branch information
flodiebold and Florian Diebold authored Nov 7, 2023
1 parent df68fac commit 14f9063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stopwords/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function compile(lang, jsExtension, tsExtension, moduleType) {
await writeFile(resolve(destinationDir, `${lang}.${jsExtension}.map`), minified.map, 'utf-8')

// Create the definition file
await writeFile(resolve(destinationDir, `${lang}.d.${tsExtension}`), 'export type stopwords = string[]', 'utf-8')
await writeFile(resolve(destinationDir, `${lang}.d.${tsExtension}`), 'export const stopwords: string[]', 'utf-8')
}

async function main() {
Expand Down

1 comment on commit 14f9063

@vercel
Copy link

@vercel vercel bot commented on 14f9063 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.