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 30, 2023
1 parent d604a5a commit ab3d655
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 16 deletions.
9 changes: 7 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,12 @@ jobs:
- name: Calculate affected projects
id: affected
run: |
projs=$(traf-nx affected --base=${NX_BASE} --json=true)
# "traf-nx" needs "@daotl/tsconfig" to be present, workaround for "npm install --no-save” error when "package.json"s exist
mv package.json package.json.bk;
npm install --no-save @daotl/tsconfig
mv package.json.bk package.json
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 ab3d655

Please sign in to comment.