Skip to content

Commit

Permalink
Add a clean script to remove the dist directory before building
Browse files Browse the repository at this point in the history
* Add a `clean` script to `package.json`
* Update the `build` script to run the `clean` script first

Remove commented-out code in `modal.tsx`

* Remove commented-out eslint-disable lines at the top of the file
  • Loading branch information
NateIsern committed Nov 26, 2024
1 parent 41fefcc commit c2a41fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"dist"
],
"scripts": {
"clean": "rm -rf dist",
"build:scss": "sass src:temp",
"copy:css": "ncp temp dist",
"build:ts": "tsc",
"build": "npm run build:scss && npm run build:ts && npm run copy:css",
"build": "npm run clean && npm run build:scss && npm run build:ts && npm run copy:css",
"test": "jest",
"lint": "eslint src/**/*.{ts,tsx}"
},
Expand Down Expand Up @@ -56,4 +57,4 @@
"zod": "^3.23.8",
"zustand": "^4.5.5"
}
}
}
3 changes: 0 additions & 3 deletions src/components/elements/modal/components/modal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-disable jsx-a11y/no-static-element-interactions */
/* eslint-disable jsx-a11y/click-events-have-key-events */
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
"use client";
import { motion } from "framer-motion";
import React, { useCallback, useLayoutEffect, useRef } from "react";
Expand Down

0 comments on commit c2a41fd

Please sign in to comment.