diff --git a/.changeset/rude-clouds-begin.md b/.changeset/rude-clouds-begin.md new file mode 100644 index 0000000..85bed8c --- /dev/null +++ b/.changeset/rude-clouds-begin.md @@ -0,0 +1,5 @@ +--- +'@finsweet/docs-theme': patch +--- + +fix build script diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..8c2ee1e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/index.js \ No newline at end of file diff --git a/.gitignore b/.gitignore index 83a0e18..313d6af 100644 --- a/.gitignore +++ b/.gitignore @@ -28,4 +28,7 @@ typings/ dist # cache files -/docs/.vitepress/cache \ No newline at end of file +/docs/.vitepress/cache + +# built file +/src/index.js \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index 1d1be0d..25388df 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,5 @@ # Production directory -dist/ \ No newline at end of file +dist/ + +# built file +/src/index.js diff --git a/package.json b/package.json index 96d19cc..3f130b7 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "src" ], "scripts": { - "build": "tsc --noEmit", + "build": "tsc", "lint": "eslint --ignore-path .gitignore ./src && prettier --check ./src", "lint:fix": "eslint --ignore-path .gitignore ./src --fix", "check": "tsc --noEmit", diff --git a/src/index.ts b/src/index.ts index c6379d3..e6e83f0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,7 +24,6 @@ const generateGithubVersions = async (repositoryName: string, limit = 5) => { const versions = await response.json(); - // get the most recent 5 updates const recentUpdates = versions.slice(0, limit).map((version: GithubVersion) => { return { text: version.name,