Skip to content

Commit

Permalink
build method updated
Browse files Browse the repository at this point in the history
  • Loading branch information
NazmusSayad committed Aug 22, 2024
1 parent 69d2a15 commit c690b3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions build.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const shelljs = require('shelljs')
const fs = require('fs')

fs.rmSync('./dist', { recursive: true, force: true })
shelljs.exec('tsc')
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"version": "1.0.9",
"bin": "./dist/index.js",
"scripts": {
"lab": "nodemon ./src/__lab.ts",
"dev": "tsc -w",
"build": "tsc"
"build": "node ./build.cjs",
"lab": "nodemon ./src/__lab.ts"
},
"type": "commonjs",
"dependencies": {
Expand Down

0 comments on commit c690b3b

Please sign in to comment.