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

(7_1_X) [TIMOB-25875] Babel rewrites app.js in classic project to generated ES5 code #9939

Merged
merged 3 commits into from Apr 3, 2018

Conversation

sgtcoolguy
Copy link
Contributor

JIRA: https://jira.appcelerator.org/browse/TIMOB-25875

Description:
This issue was not specific to app.js. The issue here was that if a user built a project and a file had no changes through our build pipeline we'd try to symlink to the original source file as a build performance enhancement. But if subsequent builds trigger changes on a file (like transpilation would) and we write the new contents to the destination file, and it's a symlink, that modifies the original source file!

The solution here is pretty simple, if the destination file exists, remove it first before writing to it.

@sgtcoolguy sgtcoolguy added this to the 7.1.1 milestone Mar 16, 2018
@sgtcoolguy sgtcoolguy changed the title [TIMOB-25875] Babel rewrites app.js in classic project to generated ES5 code (7_1_X) [TIMOB-25875] Babel rewrites app.js in classic project to generated ES5 code Mar 16, 2018
@build
Copy link
Contributor

build commented Mar 16, 2018

Messages
📖

💾 Here's the generated SDK zipfile.

Generated by 🚫 dangerJS

Copy link
Collaborator

@hansemannn hansemannn left a comment

Choose a reason for hiding this comment

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

CR and FT passed!

@lokeshchdhry
Copy link
Contributor

FR passed.

OS Ver: 10.13.2
Xcode Ver: Xcode 9.3
Appc NPM: 4.2.12
Appc CLI: 7.0.3-master.24
Daemon Ver: 1.0.1
Ti CLI Ver: 5.1.0
Alloy Ver: 1.11.0
Node Ver: 8.9.1
NPM Ver: 5.5.1
Java Ver: 9.0.4

@lokeshchdhry lokeshchdhry merged commit 62fa8a8 into tidev:7_1_X Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants