Skip to content

Commit

Permalink
M package-lock.json
Browse files Browse the repository at this point in the history
 M package.json
 M src/__lab.ts
 M src/program/build.ts
  • Loading branch information
NazmusSayad committed Aug 20, 2024
1 parent ebffaaa commit 39902c3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "npmize",
"description": "Let's create an npm package without worrying about anything.",
"version": "1.0.3",
"version": "1.0.4",
"bin": "./dist/index.js",
"scripts": {
"lab": "nodemon ./src/__lab.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/__lab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ console.clear()

import app from './main'

// app.start(['init', '--name', '../npmize-test'])
// app.start(['init', '../npmize-test'])
// app.start(['dev', '../npmize-test', '--node'])
// app.start(['build', '../npmize-test'])
app.start(['build', '../npmize-test'])
3 changes: 2 additions & 1 deletion src/program/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export default function (basePath: string, options: Options) {
console.log(`Build started at ${basePath}`)
console.log('')

cleanDir(options.outDir)

if (options.module) {
runBuild(options.module, basePath, options)
} else {
Expand All @@ -28,7 +30,6 @@ function runBuild(

const tempDir = path.join(basePath, config.tempBuildDir)
cleanDir(tempDir)
cleanDir(options.outDir)

tsc(basePath, [
...options.tsc.map((tsc) => `--${tsc}`),
Expand Down

0 comments on commit 39902c3

Please sign in to comment.