nx
nx copied to clipboard
fix(js): use path to `rootDir` when update package.json
fix path when set rootDir

☁️ Nx Cloud Report
CI is running/has finished running commands for commit b9602534d3cd2981f93e174520df98f9b781503e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this branch
✅ Successfully ran 12 targets
nx affected --target=e2e --base=82d43aff18bad0501641926ec518869dba0e16e3 --head=b9602534d3cd2981f93e174520df98f9b781503e --exclude=e2e-storybook,e2e-storybook-angular,e2e-react-native,e2e-detox,e2e-make-angular-cli-faster --parallel=1nx affected --target=test --base=82d43aff18bad0501641926ec518869dba0e16e3 --head=b9602534d3cd2981f93e174520df98f9b781503e --parallel=1nx affected --target=build --base=82d43aff18bad0501641926ec518869dba0e16e3 --head=b9602534d3cd2981f93e174520df98f9b781503e --parallel=3nx-cloud record -- yarn depchecknx affected --target=lint --base=82d43aff18bad0501641926ec518869dba0e16e3 --head=b9602534d3cd2981f93e174520df98f9b781503e --parallel=3nx-cloud record -- yarn nx workspace-lintnx-cloud record -- yarn check-lock-filesnx-cloud record -- yarn check-commitnx-cloud record -- yarn nx format:check --base=82d43aff18bad0501641926ec518869dba0e16e3 --head=b9602534d3cd2981f93e174520df98f9b781503enx-cloud record -- yarn check-importsnx-cloud record -- yarn documentationnx build typedoc-theme
Sent with 💌 from NxCloud.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
| Name | Status | Preview | Updated |
|---|---|---|---|
| nx-dev | ⬜️ Ignored (Inspect) | Oct 12, 2022 at 1:03AM (UTC) |
@xiejay97 Hi, can you rebase from latest?
@xiejay97 Hi, can you rebase from latest?
👌
@xiejay97 Hi again, sorry if I missed it but which issue does this PR solve?
@nartc
The source files in src dir

I add "rootDir": "packages/ui/src" to @nrwl/js:tsc opions and I get output

But path of main field in package.json still depends on projectRoot , it should be ./index.js

https://github.com/DevCloudFE/react-devui/blob/main/packages/ui/project.json
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.