René's URL Explorer Experiment


Title: fix: support running from outside the project with --path by rigor789 · Pull Request #6182 · NativeScript/nativescript-cli · GitHub

Open Graph Title: fix: support running from outside the project with --path by rigor789 · Pull Request #6182 · NativeScript/nativescript-cli

X Title: fix: support running from outside the project with --path by rigor789 · Pull Request #6182 · NativeScript/nativescript-cli

Description: What is the current behavior? Running the CLI from outside the project with --path fails in two ways: npm 12 install failure: --force, or a missing dependency, makes the CLI run npm install with its own options turned into flags. npm 12 rejects unknown flags, so ns debug ios --path apps/app --force stops with EUNKNOWNCONFIG: Unknown cli flag: --path. Missing native sources: ios.NativeSource paths resolve against the working directory rather than the project. A path like ../../libs/native/**/*.swift matches nothing from the repo root, so the generated project gets an empty group and the build fails on missing types. What is the new behavior? path, frameworkPath, disableNpmInstall and ignoreScripts are no longer passed to package managers as flags. ignoreScripts still reaches them as --ignore-scripts. NativeSource globs and folders resolve against the project. A glob no longer ends up literally in HEADER_SEARCH_PATHS, where it matches nothing. The folders of the headers it matches are added instead, and a glob with no headers adds none. Upgrade note: a project already prepared from outside its folder keeps its empty group, and neither prepare nor --force fills it in. Regenerate the platform to pick up the sources. Testing Adds unit tests for both fixes. On a demo app with a NativeSource glob, run from outside the project: main left the group empty, and with this change the file was added with the right path after regenerating the platform. ns run ios --path --force installs, builds and launches with npm 12. ns debug ios --path apps/ns-console-tablet --force runs on a real monorepo app, on top of the stack ending at #6181. Independent of that stack, so it can land at any time. Summary by CodeRabbit Bug Fixes Package-manager options no longer pass project-specific settings as command-line flags; supported package-manager options continue to be passed through. iOS native-source folders and globs now resolve relative to the project directory, regardless of the current working directory. Header search paths are derived from matching header files, and header and module-map checks use the resolved source location.

Open Graph Description: What is the current behavior? Running the CLI from outside the project with --path fails in two ways: npm 12 install failure: --force, or a missing dependency, makes the CLI run npm install with i...

X Description: What is the current behavior? Running the CLI from outside the project with --path fails in two ways: npm 12 install failure: --force, or a missing dependency, makes the CLI run npm install with i...

Opengraph URL: https://github.com/NativeScript/nativescript-cli/pull/6182

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:88800752-f7f9-e788-67ef-49646b97e22a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE060:2D96F1:18A3C8D:20873FD:6B013F6D
html-safe-nonce52f8c60c8292ca79e6feb1ff0efb9c045eecf325d5ac98532495ce38c705a0a5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDYwOjJEOTZGMToxOEEzQzhEOjIwODczRkQ6NkIwMTNGNkQiLCJ2aXNpdG9yX2lkIjoiNzg5ODM3NzE3NDc0OTYyNjIyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca5e09f9099d3e41fe351f6c3d29814ace452672c441cd80adf06847fad566c18
hovercard-subject-tagpull_request:5090786387
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/nativescript-cli/pull/6182/files
twitter:imagehttps://avatars.githubusercontent.com/u/879060?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/879060?s=400&v=4
og:image:altWhat is the current behavior? Running the CLI from outside the project with --path fails in two ways: npm 12 install failure: --force, or a missing dependency, makes the CLI run npm install with i...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id21347346
octolytics-dimension-repository_nwoNativeScript/nativescript-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21347346
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/nativescript-cli/pull/6182/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fpull%2F6182%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fpull%2F6182%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fnativescript-cli
Reloadhttps://github.com/NativeScript/nativescript-cli/pull/6182/files
Reloadhttps://github.com/NativeScript/nativescript-cli/pull/6182/files
Reloadhttps://github.com/NativeScript/nativescript-cli/pull/6182/files
NativeScripthttps://github.com/NativeScript
nativescript-clihttps://github.com/NativeScript/nativescript-cli
Codehttps://github.com/NativeScript/nativescript-cli
Issues357 (357)https://github.com/NativeScript/nativescript-cli/issues
Pull requests37 (37)https://github.com/NativeScript/nativescript-cli/pulls
Actionshttps://github.com/NativeScript/nativescript-cli/actions
Projectshttps://github.com/NativeScript/nativescript-cli/projects
Security and qualityhttps://github.com/NativeScript/nativescript-cli/security
Insightshttps://github.com/NativeScript/nativescript-cli/insights
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2Fnativescript-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2Fnativescript-cli%2Fissues%2Fnew%2Fchoose
rigor789https://github.com/rigor789
mainhttps://github.com/NativeScript/nativescript-cli/tree/main
fix/path-from-outside-projecthttps://github.com/NativeScript/nativescript-cli/tree/fix/path-from-outside-project
Conversation 6 https://github.com/NativeScript/nativescript-cli/pull/6182
Commits 3 https://github.com/NativeScript/nativescript-cli/pull/6182/commits
Checks 12 https://github.com/NativeScript/nativescript-cli/pull/6182/checks
Files changed https://github.com/NativeScript/nativescript-cli/pull/6182/files
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6182/files
fix: support running from outside the project with --path https://github.com/NativeScript/nativescript-cli/pull/6182/files#top
Show all changes 3 commits https://github.com/NativeScript/nativescript-cli/pull/6182/files
23c1020 fix: don't pass the CLI's own options to package managers rigor789 Oct 30, 2026 https://github.com/NativeScript/nativescript-cli/pull/6182/commits/23c1020b1f3b5964e3a0038f8817240e540d7fa8
f23e658 fix(ios): resolve NativeSource paths against the project rigor789 Oct 30, 2026 https://github.com/NativeScript/nativescript-cli/pull/6182/commits/f23e658cdfa5865ec5dac38cd3ad2bca082999b1
8dfaa4f fix(ios): use the folders of a NativeSource glob's headers as search … rigor789 Oct 30, 2026 https://github.com/NativeScript/nativescript-cli/pull/6182/commits/8dfaa4faaaa2eee88c901707d78d78a03fda8e9d
Clear filters https://github.com/NativeScript/nativescript-cli/pull/6182/files
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6182/files
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6182/files
base-package-manager.ts https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-4c51ab3da93f11ac0af99b64c255e8983a0ddbb1b9a7e28d3853343c30763802
ios-project-service.ts https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-f7622a4b889e37ebc0eba2bf40ac06b97262f18f3e2bb9b71375a083af8a3259
base-package-manager.ts https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-903de3e36c79a581afe631fcdbd6ab8eb6a1c5b539c8744320488a7e073afc89
ios-project-service-native-source.ts https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-65d8c84ca1f8f8edb53ee5f1b6932c18f5b9be2f10acc60c759b833dbee3ff7e
lib/base-package-manager.tshttps://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-4c51ab3da93f11ac0af99b64c255e8983a0ddbb1b9a7e28d3853343c30763802
View file https://github.com/NativeScript/nativescript-cli/blob/8dfaa4faaaa2eee88c901707d78d78a03fda8e9d/lib/base-package-manager.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6182/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-4c51ab3da93f11ac0af99b64c255e8983a0ddbb1b9a7e28d3853343c30763802
https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-4c51ab3da93f11ac0af99b64c255e8983a0ddbb1b9a7e28d3853343c30763802
https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-4c51ab3da93f11ac0af99b64c255e8983a0ddbb1b9a7e28d3853343c30763802
https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-4c51ab3da93f11ac0af99b64c255e8983a0ddbb1b9a7e28d3853343c30763802
lib/services/ios-project-service.tshttps://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-f7622a4b889e37ebc0eba2bf40ac06b97262f18f3e2bb9b71375a083af8a3259
View file https://github.com/NativeScript/nativescript-cli/blob/8dfaa4faaaa2eee88c901707d78d78a03fda8e9d/lib/services/ios-project-service.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6182/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-f7622a4b889e37ebc0eba2bf40ac06b97262f18f3e2bb9b71375a083af8a3259
https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-f7622a4b889e37ebc0eba2bf40ac06b97262f18f3e2bb9b71375a083af8a3259
coderabbitaihttps://github.com/apps/coderabbitai
Oct 30, 2026https://github.com/NativeScript/nativescript-cli/pull/6182/files#r4428523846
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6182/files
coderabbitaihttps://github.com/apps/coderabbitai
Oct 30, 2026https://github.com/NativeScript/nativescript-cli/pull/6182/files#r4428523859
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6182/files
https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-f7622a4b889e37ebc0eba2bf40ac06b97262f18f3e2bb9b71375a083af8a3259
https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-f7622a4b889e37ebc0eba2bf40ac06b97262f18f3e2bb9b71375a083af8a3259
https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-f7622a4b889e37ebc0eba2bf40ac06b97262f18f3e2bb9b71375a083af8a3259
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6182/files
https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-f7622a4b889e37ebc0eba2bf40ac06b97262f18f3e2bb9b71375a083af8a3259
https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-f7622a4b889e37ebc0eba2bf40ac06b97262f18f3e2bb9b71375a083af8a3259
https://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-f7622a4b889e37ebc0eba2bf40ac06b97262f18f3e2bb9b71375a083af8a3259
test/base-package-manager.tshttps://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-903de3e36c79a581afe631fcdbd6ab8eb6a1c5b539c8744320488a7e073afc89
View file https://github.com/NativeScript/nativescript-cli/blob/8dfaa4faaaa2eee88c901707d78d78a03fda8e9d/test/base-package-manager.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6182/{{ revealButtonHref }}
test/ios-project-service-native-source.tshttps://github.com/NativeScript/nativescript-cli/pull/6182/files#diff-65d8c84ca1f8f8edb53ee5f1b6932c18f5b9be2f10acc60c759b833dbee3ff7e
View file https://github.com/NativeScript/nativescript-cli/blob/8dfaa4faaaa2eee88c901707d78d78a03fda8e9d/test/ios-project-service-native-source.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6182/{{ revealButtonHref }}
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6182/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.