Skip to content

Commit 88ad548

Browse files
committed
refactor: wip
1 parent 7acb65b commit 88ad548

File tree

5 files changed

+11
-31
lines changed

5 files changed

+11
-31
lines changed

.env.local

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Local development environment variables
2+
# Copy this to .env.local (gitignored) and customize for your setup
3+
4+
# Enable tsx for TypeScript execution in Nx
5+
# This allows running local generator/executor directly as .ts files without pre-compilation
6+
# This allowes the local plugins to import files with .js extensions (same as the packages in the repository)
7+
NODE_OPTIONS=--import tsx
8+
# This is used to resolve the paths in the local generator/executor so local packages can be imported as path aliases
9+
TSX_TSCONFIG_PATH=tsconfig.base.json

.github/workflows/ci.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ jobs:
2929
- name: Install dependencies
3030
run: npm ci
3131
- name: Check formatting of affected files
32-
env:
33-
NODE_OPTIONS: --import tsx
34-
TSX_TSCONFIG_PATH: ${{ github.workspace }}/tsconfig.base.json
3532
run: npx nx format:check
3633

3734
lint:
@@ -52,9 +49,6 @@ jobs:
5249
- name: Install dependencies
5350
run: npm ci
5451
- name: Lint affected projects
55-
env:
56-
NODE_OPTIONS: --import tsx
57-
TSX_TSCONFIG_PATH: ${{ github.workspace }}/tsconfig.base.json
5852
run: npx nx affected -t lint --parallel=3
5953

6054
unit-test:
@@ -79,9 +73,6 @@ jobs:
7973
- name: Install dependencies
8074
run: npm ci
8175
- name: Unit test affected projects
82-
env:
83-
NODE_OPTIONS: --import tsx
84-
TSX_TSCONFIG_PATH: ${{ github.workspace }}/tsconfig.base.json
8576
run: npx nx affected -t unit-test --parallel=3
8677

8778
integration-test:
@@ -106,9 +97,6 @@ jobs:
10697
- name: Install dependencies
10798
run: npm ci
10899
- name: Integration test affected projects
109-
env:
110-
NODE_OPTIONS: --import tsx
111-
TSX_TSCONFIG_PATH: ${{ github.workspace }}/tsconfig.base.json
112100
run: npx nx affected -t int-test --parallel=3
113101

114102
e2e:
@@ -133,10 +121,7 @@ jobs:
133121
- name: Install dependencies
134122
run: npm ci
135123
- name: E2E test affected projects
136-
env:
137-
NODE_OPTIONS: --import tsx
138-
TSX_TSCONFIG_PATH: ${{ github.workspace }}/tsconfig.base.json
139-
run: npx nx affected -t e2e-test --parallel=1 --verbose
124+
run: npx nx affected -t e2e-test --parallel=1
140125

141126
build:
142127
runs-on: ubuntu-latest
@@ -156,9 +141,6 @@ jobs:
156141
- name: Install dependencies
157142
run: npm ci
158143
- name: Build all projects # affected is not used to be able to test-releae packages
159-
env:
160-
NODE_OPTIONS: --import tsx
161-
TSX_TSCONFIG_PATH: ${{ github.workspace }}/tsconfig.base.json
162144
run: npx nx run-many --target=build --parallel=3
163145
- name: Test-release packages
164146
run: npx pkg-pr-new publish "packages/**/dist"

.github/workflows/coverage.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ jobs:
2424
run: npm ci
2525
- name: List packages using Nx CLI
2626
id: list-packages
27-
env:
28-
NODE_OPTIONS: --import tsx
29-
TSX_TSCONFIG_PATH: ${{ github.workspace }}/tsconfig.base.json
3027
run: |
3128
matrix=$(node tools/scripts/create-codecov-matrix.js)
3229
echo "matrix=$matrix" >> $GITHUB_OUTPUT
@@ -51,9 +48,6 @@ jobs:
5148
- name: Install dependencies
5249
run: npm ci
5350
- name: Execute tests with coverage
54-
env:
55-
NODE_OPTIONS: --import tsx
56-
TSX_TSCONFIG_PATH: ${{ github.workspace }}/tsconfig.base.json
5751
run: npx nx run ${{ matrix.project }}:${{ matrix.target }}
5852
- name: Upload coverage reports to Codecov
5953
uses: codecov/codecov-action@v4

.github/workflows/publish.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,4 @@ jobs:
4242
- name: Install dependencies
4343
run: npm ci
4444
- name: Publish packages to npm
45-
env:
46-
NODE_OPTIONS: --import tsx
47-
TSX_TSCONFIG_PATH: ${{ github.workspace }}/tsconfig.base.json
4845
run: npx nx release publish

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ jobs:
4646
- name: Install dependencies
4747
run: npm ci
4848
- name: Version, release and generate changelog
49+
run: npx nx release --skip-publish
4950
env:
50-
NODE_OPTIONS: --import tsx
51-
TSX_TSCONFIG_PATH: ${{ github.workspace }}/tsconfig.base.json
5251
GH_TOKEN: ${{ steps.app-token.outputs.token }}
53-
run: npx nx release --skip-publish

0 commit comments

Comments
 (0)