Skip to content

Commit

Permalink
build(project-build): update project build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhermeSantos001 committed Apr 22, 2023
1 parent ad98896 commit 7b09bb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@
"update": "npx yarn upgrade-interactive --latest",
"clean": "rimraf coverage dist tmp",
"prebuild": "rimraf dist",
"build:pkg": "yarn test && make build-package",
"build": "nest build && tscpaths -p tsconfig.json -s ./ -o ./dist && yarn copy:assets",
"type-check": "tsc --noEmit",
"type-check": "tsc --project tsconfig.build.json --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"libs/**/*.ts\"",
"start": "nest start",
Expand All @@ -84,7 +85,7 @@
"start:prod": "yarn migrate-deploy && node dist/main",
"migrate-deploy": "yarn prisma migrate deploy",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "NODE_ENV=test node -r dotenv/config $(which jest) --detectOpenHandles --forceExit --no-cache",
"test": "NODE_ENV=test node -r dotenv/config $(which jest) --detectOpenHandles --forceExit --no-cache --runTestsByPath ./libs/*/**/*spec*",
"test:watch": "NODE_ENV=test node -r dotenv/config $(which jest) --watchAll --detectOpenHandles --forceExit --no-cache",
"test:cov": "NODE_ENV=test node -r dotenv/config $(which jest) --coverage --detectOpenHandles --forceExit --no-cache",
"test:debug": "NODE_ENV=test node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
Expand Down
9 changes: 4 additions & 5 deletions setup/build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export { FilesModule } from '@app/files'\n;\
export { FilesService } from '@app/files'\n;\
export { HypercModule } from '@app/hyperc'\n;\
export { HypercService } from '@app/hyperc'\n;\
export { I18nModule } from '@app/i18n'\n;\
export { I18nService } from '@app/i18n'\n;\
export { i18nModule } from '@app/i18n'\n;\
export { i18nService } from '@app/i18n'\n;\
export { JsonWebTokenModule } from '@app/json-web-token'\n;\
export { JsonWebTokenService } from '@app/json-web-token'\n;\
export { LocalPathModule } from '@app/localpath'\n;\
Expand All @@ -48,8 +48,8 @@ export { PrivateKeysModule } from '@app/private-keys'\n;\
export { PrivateKeysService } from '@app/private-keys'\n;\
export { PropStringModule } from '@app/prop-string'\n;\
export { PropStringService } from '@app/prop-string'\n;\
export { RandomStringModule } from '@app/random'\n;\
export { RandomStringService } from '@app/random'\n;\
export { RandomModule } from '@app/random'\n;\
export { RandomService } from '@app/random'\n;\
export { SchedulesModule } from '@app/schedules'\n;\
export { SchedulesService } from '@app/schedules'\n;\
export { SimilarityFilterModule } from '@app/similarity-filter'\n;\
Expand All @@ -67,7 +67,6 @@ yarn build

echo "Cleaning up..."
rm -rf dist/src
rm dist/tsconfig.build.tsbuildinfo
rm index.ts

echo "Package built."

0 comments on commit 7b09bb3

Please sign in to comment.