Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangsihu committed Jul 28, 2024
1 parent 02543d3 commit 24fc9ce
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"main": "dist/index.js",
"type": "module",
"scripts": {
"start": "npm run clean:no-log && node .",
"start": "npm run clean && node .",
"db:push": "npx prisma db push",
"db:migrate": "npx prisma migrate dev --name init",
"build": "tsc --project tsconfig.json",
"clean": "node ./scripts/clean.js && npm run build",
"clean:no-log": "node ./scripts/clean-no-log.js && npm run build",
"lint": "biome lint --write src/",
"format": "biome format --write src/"
},
Expand Down
16 changes: 0 additions & 16 deletions scripts/clean-no-log.js

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ import { rm } from "node:fs/promises";
import { resolve } from "node:path";

async function clean() {
console.log("Cleaning dist folder...");
try {
const path = resolve("dist");
if (existsSync(path)) {
await rm(path, { recursive: true, force: true });
console.log("Dist folder has been cleaned");
} else {
console.log("Dist folder does not exist");
}
} catch (error) {
console.error("Error while cleaning dist folder:", error);
Expand Down

0 comments on commit 24fc9ce

Please sign in to comment.