From 7b09bb35ce9e2587c4a3afc3bf86080152d55de3 Mon Sep 17 00:00:00 2001 From: GuilhermeSantos001 Date: Sat, 22 Apr 2023 08:36:06 -0300 Subject: [PATCH] build(project-build): update project build scripts --- package.json | 5 +++-- setup/build-package.sh | 9 ++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index ab1e35d..184c55a 100755 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/setup/build-package.sh b/setup/build-package.sh index 37ba768..e6c13c0 100644 --- a/setup/build-package.sh +++ b/setup/build-package.sh @@ -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;\ @@ -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;\ @@ -67,7 +67,6 @@ yarn build echo "Cleaning up..." rm -rf dist/src -rm dist/tsconfig.build.tsbuildinfo rm index.ts echo "Package built."