Skip to content

Commit

Permalink
Update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
andyaiken committed Mar 8, 2024
1 parent 95ceb35 commit e78aa86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
node_modules

**/.DS_Store
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"lint": "npx eslint src --ext .ts,.tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"predeploy": "tsc && vite build",
"deploy": "gh-pages -d build"
"deploy": "gh-pages -d dist"
},
"eslintConfig": {
"extends": [
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class Utils {
};

static debounce = (func: () => void, delay = 500) => {
let timeout: NodeJS.Timeout;
let timeout: number;
return () => {
clearTimeout(timeout);
timeout = setTimeout(func, delay);
Expand Down

0 comments on commit e78aa86

Please sign in to comment.