fyn 1.1.31 → 1.1.32
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/dist/fyn.js +44 -28
- package/package.json +1 -1
package/dist/fyn.js
CHANGED
|
@@ -1073,13 +1073,21 @@ class FynCli {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
}));
|
|
1075
1075
|
|
|
1076
|
-
const env = npmLifecycle.initEnv(process.env, this.fyn.production);
|
|
1076
|
+
const env = npmLifecycle.initEnv(process.env, this.fyn.production); // add fynpo top dir node_modules/.bin to PATH
|
|
1077
|
+
|
|
1078
|
+
if (this._config._fynpo.config) {
|
|
1079
|
+
xsh.envPath.addToFront(Path.join(this._config._fynpo.dir, "node_modules/.bin"), env);
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1077
1082
|
setupNodeGypEnv(env);
|
|
1078
1083
|
return Promise.each(_scripts, s => _.get(pkg, ["scripts", s]) && this.runScript(pkg, s, Object.assign({}, env)));
|
|
1079
1084
|
}
|
|
1080
1085
|
|
|
1081
1086
|
async run(argv, script = "") {
|
|
1082
|
-
this._config._fynpo
|
|
1087
|
+
if (!this._config._fynpo) {
|
|
1088
|
+
this._config._fynpo = {};
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1083
1091
|
script = script || argv.args.script;
|
|
1084
1092
|
|
|
1085
1093
|
if (argv.opts.list || !script) {
|
|
@@ -1313,7 +1321,8 @@ const pickOptions = async (argv, nixClap, checkFynpo = true) => {
|
|
|
1313
1321
|
return {
|
|
1314
1322
|
opts: argv.opts,
|
|
1315
1323
|
rcData,
|
|
1316
|
-
_cliSource: argv.source
|
|
1324
|
+
_cliSource: argv.source,
|
|
1325
|
+
_fynpo: fynpo
|
|
1317
1326
|
};
|
|
1318
1327
|
};
|
|
1319
1328
|
|
|
@@ -1600,7 +1609,8 @@ const commands = {
|
|
|
1600
1609
|
usage: "$0 $1 <command> [-- <args>...]",
|
|
1601
1610
|
exec: async (argv, parsed) => {
|
|
1602
1611
|
try {
|
|
1603
|
-
|
|
1612
|
+
const options = await pickOptions(argv, parsed.nixClap, !argv.opts.list);
|
|
1613
|
+
return await new FynCli(options).run(argv);
|
|
1604
1614
|
} catch (err) {
|
|
1605
1615
|
if (err.errno !== undefined) {
|
|
1606
1616
|
process.exit(err.errno);
|
|
@@ -4076,7 +4086,11 @@ class LifecycleScripts {
|
|
|
4076
4086
|
// this._addNpmPackageConfig(this._appPkg.config, env);
|
|
4077
4087
|
// this._addNpmPackageConfig(this._pkg.config, env);
|
|
4078
4088
|
const env = Object.assign({}, npmConfigEnv(this._pkg, this._fyn.allrc || {}), override);
|
|
4079
|
-
setupNodeGypEnv(env);
|
|
4089
|
+
setupNodeGypEnv(env); // add fynpo node_modules/.bin to PATH
|
|
4090
|
+
|
|
4091
|
+
if (this._fyn.isFynpo) {
|
|
4092
|
+
xsh.envPath.addToFront(Path.join(this._fyn._fynpo.dir, "node_modules/.bin"), env);
|
|
4093
|
+
}
|
|
4080
4094
|
|
|
4081
4095
|
if (this._appDir) {
|
|
4082
4096
|
xsh.envPath.addToFront(Path.join(this._appDir, "node_modules/.bin"), env);
|
|
@@ -5762,7 +5776,7 @@ const {
|
|
|
5762
5776
|
const {
|
|
5763
5777
|
getDepSection,
|
|
5764
5778
|
makeDepStep
|
|
5765
|
-
} = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.
|
|
5779
|
+
} = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/index.js");
|
|
5766
5780
|
|
|
5767
5781
|
const xaa = __webpack_require__("./lib/util/xaa.js");
|
|
5768
5782
|
|
|
@@ -8730,7 +8744,7 @@ const {
|
|
|
8730
8744
|
|
|
8731
8745
|
const {
|
|
8732
8746
|
PackageRef
|
|
8733
|
-
} = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.
|
|
8747
|
+
} = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/index.js");
|
|
8734
8748
|
|
|
8735
8749
|
const WATCH_TIME = 5000; // consider meta cache stale after this much time (30 minutes)
|
|
8736
8750
|
|
|
@@ -9748,7 +9762,7 @@ const {
|
|
|
9748
9762
|
const {
|
|
9749
9763
|
FynpoConfigManager,
|
|
9750
9764
|
FynpoDepGraph
|
|
9751
|
-
} = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.
|
|
9765
|
+
} = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/index.js");
|
|
9752
9766
|
/* eslint-disable no-magic-numbers, max-statements, no-empty, complexity, no-eval */
|
|
9753
9767
|
|
|
9754
9768
|
|
|
@@ -11246,7 +11260,7 @@ module.exports = __webpack_require__("./node_modules/.f/_/xaa/1.7.0/xaa/dist/xaa
|
|
|
11246
11260
|
|
|
11247
11261
|
/***/ }),
|
|
11248
11262
|
|
|
11249
|
-
/***/ "./node_modules/.f/_/@fynpo/base/1.1.
|
|
11263
|
+
/***/ "./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/caching.js":
|
|
11250
11264
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
11251
11265
|
|
|
11252
11266
|
"use strict";
|
|
@@ -11267,7 +11281,7 @@ const fs_1 = (0, tslib_1.__importDefault)(__webpack_require__("fs"));
|
|
|
11267
11281
|
const path_1 = (0, tslib_1.__importDefault)(__webpack_require__("path"));
|
|
11268
11282
|
const crypto_1 = (0, tslib_1.__importDefault)(__webpack_require__("crypto"));
|
|
11269
11283
|
|
|
11270
|
-
const minimatch_group_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.
|
|
11284
|
+
const minimatch_group_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/minimatch-group.js");
|
|
11271
11285
|
/**
|
|
11272
11286
|
* create a sha256 hash for some data
|
|
11273
11287
|
*
|
|
@@ -11521,12 +11535,13 @@ async function processOutput({
|
|
|
11521
11535
|
} //
|
|
11522
11536
|
|
|
11523
11537
|
|
|
11538
|
+
const now = Date.now();
|
|
11524
11539
|
return {
|
|
11525
11540
|
files: allFiles,
|
|
11526
11541
|
data,
|
|
11527
11542
|
hash,
|
|
11528
|
-
access:
|
|
11529
|
-
create:
|
|
11543
|
+
access: now,
|
|
11544
|
+
create: now
|
|
11530
11545
|
};
|
|
11531
11546
|
}
|
|
11532
11547
|
|
|
@@ -11534,7 +11549,7 @@ exports.processOutput = processOutput;
|
|
|
11534
11549
|
|
|
11535
11550
|
/***/ }),
|
|
11536
11551
|
|
|
11537
|
-
/***/ "./node_modules/.f/_/@fynpo/base/1.1.
|
|
11552
|
+
/***/ "./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/fynpo-config.js":
|
|
11538
11553
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
11539
11554
|
|
|
11540
11555
|
"use strict";
|
|
@@ -11684,7 +11699,7 @@ exports.FynpoConfigManager = FynpoConfigManager;
|
|
|
11684
11699
|
|
|
11685
11700
|
/***/ }),
|
|
11686
11701
|
|
|
11687
|
-
/***/ "./node_modules/.f/_/@fynpo/base/1.1.
|
|
11702
|
+
/***/ "./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/fynpo-dep-graph.js":
|
|
11688
11703
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
11689
11704
|
|
|
11690
11705
|
"use strict";
|
|
@@ -11714,9 +11729,9 @@ const minimatch_1 = (0, tslib_1.__importDefault)(__webpack_require__("./node_mod
|
|
|
11714
11729
|
const lodash_1 = (0, tslib_1.__importDefault)(__webpack_require__("./node_modules/.f/_/lodash/4.17.21/lodash/lodash.min.js"));
|
|
11715
11730
|
const semver_1 = (0, tslib_1.__importDefault)(__webpack_require__("./node_modules/.f/_/semver/7.3.5/semver/index.js"));
|
|
11716
11731
|
|
|
11717
|
-
const minimatch_group_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.
|
|
11732
|
+
const minimatch_group_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/minimatch-group.js");
|
|
11718
11733
|
|
|
11719
|
-
const util_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.
|
|
11734
|
+
const util_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/util.js");
|
|
11720
11735
|
|
|
11721
11736
|
const is_path_inside_1 = (0, tslib_1.__importDefault)(__webpack_require__("./node_modules/.f/_/is-path-inside/3.0.3/is-path-inside/index.js"));
|
|
11722
11737
|
const DepSectionMap = {
|
|
@@ -12437,7 +12452,7 @@ exports.FynpoDepGraph = FynpoDepGraph;
|
|
|
12437
12452
|
|
|
12438
12453
|
/***/ }),
|
|
12439
12454
|
|
|
12440
|
-
/***/ "./node_modules/.f/_/@fynpo/base/1.1.
|
|
12455
|
+
/***/ "./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/index.js":
|
|
12441
12456
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
12442
12457
|
|
|
12443
12458
|
"use strict";
|
|
@@ -12459,12 +12474,12 @@ const filter_scan_dir_1 = __webpack_require__("./node_modules/.f/_/filter-scan-d
|
|
|
12459
12474
|
const minimatch_1 = (0, tslib_1.__importDefault)(__webpack_require__("./node_modules/.f/_/minimatch/3.0.4/minimatch/minimatch.js"));
|
|
12460
12475
|
const lodash_1 = (0, tslib_1.__importDefault)(__webpack_require__("./node_modules/.f/_/lodash/4.17.21/lodash/lodash.min.js"));
|
|
12461
12476
|
|
|
12462
|
-
const minimatch_group_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.
|
|
12477
|
+
const minimatch_group_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/minimatch-group.js");
|
|
12463
12478
|
|
|
12464
|
-
(0, tslib_1.__exportStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.
|
|
12465
|
-
(0, tslib_1.__exportStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.
|
|
12466
|
-
(0, tslib_1.__exportStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.
|
|
12467
|
-
exports.caching = (0, tslib_1.__importStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.
|
|
12479
|
+
(0, tslib_1.__exportStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/fynpo-dep-graph.js"), exports);
|
|
12480
|
+
(0, tslib_1.__exportStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/fynpo-config.js"), exports);
|
|
12481
|
+
(0, tslib_1.__exportStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/util.js"), exports);
|
|
12482
|
+
exports.caching = (0, tslib_1.__importStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/caching.js"));
|
|
12468
12483
|
/**
|
|
12469
12484
|
* Take an array of packages and figure out their dependencies on each other
|
|
12470
12485
|
*
|
|
@@ -12720,7 +12735,7 @@ exports.makePkgDeps = makePkgDeps;
|
|
|
12720
12735
|
|
|
12721
12736
|
/***/ }),
|
|
12722
12737
|
|
|
12723
|
-
/***/ "./node_modules/.f/_/@fynpo/base/1.1.
|
|
12738
|
+
/***/ "./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/minimatch-group.js":
|
|
12724
12739
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
12725
12740
|
|
|
12726
12741
|
"use strict";
|
|
@@ -12772,7 +12787,7 @@ exports.groupMM = groupMM;
|
|
|
12772
12787
|
* process a minimatch pattern to group them for matching directories
|
|
12773
12788
|
*
|
|
12774
12789
|
* - needs to create a new pattern at every non-string part
|
|
12775
|
-
* @param pattern
|
|
12790
|
+
* @param m0 minimatch pattern
|
|
12776
12791
|
*/
|
|
12777
12792
|
|
|
12778
12793
|
function deconstructMM(m0) {
|
|
@@ -12845,20 +12860,21 @@ function unrollMmMatch(path, mms) {
|
|
|
12845
12860
|
|
|
12846
12861
|
for (let i = 0; i < parts.length - 1; i++) {
|
|
12847
12862
|
rp = rp !== undefined ? rp + "/" + parts[i] : parts[i];
|
|
12863
|
+
const m1 = checkMmMatch(`${rp}/`, mms);
|
|
12848
12864
|
|
|
12849
|
-
if (
|
|
12850
|
-
return
|
|
12865
|
+
if (m1) {
|
|
12866
|
+
return m1;
|
|
12851
12867
|
}
|
|
12852
12868
|
}
|
|
12853
12869
|
|
|
12854
|
-
return
|
|
12870
|
+
return checkMmMatch(path, mms);
|
|
12855
12871
|
}
|
|
12856
12872
|
|
|
12857
12873
|
exports.unrollMmMatch = unrollMmMatch;
|
|
12858
12874
|
|
|
12859
12875
|
/***/ }),
|
|
12860
12876
|
|
|
12861
|
-
/***/ "./node_modules/.f/_/@fynpo/base/1.1.
|
|
12877
|
+
/***/ "./node_modules/.f/_/@fynpo/base/1.1.14-fynlocal_h/@fynpo/base/dist/util.js":
|
|
12862
12878
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
12863
12879
|
|
|
12864
12880
|
"use strict";
|