Skip to content

Commit

Permalink
ci(root): switch back to official @traf/nx with --includeFiles option…
Browse files Browse the repository at this point in the history
… for package.json,nx.json,project.json
  • Loading branch information
NexZhu committed Dec 29, 2023
1 parent d604a5a commit 03b3fcf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 16 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
with:
version: 8
run_install: |
- args: [--global, zx, '@daotl/traf-[email protected].17-2']
- args: [--global, zx, '@traf/nx@^0.0.21']
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand All @@ -61,7 +61,10 @@ jobs:
- name: Calculate affected projects
id: affected
run: |
projs=$(traf-nx affected --base=${NX_BASE} --json=true)
find . -wholename '*/package.json' ! -wholename '*/node_modules/*' ! -wholename */.nx/* | xargs -I'{}' sh -c 'mv {} {}.bk'
pnpm -r exec npm install --no-save @daotl/tsconfig
find . -wholename '*/package.json.bk' ! -wholename '*/node_modules/*' ! -wholename */.nx/* | xargs -I'{}' sh -c 'p={}; mv {} ${p::-3}'
projs=$(traf-nx affected --base=${NX_BASE} --includeFiles=../package.json,../nx.json,../project.json --json=true)
projs=${projs#[}
projs=${projs%]}
projs=$(echo ${projs} | sed -e 's/\"//g')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@nx/vite": "17.1.3",
"@swc-node/register": "~1.6.8",
"@swc/core": "~1.3.101",
"@traf/nx": "npm:@daotl/traf-nx@0.0.17-2",
"@traf/nx": "^0.0.21",
"@tsconfig/esm": "^1.0.5",
"@tsconfig/node20": "^20.1.2",
"@tsconfig/strictest": "^2.0.2",
Expand Down
36 changes: 23 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 03b3fcf

Please sign in to comment.