From 20761550209a4f418f0c660b3892e55de2a6696d Mon Sep 17 00:00:00 2001 From: Gearonix Date: Fri, 1 Sep 2023 23:43:38 +0300 Subject: [PATCH] chore: removed scripts from root package.json --- .github/workflows/build.yml | 2 +- .lintstagedrc | 2 +- libs/config/src/tsconfig/paths/second-layer.json | 14 -------------- libs/config/src/tsconfig/paths/third-layer.json | 14 -------------- package.json | 5 +---- .../config/src/tsconfig/paths/second-layer.json | 14 ++++++++++++++ .../config/src/tsconfig/paths/third-layer.json | 14 ++++++++++++++ 7 files changed, 31 insertions(+), 34 deletions(-) delete mode 100644 libs/config/src/tsconfig/paths/second-layer.json delete mode 100644 libs/config/src/tsconfig/paths/third-layer.json create mode 100644 packages/config/src/tsconfig/paths/second-layer.json create mode 100644 packages/config/src/tsconfig/paths/third-layer.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7adeb5e5..5b969fec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ jobs: run: yarn install - name: Creating a Production Build - run: yarn run build + run: yarn dlx nx run-many -t=build -p client server --parallel=8 build-storybook: name: Building and deploying storybook diff --git a/.lintstagedrc b/.lintstagedrc index 3685f0b7..008fac33 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,3 +1,3 @@ { - "*.ts": ["yarn run lint"] + "*.ts": ["yarn dlx nx run-many --targets=lint --all --parallel=8"] } diff --git a/libs/config/src/tsconfig/paths/second-layer.json b/libs/config/src/tsconfig/paths/second-layer.json deleted file mode 100644 index 17d3d4a3..00000000 --- a/libs/config/src/tsconfig/paths/second-layer.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./../base.json", - "compilerOptions": { - "paths": { - "@/*": ["./src/*"], - "@code-gear/api/common": ["../../libs/api/common/src/index.ts"], - "@code-gear/api/services": ["../../libs/api/services/src/index.ts"], - "@code-gear/web/editor": ["../../libs/web/editor/src/app/index.ts"], - "@code-gear/web/shared": ["../../libs/web/shared/src/index.ts"], - "@code-gear/web/ui": ["../../libs/web/ui/src/index.ts"], - "@code-gear/config": ["../../libs/config/src/index.ts"] - } - } -} diff --git a/libs/config/src/tsconfig/paths/third-layer.json b/libs/config/src/tsconfig/paths/third-layer.json deleted file mode 100644 index d3e35a36..00000000 --- a/libs/config/src/tsconfig/paths/third-layer.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./../base.json", - "compilerOptions": { - "paths": { - "@/*": ["./src/*"], - "@code-gear/api/common": ["../../../libs/api/common/src/index.ts"], - "@code-gear/api/services": ["../../../libs/api/services/src/index.ts"], - "@code-gear/web/editor": ["../../../libs/web/editor/src/index.ts"], - "@code-gear/web/shared": ["../../../libs/web/shared/src/index.ts"], - "@code-gear/web/ui": ["../../../libs/web/ui/src/index.ts"], - "@code-gear/config": ["../../../libs/config/src/index.ts"] - } - } -} diff --git a/package.json b/package.json index 36f20ad2..6b2f2950 100644 --- a/package.json +++ b/package.json @@ -25,11 +25,8 @@ } }, "scripts": { - "serve": "nx run-many -t=serve -p client server --parallel=8", - "build": "nx run-many -t=build -p client server --parallel=8", - "lint": "nx run-many --targets=lint --all --parallel=8", - "dep-graph": "nx dep-graph", "preinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('You must use Yarn to install, not NPM')\"", + "dep-graph": "nx dep-graph", "prepare": "husky install", "postinstall": "rimraf node_modules/.cache", "release": "release-it" diff --git a/packages/config/src/tsconfig/paths/second-layer.json b/packages/config/src/tsconfig/paths/second-layer.json new file mode 100644 index 00000000..8602c346 --- /dev/null +++ b/packages/config/src/tsconfig/paths/second-layer.json @@ -0,0 +1,14 @@ +{ + "extends": "./../base.json", + "compilerOptions": { + "paths": { + "@/*": ["./src/*"], + "@code-gear/api/common": ["../../packages/api/common/src/index.ts"], + "@code-gear/api/services": ["../../packages/api/services/src/index.ts"], + "@code-gear/web/editor": ["../../packages/web/editor/src/app/index.ts"], + "@code-gear/web/shared": ["../../packages/web/shared/src/index.ts"], + "@code-gear/web/ui": ["../../packages/web/ui/src/index.ts"], + "@code-gear/config": ["../../packages/config/src/index.ts"] + } + } +} diff --git a/packages/config/src/tsconfig/paths/third-layer.json b/packages/config/src/tsconfig/paths/third-layer.json new file mode 100644 index 00000000..ac803438 --- /dev/null +++ b/packages/config/src/tsconfig/paths/third-layer.json @@ -0,0 +1,14 @@ +{ + "extends": "./../base.json", + "compilerOptions": { + "paths": { + "@/*": ["./src/*"], + "@code-gear/api/common": ["../../../packages/api/common/src/index.ts"], + "@code-gear/api/services": ["../../../packages/api/services/src/index.ts"], + "@code-gear/web/editor": ["../../../packages/web/editor/src/index.ts"], + "@code-gear/web/shared": ["../../../packages/web/shared/src/index.ts"], + "@code-gear/web/ui": ["../../../packages/web/ui/src/index.ts"], + "@code-gear/config": ["../../../packages/config/src/index.ts"] + } + } +}