firefly-compiler 0.5.22 → 0.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/compiler/Builder.ff
CHANGED
|
@@ -62,11 +62,7 @@ processIncludes(jsPathFile: Path, packagePath: Path, info: PackageInfo) {
|
|
|
62
62
|
info.includes.each {include =>
|
|
63
63
|
let fromPath = packagePath.slash(".firefly").slash("include").slash(include.path)
|
|
64
64
|
let toPath = jsPathFile.slash(info.package.packagePair.groupName("/")).slash(include.path)
|
|
65
|
-
|
|
66
|
-
toPath.createSymlinkTo(fromPath)
|
|
67
|
-
} catchAny {_ =>
|
|
68
|
-
fromPath.copyTo(toPath)
|
|
69
|
-
}
|
|
65
|
+
toPath.createSymlinkTo(fromPath, junction = True)
|
|
70
66
|
}
|
|
71
67
|
}
|
|
72
68
|
|
package/core/Path.ff
CHANGED
|
@@ -192,10 +192,10 @@ extend self: Path {
|
|
|
192
192
|
await fsPromises.mkdir(self_, {recursive: createParentDirectories_})
|
|
193
193
|
"""
|
|
194
194
|
|
|
195
|
-
createSymlinkTo(path: Path)
|
|
195
|
+
createSymlinkTo(path: Path, junction: Bool = False)
|
|
196
196
|
target node async """
|
|
197
197
|
import * as fsPromises from 'fs/promises'
|
|
198
|
-
await fsPromises.symlink(path_, self_)
|
|
198
|
+
await fsPromises.symlink(path_, self_, junction_ ? 'junction' : null)
|
|
199
199
|
"""
|
|
200
200
|
|
|
201
201
|
delete(retries: Int = 0, retryDelay: Int = 100)
|
|
@@ -159,11 +159,7 @@ for(let for_i = 0, for_a = info_.includes_, for_l = for_a.length; for_i < for_l;
|
|
|
159
159
|
const include_ = for_a[for_i];
|
|
160
160
|
const fromPath_ = ff_core_Path.Path_slash(ff_core_Path.Path_slash(ff_core_Path.Path_slash(packagePath_, ".firefly"), "include"), include_.path_);
|
|
161
161
|
const toPath_ = ff_core_Path.Path_slash(ff_core_Path.Path_slash(jsPathFile_, ff_compiler_Syntax.PackagePair_groupName(info_.package_.packagePair_, "/")), include_.path_);
|
|
162
|
-
|
|
163
|
-
ff_core_Path.Path_createSymlinkTo(toPath_, fromPath_)
|
|
164
|
-
})), ((_) => {
|
|
165
|
-
ff_core_Path.Path_copyTo(fromPath_, toPath_, 0, 100)
|
|
166
|
-
}))
|
|
162
|
+
ff_core_Path.Path_createSymlinkTo(toPath_, fromPath_, true)
|
|
167
163
|
}
|
|
168
164
|
}
|
|
169
165
|
|
|
@@ -377,11 +373,7 @@ for(let for_i = 0, for_a = info_.includes_, for_l = for_a.length; for_i < for_l;
|
|
|
377
373
|
const include_ = for_a[for_i];
|
|
378
374
|
const fromPath_ = (await ff_core_Path.Path_slash$((await ff_core_Path.Path_slash$((await ff_core_Path.Path_slash$(packagePath_, ".firefly", $task)), "include", $task)), include_.path_, $task));
|
|
379
375
|
const toPath_ = (await ff_core_Path.Path_slash$((await ff_core_Path.Path_slash$(jsPathFile_, ff_compiler_Syntax.PackagePair_groupName(info_.package_.packagePair_, "/"), $task)), include_.path_, $task));
|
|
380
|
-
(await
|
|
381
|
-
(await ff_core_Path.Path_createSymlinkTo$(toPath_, fromPath_, $task))
|
|
382
|
-
}), $task)), (async (_, $task) => {
|
|
383
|
-
(await ff_core_Path.Path_copyTo$(fromPath_, toPath_, 0, 100, $task))
|
|
384
|
-
}), $task))
|
|
376
|
+
(await ff_core_Path.Path_createSymlinkTo$(toPath_, fromPath_, true, $task))
|
|
385
377
|
}
|
|
386
378
|
}
|
|
387
379
|
|
|
@@ -284,7 +284,7 @@ export function Path_createDirectory(self_, createParentDirectories_ = false) {
|
|
|
284
284
|
throw new Error('Function Path_createDirectory is missing on this target in sync context.');
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
export function Path_createSymlinkTo(self_, path_) {
|
|
287
|
+
export function Path_createSymlinkTo(self_, path_, junction_ = false) {
|
|
288
288
|
throw new Error('Function Path_createSymlinkTo is missing on this target in sync context.');
|
|
289
289
|
}
|
|
290
290
|
|
|
@@ -571,10 +571,10 @@ export async function Path_createDirectory$(self_, createParentDirectories_ = fa
|
|
|
571
571
|
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
-
export async function Path_createSymlinkTo$(self_, path_, $task) {
|
|
574
|
+
export async function Path_createSymlinkTo$(self_, path_, junction_ = false, $task) {
|
|
575
575
|
|
|
576
576
|
const fsPromises = import$1
|
|
577
|
-
await fsPromises.symlink(path_, self_)
|
|
577
|
+
await fsPromises.symlink(path_, self_, junction_ ? 'junction' : null)
|
|
578
578
|
|
|
579
579
|
}
|
|
580
580
|
|
package/package.json
CHANGED