Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistencies and invalid URL on ti setup check #279

Merged
merged 3 commits into from Jul 26, 2018

Conversation

ewanharris
Copy link
Contributor

https://jira.appcelerator.org/browse/TIMOB-26206
https://jira.appcelerator.org/browse/TIMOB-24892

  • If process.mainModule.filename points to the appc bin then try and resolve titanium so we list the correct node modules
  • Replace preview.appcelerator.com with preview.appcelerator.com/appc-studio to fix the 502

@@ -669,6 +669,10 @@ SetupScreens.prototype.check = function check(callback) {
var cwd = process.mainModule && process.mainModule.filename,
root = path.resolve('/');

if (path.basename(cwd) === 'appc') {
cwd = require.resolve('titanium');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't you just do cwd = path.resolve(__dirname, '..', '..');?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes more sense, and removes the need to even have this check. Updating

@cb1kenobi
Copy link
Contributor

APPROVED

@cb1kenobi cb1kenobi merged commit d9f8f48 into tidev:master Jul 26, 2018
@hansemannn
Copy link
Contributor

@ewanharris Was this published so far? Trying with 5.1.1 and still see this issue.

@cb1kenobi
Copy link
Contributor

This fix has not been published yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants