Skip to content

Commit

Permalink
fix: handling os commands differently for windows and linux (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
KostaD02 authored Sep 18, 2023
1 parent 202647b commit e85670c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
],
"scripts": {
"build": "nest build",
"build:doc": "build-doc.sh",
"build:doc": "./build-doc.sh",
"build:doc:windows": "build-doc.sh",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "node dist/main",
"start:dev": "nest start --watch",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function bootstrap() {
SwaggerModule.setup('docs/swagger', app, document);

// Builds mdbook documentation in dist/docs
cp.exec('npm run build:doc');
cp.exec(`npm run build:doc${process.platform === 'win32' ? ':windows' : ''}`);

await app.listen(process.env.PORT || 3000);
}
Expand Down

0 comments on commit e85670c

Please sign in to comment.