Skip to content

Commit

Permalink
Merge pull request #19 from finsweet/refactor-code-structure
Browse files Browse the repository at this point in the history
Refactor code structure
  • Loading branch information
robertkibet authored Mar 9, 2023
2 parents f1354fd + 38ae80c commit 6725ce4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-clouds-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finsweet/docs-theme': patch
---

fix build script
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/src/index.js
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ typings/
dist

# cache files
/docs/.vitepress/cache
/docs/.vitepress/cache

# built file
/src/index.js
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Production directory
dist/
dist/

# built file
/src/index.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6725ce4

Please sign in to comment.