-
-
Notifications
You must be signed in to change notification settings - Fork 197
Fix symlinks that are added to output package and points to not existing location #593
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
Conversation
✅ |
39863a4
to
4d487e8
Compare
✅ |
4d487e8
to
2d01053
Compare
✅ |
@@ -152,7 +152,7 @@ interface BroccoliNode { | |||
} | |||
|
|||
interface IBroccoliBuilder { | |||
prepareNodeModules(outputPath: string, projectDir: string): IFuture<void>; | |||
prepareNodeModules(outputPath: string, projectDir: string, lastModifiedTime?: any): IFuture<void>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type should not be any but Date:
> fs.statSync("c:\\haxlogs.txt").mtime instanceof Date
true
2d01053
to
621c124
Compare
✅ |
621c124
to
0dd9e67
Compare
✅ |
shell.cp("-R", appSourceDirectoryPath, platformData.appDestinationDirectoryPath); | ||
_(this.$fs.readDirectory(path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME)).wait()) | ||
.filter(directoryName => directoryName !== "tns_modules") | ||
.each(directoryName => this.$fs.deleteDirectory(path.join(platformData.appDestinationDirectoryPath, "app", directoryName)).wait()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"app" => constants.APP_FOLDER_NAME maybe?
0dd9e67
to
5cb3eb5
Compare
❌ |
5cb3eb5
to
81e0d10
Compare
✅ |
81e0d10
to
17c2a29
Compare
✅ |
1 similar comment
✅ |
2bce7c3
to
ab6a4e2
Compare
✅ |
👍 |
ab6a4e2
to
33cf15b
Compare
✅ |
let currentPreparedTnsModules = this.$fs.readDirectory(absoluteOutputPath).wait(); | ||
let tnsModulesInApp = this.$fs.readDirectory(path.join(projectDir, "app", "tns_modules")).wait(); | ||
let modulesToDelete = _.difference(currentPreparedTnsModules, tnsModulesInApp); | ||
_.each(modulesToDelete, moduleName => this.$fs.deleteDirectory(path.join(absoluteOutputPath, moduleName)).wait()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing ;
at the end
👍 one missing |
33cf15b
to
7513ad6
Compare
✅ |
Fix symlinks that are added to output package and points to not existing location
Fixes #584
This PR also fixes the pollution in package.json file, removes the need from
tmp
folder and provides a better way for doing incremental prepare of node_modules.