File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @bluecadet/launchpad-content " : patch
3
+ ---
4
+
5
+ Fix inconsistent deletion of temp/backup directories
Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ export class LaunchpadContent {
75
75
/** @type {Map<string, ContentTransform> } */
76
76
_contentTransforms = new Map ( ) ;
77
77
78
+ /** @type {Date } */
79
+ _startDatetime = new Date ( ) ;
80
+
78
81
/**
79
82
* @param {import('./content-options.js').ContentOptions } [config]
80
83
* @param {Logger } [parentLogger]
@@ -120,6 +123,8 @@ export class LaunchpadContent {
120
123
return Promise . resolve ( ) ;
121
124
}
122
125
126
+ this . _startDatetime = new Date ( ) ;
127
+
123
128
try {
124
129
this . _logger . info ( `Downloading ${ chalk . cyan ( sources . length ) } sources` ) ;
125
130
@@ -501,7 +506,7 @@ export class LaunchpadContent {
501
506
*/
502
507
_getDetokenizedPath ( tokenizedPath , downloadPath ) {
503
508
if ( tokenizedPath . includes ( TIMESTAMP_TOKEN ) ) {
504
- tokenizedPath = tokenizedPath . replace ( TIMESTAMP_TOKEN , FileUtils . getDateString ( ) ) ;
509
+ tokenizedPath = tokenizedPath . replace ( TIMESTAMP_TOKEN , FileUtils . getDateString ( this . _startDatetime ) ) ;
505
510
}
506
511
if ( tokenizedPath . includes ( DOWNLOAD_PATH_TOKEN ) ) {
507
512
tokenizedPath = tokenizedPath . replace ( DOWNLOAD_PATH_TOKEN , downloadPath ) ;
You can’t perform that action at this time.
0 commit comments