@m2c2kit/build-helpers 0.3.25 → 0.3.27

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.
Files changed (2) hide show
  1. package/dist/index.js +54 -8
  2. package/package.json +7 -5
package/dist/index.js CHANGED
@@ -9380,7 +9380,7 @@ function requirePolyfills () {
9380
9380
  var backoff = 0;
9381
9381
  fs$rename(from, to, function CB (er) {
9382
9382
  if (er
9383
- && (er.code === "EACCES" || er.code === "EPERM")
9383
+ && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY")
9384
9384
  && Date.now() - start < 60000) {
9385
9385
  setTimeout(function() {
9386
9386
  fs.stat(to, function (stater, st) {
@@ -19713,6 +19713,7 @@ var hasRequiredConstants$1;
19713
19713
  function requireConstants$1 () {
19714
19714
  if (hasRequiredConstants$1) return constants$1;
19715
19715
  hasRequiredConstants$1 = 1;
19716
+
19716
19717
  // Note: this is the semver.org version of the spec that it implements
19717
19718
  // Not necessarily the package version of this code.
19718
19719
  const SEMVER_SPEC_VERSION = '2.0.0';
@@ -19757,6 +19758,7 @@ var hasRequiredDebug;
19757
19758
  function requireDebug () {
19758
19759
  if (hasRequiredDebug) return debug_1;
19759
19760
  hasRequiredDebug = 1;
19761
+
19760
19762
  const debug = (
19761
19763
  typeof process === 'object' &&
19762
19764
  process.env &&
@@ -19775,6 +19777,7 @@ function requireRe () {
19775
19777
  if (hasRequiredRe) return re.exports;
19776
19778
  hasRequiredRe = 1;
19777
19779
  (function (module, exports) {
19780
+
19778
19781
  const {
19779
19782
  MAX_SAFE_COMPONENT_LENGTH,
19780
19783
  MAX_SAFE_BUILD_LENGTH,
@@ -19853,12 +19856,14 @@ function requireRe () {
19853
19856
 
19854
19857
  // ## Pre-release Version Identifier
19855
19858
  // A numeric identifier, or a non-numeric identifier.
19859
+ // Non-numberic identifiers include numberic identifiers but can be longer.
19860
+ // Therefore non-numberic identifiers must go first.
19856
19861
 
19857
- createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]
19858
- }|${src[t.NONNUMERICIDENTIFIER]})`);
19862
+ createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]
19863
+ }|${src[t.NUMERICIDENTIFIER]})`);
19859
19864
 
19860
- createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]
19861
- }|${src[t.NONNUMERICIDENTIFIER]})`);
19865
+ createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]
19866
+ }|${src[t.NUMERICIDENTIFIERLOOSE]})`);
19862
19867
 
19863
19868
  // ## Pre-release Version
19864
19869
  // Hyphen, followed by one or more dot-separated pre-release version
@@ -20004,6 +20009,7 @@ var hasRequiredParseOptions;
20004
20009
  function requireParseOptions () {
20005
20010
  if (hasRequiredParseOptions) return parseOptions_1;
20006
20011
  hasRequiredParseOptions = 1;
20012
+
20007
20013
  // parse out just the options we care about
20008
20014
  const looseOption = Object.freeze({ loose: true });
20009
20015
  const emptyOpts = Object.freeze({ });
@@ -20028,6 +20034,7 @@ var hasRequiredIdentifiers;
20028
20034
  function requireIdentifiers () {
20029
20035
  if (hasRequiredIdentifiers) return identifiers;
20030
20036
  hasRequiredIdentifiers = 1;
20037
+
20031
20038
  const numeric = /^[0-9]+$/;
20032
20039
  const compareIdentifiers = (a, b) => {
20033
20040
  const anum = numeric.test(a);
@@ -20060,9 +20067,10 @@ var hasRequiredSemver$1;
20060
20067
  function requireSemver$1 () {
20061
20068
  if (hasRequiredSemver$1) return semver$1;
20062
20069
  hasRequiredSemver$1 = 1;
20070
+
20063
20071
  const debug = requireDebug();
20064
20072
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = requireConstants$1();
20065
- const { safeRe: re, safeSrc: src, t } = requireRe();
20073
+ const { safeRe: re, t } = requireRe();
20066
20074
 
20067
20075
  const parseOptions = requireParseOptions();
20068
20076
  const { compareIdentifiers } = requireIdentifiers();
@@ -20244,8 +20252,7 @@ function requireSemver$1 () {
20244
20252
  }
20245
20253
  // Avoid an invalid semver results
20246
20254
  if (identifier) {
20247
- const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
20248
- const match = `-${identifier}`.match(r);
20255
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
20249
20256
  if (!match || match[1] !== identifier) {
20250
20257
  throw new Error(`invalid identifier: ${identifier}`)
20251
20258
  }
@@ -20387,6 +20394,7 @@ var hasRequiredParse$1;
20387
20394
  function requireParse$1 () {
20388
20395
  if (hasRequiredParse$1) return parse_1$1;
20389
20396
  hasRequiredParse$1 = 1;
20397
+
20390
20398
  const SemVer = requireSemver$1();
20391
20399
  const parse = (version, options, throwErrors = false) => {
20392
20400
  if (version instanceof SemVer) {
@@ -20412,6 +20420,7 @@ var hasRequiredValid$1;
20412
20420
  function requireValid$1 () {
20413
20421
  if (hasRequiredValid$1) return valid_1;
20414
20422
  hasRequiredValid$1 = 1;
20423
+
20415
20424
  const parse = requireParse$1();
20416
20425
  const valid = (version, options) => {
20417
20426
  const v = parse(version, options);
@@ -20427,6 +20436,7 @@ var hasRequiredClean;
20427
20436
  function requireClean () {
20428
20437
  if (hasRequiredClean) return clean_1;
20429
20438
  hasRequiredClean = 1;
20439
+
20430
20440
  const parse = requireParse$1();
20431
20441
  const clean = (version, options) => {
20432
20442
  const s = parse(version.trim().replace(/^[=v]+/, ''), options);
@@ -20442,6 +20452,7 @@ var hasRequiredInc;
20442
20452
  function requireInc () {
20443
20453
  if (hasRequiredInc) return inc_1;
20444
20454
  hasRequiredInc = 1;
20455
+
20445
20456
  const SemVer = requireSemver$1();
20446
20457
 
20447
20458
  const inc = (version, release, options, identifier, identifierBase) => {
@@ -20470,6 +20481,7 @@ var hasRequiredDiff;
20470
20481
  function requireDiff () {
20471
20482
  if (hasRequiredDiff) return diff_1;
20472
20483
  hasRequiredDiff = 1;
20484
+
20473
20485
  const parse = requireParse$1();
20474
20486
 
20475
20487
  const diff = (version1, version2) => {
@@ -20537,6 +20549,7 @@ var hasRequiredMajor;
20537
20549
  function requireMajor () {
20538
20550
  if (hasRequiredMajor) return major_1;
20539
20551
  hasRequiredMajor = 1;
20552
+
20540
20553
  const SemVer = requireSemver$1();
20541
20554
  const major = (a, loose) => new SemVer(a, loose).major;
20542
20555
  major_1 = major;
@@ -20549,6 +20562,7 @@ var hasRequiredMinor;
20549
20562
  function requireMinor () {
20550
20563
  if (hasRequiredMinor) return minor_1;
20551
20564
  hasRequiredMinor = 1;
20565
+
20552
20566
  const SemVer = requireSemver$1();
20553
20567
  const minor = (a, loose) => new SemVer(a, loose).minor;
20554
20568
  minor_1 = minor;
@@ -20561,6 +20575,7 @@ var hasRequiredPatch;
20561
20575
  function requirePatch () {
20562
20576
  if (hasRequiredPatch) return patch_1;
20563
20577
  hasRequiredPatch = 1;
20578
+
20564
20579
  const SemVer = requireSemver$1();
20565
20580
  const patch = (a, loose) => new SemVer(a, loose).patch;
20566
20581
  patch_1 = patch;
@@ -20573,6 +20588,7 @@ var hasRequiredPrerelease;
20573
20588
  function requirePrerelease () {
20574
20589
  if (hasRequiredPrerelease) return prerelease_1;
20575
20590
  hasRequiredPrerelease = 1;
20591
+
20576
20592
  const parse = requireParse$1();
20577
20593
  const prerelease = (version, options) => {
20578
20594
  const parsed = parse(version, options);
@@ -20588,6 +20604,7 @@ var hasRequiredCompare;
20588
20604
  function requireCompare () {
20589
20605
  if (hasRequiredCompare) return compare_1;
20590
20606
  hasRequiredCompare = 1;
20607
+
20591
20608
  const SemVer = requireSemver$1();
20592
20609
  const compare = (a, b, loose) =>
20593
20610
  new SemVer(a, loose).compare(new SemVer(b, loose));
@@ -20602,6 +20619,7 @@ var hasRequiredRcompare;
20602
20619
  function requireRcompare () {
20603
20620
  if (hasRequiredRcompare) return rcompare_1;
20604
20621
  hasRequiredRcompare = 1;
20622
+
20605
20623
  const compare = requireCompare();
20606
20624
  const rcompare = (a, b, loose) => compare(b, a, loose);
20607
20625
  rcompare_1 = rcompare;
@@ -20614,6 +20632,7 @@ var hasRequiredCompareLoose;
20614
20632
  function requireCompareLoose () {
20615
20633
  if (hasRequiredCompareLoose) return compareLoose_1;
20616
20634
  hasRequiredCompareLoose = 1;
20635
+
20617
20636
  const compare = requireCompare();
20618
20637
  const compareLoose = (a, b) => compare(a, b, true);
20619
20638
  compareLoose_1 = compareLoose;
@@ -20626,6 +20645,7 @@ var hasRequiredCompareBuild;
20626
20645
  function requireCompareBuild () {
20627
20646
  if (hasRequiredCompareBuild) return compareBuild_1;
20628
20647
  hasRequiredCompareBuild = 1;
20648
+
20629
20649
  const SemVer = requireSemver$1();
20630
20650
  const compareBuild = (a, b, loose) => {
20631
20651
  const versionA = new SemVer(a, loose);
@@ -20642,6 +20662,7 @@ var hasRequiredSort;
20642
20662
  function requireSort () {
20643
20663
  if (hasRequiredSort) return sort_1;
20644
20664
  hasRequiredSort = 1;
20665
+
20645
20666
  const compareBuild = requireCompareBuild();
20646
20667
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
20647
20668
  sort_1 = sort;
@@ -20654,6 +20675,7 @@ var hasRequiredRsort;
20654
20675
  function requireRsort () {
20655
20676
  if (hasRequiredRsort) return rsort_1;
20656
20677
  hasRequiredRsort = 1;
20678
+
20657
20679
  const compareBuild = requireCompareBuild();
20658
20680
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
20659
20681
  rsort_1 = rsort;
@@ -20666,6 +20688,7 @@ var hasRequiredGt;
20666
20688
  function requireGt () {
20667
20689
  if (hasRequiredGt) return gt_1;
20668
20690
  hasRequiredGt = 1;
20691
+
20669
20692
  const compare = requireCompare();
20670
20693
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
20671
20694
  gt_1 = gt;
@@ -20678,6 +20701,7 @@ var hasRequiredLt;
20678
20701
  function requireLt () {
20679
20702
  if (hasRequiredLt) return lt_1;
20680
20703
  hasRequiredLt = 1;
20704
+
20681
20705
  const compare = requireCompare();
20682
20706
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
20683
20707
  lt_1 = lt;
@@ -20690,6 +20714,7 @@ var hasRequiredEq;
20690
20714
  function requireEq () {
20691
20715
  if (hasRequiredEq) return eq_1;
20692
20716
  hasRequiredEq = 1;
20717
+
20693
20718
  const compare = requireCompare();
20694
20719
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
20695
20720
  eq_1 = eq;
@@ -20702,6 +20727,7 @@ var hasRequiredNeq;
20702
20727
  function requireNeq () {
20703
20728
  if (hasRequiredNeq) return neq_1;
20704
20729
  hasRequiredNeq = 1;
20730
+
20705
20731
  const compare = requireCompare();
20706
20732
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
20707
20733
  neq_1 = neq;
@@ -20714,6 +20740,7 @@ var hasRequiredGte;
20714
20740
  function requireGte () {
20715
20741
  if (hasRequiredGte) return gte_1;
20716
20742
  hasRequiredGte = 1;
20743
+
20717
20744
  const compare = requireCompare();
20718
20745
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
20719
20746
  gte_1 = gte;
@@ -20726,6 +20753,7 @@ var hasRequiredLte;
20726
20753
  function requireLte () {
20727
20754
  if (hasRequiredLte) return lte_1;
20728
20755
  hasRequiredLte = 1;
20756
+
20729
20757
  const compare = requireCompare();
20730
20758
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
20731
20759
  lte_1 = lte;
@@ -20738,6 +20766,7 @@ var hasRequiredCmp;
20738
20766
  function requireCmp () {
20739
20767
  if (hasRequiredCmp) return cmp_1;
20740
20768
  hasRequiredCmp = 1;
20769
+
20741
20770
  const eq = requireEq();
20742
20771
  const neq = requireNeq();
20743
20772
  const gt = requireGt();
@@ -20799,6 +20828,7 @@ var hasRequiredCoerce;
20799
20828
  function requireCoerce () {
20800
20829
  if (hasRequiredCoerce) return coerce_1;
20801
20830
  hasRequiredCoerce = 1;
20831
+
20802
20832
  const SemVer = requireSemver$1();
20803
20833
  const parse = requireParse$1();
20804
20834
  const { safeRe: re, t } = requireRe();
@@ -20868,6 +20898,7 @@ var hasRequiredLrucache;
20868
20898
  function requireLrucache () {
20869
20899
  if (hasRequiredLrucache) return lrucache;
20870
20900
  hasRequiredLrucache = 1;
20901
+
20871
20902
  class LRUCache {
20872
20903
  constructor () {
20873
20904
  this.max = 1000;
@@ -20917,6 +20948,7 @@ var hasRequiredRange;
20917
20948
  function requireRange () {
20918
20949
  if (hasRequiredRange) return range;
20919
20950
  hasRequiredRange = 1;
20951
+
20920
20952
  const SPACE_CHARACTERS = /\s+/g;
20921
20953
 
20922
20954
  // hoisted class for cyclic dependency
@@ -21480,6 +21512,7 @@ var hasRequiredComparator;
21480
21512
  function requireComparator () {
21481
21513
  if (hasRequiredComparator) return comparator;
21482
21514
  hasRequiredComparator = 1;
21515
+
21483
21516
  const ANY = Symbol('SemVer ANY');
21484
21517
  // hoisted class for cyclic dependency
21485
21518
  class Comparator {
@@ -21630,6 +21663,7 @@ var hasRequiredSatisfies;
21630
21663
  function requireSatisfies () {
21631
21664
  if (hasRequiredSatisfies) return satisfies_1;
21632
21665
  hasRequiredSatisfies = 1;
21666
+
21633
21667
  const Range = requireRange();
21634
21668
  const satisfies = (version, range, options) => {
21635
21669
  try {
@@ -21649,6 +21683,7 @@ var hasRequiredToComparators;
21649
21683
  function requireToComparators () {
21650
21684
  if (hasRequiredToComparators) return toComparators_1;
21651
21685
  hasRequiredToComparators = 1;
21686
+
21652
21687
  const Range = requireRange();
21653
21688
 
21654
21689
  // Mostly just for testing and legacy API reasons
@@ -21666,6 +21701,7 @@ var hasRequiredMaxSatisfying;
21666
21701
  function requireMaxSatisfying () {
21667
21702
  if (hasRequiredMaxSatisfying) return maxSatisfying_1;
21668
21703
  hasRequiredMaxSatisfying = 1;
21704
+
21669
21705
  const SemVer = requireSemver$1();
21670
21706
  const Range = requireRange();
21671
21707
 
@@ -21700,6 +21736,7 @@ var hasRequiredMinSatisfying;
21700
21736
  function requireMinSatisfying () {
21701
21737
  if (hasRequiredMinSatisfying) return minSatisfying_1;
21702
21738
  hasRequiredMinSatisfying = 1;
21739
+
21703
21740
  const SemVer = requireSemver$1();
21704
21741
  const Range = requireRange();
21705
21742
  const minSatisfying = (versions, range, options) => {
@@ -21733,6 +21770,7 @@ var hasRequiredMinVersion;
21733
21770
  function requireMinVersion () {
21734
21771
  if (hasRequiredMinVersion) return minVersion_1;
21735
21772
  hasRequiredMinVersion = 1;
21773
+
21736
21774
  const SemVer = requireSemver$1();
21737
21775
  const Range = requireRange();
21738
21776
  const gt = requireGt();
@@ -21803,6 +21841,7 @@ var hasRequiredValid;
21803
21841
  function requireValid () {
21804
21842
  if (hasRequiredValid) return valid;
21805
21843
  hasRequiredValid = 1;
21844
+
21806
21845
  const Range = requireRange();
21807
21846
  const validRange = (range, options) => {
21808
21847
  try {
@@ -21823,6 +21862,7 @@ var hasRequiredOutside;
21823
21862
  function requireOutside () {
21824
21863
  if (hasRequiredOutside) return outside_1;
21825
21864
  hasRequiredOutside = 1;
21865
+
21826
21866
  const SemVer = requireSemver$1();
21827
21867
  const Comparator = requireComparator();
21828
21868
  const { ANY } = Comparator;
@@ -21912,6 +21952,7 @@ var hasRequiredGtr;
21912
21952
  function requireGtr () {
21913
21953
  if (hasRequiredGtr) return gtr_1;
21914
21954
  hasRequiredGtr = 1;
21955
+
21915
21956
  // Determine if version is greater than all the versions possible in the range.
21916
21957
  const outside = requireOutside();
21917
21958
  const gtr = (version, range, options) => outside(version, range, '>', options);
@@ -21925,6 +21966,7 @@ var hasRequiredLtr;
21925
21966
  function requireLtr () {
21926
21967
  if (hasRequiredLtr) return ltr_1;
21927
21968
  hasRequiredLtr = 1;
21969
+
21928
21970
  const outside = requireOutside();
21929
21971
  // Determine if version is less than all the versions possible in the range
21930
21972
  const ltr = (version, range, options) => outside(version, range, '<', options);
@@ -21938,6 +21980,7 @@ var hasRequiredIntersects;
21938
21980
  function requireIntersects () {
21939
21981
  if (hasRequiredIntersects) return intersects_1;
21940
21982
  hasRequiredIntersects = 1;
21983
+
21941
21984
  const Range = requireRange();
21942
21985
  const intersects = (r1, r2, options) => {
21943
21986
  r1 = new Range(r1, options);
@@ -21954,6 +21997,7 @@ var hasRequiredSimplify;
21954
21997
  function requireSimplify () {
21955
21998
  if (hasRequiredSimplify) return simplify;
21956
21999
  hasRequiredSimplify = 1;
22000
+
21957
22001
  // given a set of versions and a range, create a "simplified" range
21958
22002
  // that includes the same versions that the original range does
21959
22003
  // If the original range is shorter than the simplified one, return that.
@@ -22010,6 +22054,7 @@ var hasRequiredSubset;
22010
22054
  function requireSubset () {
22011
22055
  if (hasRequiredSubset) return subset_1;
22012
22056
  hasRequiredSubset = 1;
22057
+
22013
22058
  const Range = requireRange();
22014
22059
  const Comparator = requireComparator();
22015
22060
  const { ANY } = Comparator;
@@ -22266,6 +22311,7 @@ var hasRequiredSemver;
22266
22311
  function requireSemver () {
22267
22312
  if (hasRequiredSemver) return semver;
22268
22313
  hasRequiredSemver = 1;
22314
+
22269
22315
  // just pre-load all the stuff that index.js lazily exports
22270
22316
  const internalRe = requireRe();
22271
22317
  const constants = requireConstants$1();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m2c2kit/build-helpers",
3
- "version": "0.3.25",
3
+ "version": "0.3.27",
4
4
  "description": "Utility functions for building m2c2kit apps",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -15,22 +15,24 @@
15
15
  "dist/index.d.ts"
16
16
  ],
17
17
  "devDependencies": {
18
- "@rollup/plugin-commonjs": "28.0.3",
18
+ "@rollup/plugin-commonjs": "28.0.5",
19
19
  "@rollup/plugin-json": "6.1.0",
20
20
  "@rollup/plugin-node-resolve": "16.0.1",
21
21
  "@rollup/plugin-replace": "6.0.2",
22
22
  "@types/findup-sync": "4.0.5",
23
+ "@types/fs-extra": "11.0.4",
23
24
  "@types/semver": "7.7.0",
24
25
  "cpy": "10.1.0",
25
26
  "findup-sync": "5.0.0",
27
+ "fs-extra": "11.3.0",
26
28
  "magic-string": "0.30.17",
27
29
  "rimraf": "6.0.1",
28
- "rollup": "4.37.0",
30
+ "rollup": "4.43.0",
29
31
  "rollup-plugin-copy": "3.5.0",
30
32
  "rollup-plugin-dts": "6.2.1",
31
33
  "rollup-plugin-esbuild": "6.2.1",
32
- "semver": "7.7.1",
33
- "typescript": "5.8.2"
34
+ "semver": "7.7.2",
35
+ "typescript": "5.8.3"
34
36
  },
35
37
  "scripts": {
36
38
  "build": "npm run clean && tsc && rollup -c",