@atlaspack/fs 2.12.1-dev.3367 → 2.12.1-dev.3398

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/lib/index.js CHANGED
@@ -14,11 +14,11 @@ var $dlC2Z$atlaspackworkers = require("@atlaspack/workers");
14
14
  var $dlC2Z$events = require("events");
15
15
 
16
16
 
17
- function $atlaspack$interopDefault(a) {
17
+ function $parcel$interopDefault(a) {
18
18
  return a && a.__esModule ? a.default : a;
19
19
  }
20
20
 
21
- function $atlaspack$exportWildcard(dest, source) {
21
+ function $parcel$exportWildcard(dest, source) {
22
22
  Object.keys(source).forEach(function(key) {
23
23
  if (key === 'default' || key === '__esModule' || Object.prototype.hasOwnProperty.call(dest, key)) {
24
24
  return;
@@ -35,19 +35,19 @@ function $atlaspack$exportWildcard(dest, source) {
35
35
  return dest;
36
36
  }
37
37
 
38
- function $atlaspack$export(e, n, v, s) {
38
+ function $parcel$export(e, n, v, s) {
39
39
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
40
40
  }
41
41
 
42
- var $atlaspack$global = globalThis;
42
+ var $parcel$global = globalThis;
43
43
 
44
- $atlaspack$export(module.exports, "ncp", () => $4256a6714e3958a6$export$d3a8044e3fef7335);
44
+ $parcel$export(module.exports, "ncp", () => $4256a6714e3958a6$export$d3a8044e3fef7335);
45
45
 
46
46
 
47
47
 
48
48
  var $fd5eb542960b5f45$exports = {};
49
49
 
50
- $atlaspack$export($fd5eb542960b5f45$exports, "NodeFS", () => $fd5eb542960b5f45$export$c4e0ef2ab73c21e7);
50
+ $parcel$export($fd5eb542960b5f45$exports, "NodeFS", () => $fd5eb542960b5f45$export$c4e0ef2ab73c21e7);
51
51
  var $1b674202ab68c176$exports = {};
52
52
 
53
53
  var $62dc3839f187e943$exports = {};
@@ -482,7 +482,7 @@ else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) $1b674202ab68c176$var$d
482
482
  // Once time initialization
483
483
  if (!$dlC2Z$fs[$1b674202ab68c176$var$gracefulQueue]) {
484
484
  // This queue can be shared by multiple loaded instances
485
- var $1b674202ab68c176$var$queue = $atlaspack$global[$1b674202ab68c176$var$gracefulQueue] || [];
485
+ var $1b674202ab68c176$var$queue = $parcel$global[$1b674202ab68c176$var$gracefulQueue] || [];
486
486
  $1b674202ab68c176$var$publishQueue($dlC2Z$fs, $1b674202ab68c176$var$queue);
487
487
  // Patch fs.close/closeSync to shared queue version, because we need
488
488
  // to retry() whenever a close happens *anywhere* in the program.
@@ -517,7 +517,7 @@ if (!$dlC2Z$fs[$1b674202ab68c176$var$gracefulQueue]) {
517
517
  $dlC2Z$assert.equal($dlC2Z$fs[$1b674202ab68c176$var$gracefulQueue].length, 0);
518
518
  });
519
519
  }
520
- if (!$atlaspack$global[$1b674202ab68c176$var$gracefulQueue]) $1b674202ab68c176$var$publishQueue($atlaspack$global, $dlC2Z$fs[$1b674202ab68c176$var$gracefulQueue]);
520
+ if (!$parcel$global[$1b674202ab68c176$var$gracefulQueue]) $1b674202ab68c176$var$publishQueue($parcel$global, $dlC2Z$fs[$1b674202ab68c176$var$gracefulQueue]);
521
521
  $1b674202ab68c176$exports = $1b674202ab68c176$var$patch($3c4b7a3d3568cdcd$exports($dlC2Z$fs));
522
522
  if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !$dlC2Z$fs.__patched) {
523
523
  $1b674202ab68c176$exports = $1b674202ab68c176$var$patch($dlC2Z$fs);
@@ -1017,35 +1017,35 @@ function $c023d554c0890ceb$var$ncp(source, dest, options, callback) {
1017
1017
 
1018
1018
 
1019
1019
  var $eebb6ebf9f6069d2$exports = {};
1020
- $eebb6ebf9f6069d2$exports = JSON.parse("{\"name\":\"@atlaspack/fs\",\"version\":\"2.12.1-dev.3367+07fefed65\",\"description\":\"Blazing fast, zero configuration web application bundler\",\"license\":\"MIT\",\"publishConfig\":{\"access\":\"public\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/atlassian-labs/atlaspack.git\"},\"main\":\"lib/index.js\",\"source\":\"src/index.js\",\"types\":\"index.d.ts\",\"engines\":{\"node\":\">= 16.0.0\"},\"targets\":{\"types\":false,\"main\":{\"includeNodeModules\":{\"@atlaspack/core\":false,\"@atlaspack/feature-flags\":false,\"@atlaspack/rust\":false,\"@atlaspack/types-internal\":false,\"@atlaspack/utils\":false,\"@atlaspack/watcher-watchman-js\":false,\"@parcel/watcher\":false,\"@atlaspack/workers\":false}},\"browser\":{\"includeNodeModules\":{\"@atlaspack/core\":false,\"@atlaspack/feature-flags\":false,\"@atlaspack/rust\":false,\"@atlaspack/types-internal\":false,\"@atlaspack/utils\":false,\"@atlaspack/watcher-watchman-js\":false,\"@parcel/watcher\":false,\"@atlaspack/workers\":false}}},\"scripts\":{\"build-ts\":\"mkdir -p lib && flow-to-ts src/types.js > lib/types.d.ts\",\"check-ts\":\"tsc --noEmit index.d.ts\"},\"dependencies\":{\"@atlaspack/feature-flags\":\"2.12.1-dev.3367+07fefed65\",\"@atlaspack/rust\":\"2.12.1-dev.3367+07fefed65\",\"@atlaspack/types-internal\":\"2.12.1-dev.3367+07fefed65\",\"@atlaspack/utils\":\"2.12.1-dev.3367+07fefed65\",\"@atlaspack/workers\":\"2.12.1-dev.3367+07fefed65\",\"@parcel/watcher\":\"^2.0.7\"},\"devDependencies\":{\"@atlaspack/watcher-watchman-js\":\"2.12.1-dev.3367+07fefed65\",\"graceful-fs\":\"^4.2.4\",\"ncp\":\"^2.0.0\",\"nullthrows\":\"^1.1.1\",\"utility-types\":\"^3.10.0\"},\"peerDependencies\":{\"@atlaspack/core\":\"^2.12.1-dev.3367+07fefed65\"},\"browser\":{\"@atlaspack/fs\":\"./lib/browser.js\",\"./src/NodeFS.js\":\"./src/NodeFS.browser.js\"},\"gitHead\":\"07fefed65a9a4d7bd0bdc9c45b39704ee4ca70dd\"}");
1020
+ $eebb6ebf9f6069d2$exports = JSON.parse("{\"name\":\"@atlaspack/fs\",\"version\":\"2.12.1-dev.3398+81c73b3cd\",\"description\":\"Blazing fast, zero configuration web application bundler\",\"license\":\"MIT\",\"publishConfig\":{\"access\":\"public\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/atlassian-labs/atlaspack.git\"},\"main\":\"lib/index.js\",\"source\":\"src/index.js\",\"types\":\"index.d.ts\",\"engines\":{\"node\":\">= 16.0.0\"},\"targets\":{\"types\":false,\"main\":{\"includeNodeModules\":{\"@atlaspack/core\":false,\"@atlaspack/feature-flags\":false,\"@atlaspack/rust\":false,\"@atlaspack/types-internal\":false,\"@atlaspack/utils\":false,\"@atlaspack/watcher-watchman-js\":false,\"@parcel/watcher\":false,\"@atlaspack/workers\":false}},\"browser\":{\"includeNodeModules\":{\"@atlaspack/core\":false,\"@atlaspack/feature-flags\":false,\"@atlaspack/rust\":false,\"@atlaspack/types-internal\":false,\"@atlaspack/utils\":false,\"@atlaspack/watcher-watchman-js\":false,\"@parcel/watcher\":false,\"@atlaspack/workers\":false}}},\"scripts\":{\"build-ts\":\"mkdir -p lib && flow-to-ts src/types.js > lib/types.d.ts\",\"check-ts\":\"tsc --noEmit index.d.ts\"},\"dependencies\":{\"@atlaspack/feature-flags\":\"2.12.1-dev.3398+81c73b3cd\",\"@atlaspack/rust\":\"2.12.1-dev.3398+81c73b3cd\",\"@atlaspack/types-internal\":\"2.12.1-dev.3398+81c73b3cd\",\"@atlaspack/utils\":\"2.12.1-dev.3398+81c73b3cd\",\"@atlaspack/workers\":\"2.12.1-dev.3398+81c73b3cd\",\"@parcel/watcher\":\"^2.0.7\"},\"devDependencies\":{\"@atlaspack/watcher-watchman-js\":\"2.12.1-dev.3398+81c73b3cd\",\"graceful-fs\":\"^4.2.4\",\"ncp\":\"^2.0.0\",\"nullthrows\":\"^1.1.1\",\"utility-types\":\"^3.10.0\"},\"peerDependencies\":{\"@atlaspack/core\":\"^2.12.1-dev.3398+81c73b3cd\"},\"browser\":{\"@atlaspack/fs\":\"./lib/browser.js\",\"./src/NodeFS.js\":\"./src/NodeFS.browser.js\"},\"gitHead\":\"81c73b3cdf93adf8b0013be9fed5422579bd5910\"}");
1021
1021
 
1022
1022
 
1023
1023
 
1024
1024
 
1025
1025
  function $c5a03bd108f66311$export$4c6d088a7d7f9947(fs, moduleName, dir) {
1026
- let { root: root } = (0, ($atlaspack$interopDefault($dlC2Z$path))).parse(dir);
1026
+ let { root: root } = (0, ($parcel$interopDefault($dlC2Z$path))).parse(dir);
1027
1027
  while(dir !== root){
1028
1028
  // Skip node_modules directories
1029
- if ((0, ($atlaspack$interopDefault($dlC2Z$path))).basename(dir) === 'node_modules') dir = (0, ($atlaspack$interopDefault($dlC2Z$path))).dirname(dir);
1029
+ if ((0, ($parcel$interopDefault($dlC2Z$path))).basename(dir) === 'node_modules') dir = (0, ($parcel$interopDefault($dlC2Z$path))).dirname(dir);
1030
1030
  try {
1031
- let moduleDir = (0, ($atlaspack$interopDefault($dlC2Z$path))).join(dir, 'node_modules', moduleName);
1031
+ let moduleDir = (0, ($parcel$interopDefault($dlC2Z$path))).join(dir, 'node_modules', moduleName);
1032
1032
  let stats = fs.statSync(moduleDir);
1033
1033
  if (stats.isDirectory()) return moduleDir;
1034
1034
  } catch (err) {
1035
1035
  // ignore
1036
1036
  }
1037
1037
  // Move up a directory
1038
- dir = (0, ($atlaspack$interopDefault($dlC2Z$path))).dirname(dir);
1038
+ dir = (0, ($parcel$interopDefault($dlC2Z$path))).dirname(dir);
1039
1039
  }
1040
1040
  return null;
1041
1041
  }
1042
1042
  function $c5a03bd108f66311$export$d51a93c758976388(fs, fileNames, dir, root) {
1043
- let { root: pathRoot } = (0, ($atlaspack$interopDefault($dlC2Z$path))).parse(dir);
1043
+ let { root: pathRoot } = (0, ($parcel$interopDefault($dlC2Z$path))).parse(dir);
1044
1044
  // eslint-disable-next-line no-constant-condition
1045
1045
  while(true){
1046
- if ((0, ($atlaspack$interopDefault($dlC2Z$path))).basename(dir) === 'node_modules') return null;
1046
+ if ((0, ($parcel$interopDefault($dlC2Z$path))).basename(dir) === 'node_modules') return null;
1047
1047
  for (const fileName of fileNames){
1048
- let filePath = (0, ($atlaspack$interopDefault($dlC2Z$path))).join(dir, fileName);
1048
+ let filePath = (0, ($parcel$interopDefault($dlC2Z$path))).join(dir, fileName);
1049
1049
  try {
1050
1050
  if (fs.statSync(filePath).isFile()) return filePath;
1051
1051
  } catch (err) {
@@ -1053,7 +1053,7 @@ function $c5a03bd108f66311$export$d51a93c758976388(fs, fileNames, dir, root) {
1053
1053
  }
1054
1054
  }
1055
1055
  if (dir === root || dir === pathRoot) break;
1056
- dir = (0, ($atlaspack$interopDefault($dlC2Z$path))).dirname(dir);
1056
+ dir = (0, ($parcel$interopDefault($dlC2Z$path))).dirname(dir);
1057
1057
  }
1058
1058
  return null;
1059
1059
  }
@@ -1068,10 +1068,10 @@ function $c5a03bd108f66311$export$64df6e3182fd5b2d(fs, filePaths) {
1068
1068
 
1069
1069
  // Most of this can go away once we only support Node 10+, which includes
1070
1070
  // require('fs').promises
1071
- const $fd5eb542960b5f45$var$realpath = (0, $dlC2Z$util.promisify)(process.platform === 'win32' ? (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).realpath : (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).realpath.native);
1071
+ const $fd5eb542960b5f45$var$realpath = (0, $dlC2Z$util.promisify)(process.platform === 'win32' ? (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).realpath : (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).realpath.native);
1072
1072
  const $fd5eb542960b5f45$var$isPnP = process.versions.pnp != null;
1073
1073
  function $fd5eb542960b5f45$var$getWatchmanWatcher() {
1074
- // This is here to trick atlaspack into ignoring this require...
1074
+ // This is here to trick parcel into ignoring this require...
1075
1075
  const packageName = [
1076
1076
  '@atlaspack',
1077
1077
  'watcher-watchman-js'
@@ -1080,26 +1080,26 @@ function $fd5eb542960b5f45$var$getWatchmanWatcher() {
1080
1080
  return require(packageName);
1081
1081
  }
1082
1082
  class $fd5eb542960b5f45$export$c4e0ef2ab73c21e7 {
1083
- readFile = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).readFile);
1084
- copyFile = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).copyFile);
1085
- stat = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).stat);
1086
- readdir = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).readdir);
1087
- symlink = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).symlink);
1088
- unlink = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).unlink);
1089
- utimes = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).utimes);
1090
- ncp = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$atlaspack$interopDefault($c023d554c0890ceb$exports))));
1091
- createReadStream = (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).createReadStream;
1083
+ readFile = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).readFile);
1084
+ copyFile = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).copyFile);
1085
+ stat = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).stat);
1086
+ readdir = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).readdir);
1087
+ symlink = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).symlink);
1088
+ unlink = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).unlink);
1089
+ utimes = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).utimes);
1090
+ ncp = (0, $dlC2Z$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($c023d554c0890ceb$exports))));
1091
+ createReadStream = (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).createReadStream;
1092
1092
  cwd = ()=>process.cwd();
1093
1093
  chdir = (directory)=>process.chdir(directory);
1094
- statSync = (path)=>(0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).statSync(path);
1095
- realpathSync = process.platform === 'win32' ? (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).realpathSync : (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).realpathSync.native;
1096
- existsSync = (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).existsSync;
1097
- readdirSync = (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).readdirSync;
1094
+ statSync = (path)=>(0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).statSync(path);
1095
+ realpathSync = process.platform === 'win32' ? (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).realpathSync : (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).realpathSync.native;
1096
+ existsSync = (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).existsSync;
1097
+ readdirSync = (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).readdirSync;
1098
1098
  findAncestorFile = $fd5eb542960b5f45$var$isPnP ? (...args)=>$c5a03bd108f66311$export$d51a93c758976388(this, ...args) : $dlC2Z$atlaspackrust.findAncestorFile;
1099
1099
  findNodeModule = $fd5eb542960b5f45$var$isPnP ? (...args)=>$c5a03bd108f66311$export$4c6d088a7d7f9947(this, ...args) : $dlC2Z$atlaspackrust.findNodeModule;
1100
1100
  findFirstFile = $fd5eb542960b5f45$var$isPnP ? (...args)=>$c5a03bd108f66311$export$64df6e3182fd5b2d(this, ...args) : $dlC2Z$atlaspackrust.findFirstFile;
1101
1101
  watcher() {
1102
- return (0, $dlC2Z$atlaspackfeatureflags.getFeatureFlag)('useWatchmanWatcher') ? $fd5eb542960b5f45$var$getWatchmanWatcher() : (0, ($atlaspack$interopDefault($dlC2Z$parcelwatcher)));
1102
+ return (0, $dlC2Z$atlaspackfeatureflags.getFeatureFlag)('useWatchmanWatcher') ? $fd5eb542960b5f45$var$getWatchmanWatcher() : (0, ($parcel$interopDefault($dlC2Z$parcelwatcher)));
1103
1103
  }
1104
1104
  createWriteStream(filePath, options) {
1105
1105
  // Make createWriteStream atomic
@@ -1107,7 +1107,7 @@ class $fd5eb542960b5f45$export$c4e0ef2ab73c21e7 {
1107
1107
  let failed = false;
1108
1108
  const move = async ()=>{
1109
1109
  if (!failed) try {
1110
- await (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).promises.rename(tmpFilePath, filePath);
1110
+ await (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).promises.rename(tmpFilePath, filePath);
1111
1111
  } catch (e) {
1112
1112
  // This is adapted from fs-write-stream-atomic. Apparently
1113
1113
  // Windows doesn't like renaming when the target already exists.
@@ -1121,12 +1121,12 @@ class $fd5eb542960b5f45$export$c4e0ef2ab73c21e7 {
1121
1121
  }
1122
1122
  }
1123
1123
  };
1124
- let writeStream = (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).createWriteStream(tmpFilePath, {
1124
+ let writeStream = (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).createWriteStream(tmpFilePath, {
1125
1125
  ...options,
1126
1126
  fs: {
1127
- ...(0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))),
1127
+ ...(0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))),
1128
1128
  close: (fd, cb)=>{
1129
- (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).close(fd, (err)=>{
1129
+ (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).close(fd, (err)=>{
1130
1130
  if (err) cb(err);
1131
1131
  else move().then(()=>cb(), (err)=>cb(err));
1132
1132
  });
@@ -1135,18 +1135,18 @@ class $fd5eb542960b5f45$export$c4e0ef2ab73c21e7 {
1135
1135
  });
1136
1136
  writeStream.once('error', ()=>{
1137
1137
  failed = true;
1138
- (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).unlinkSync(tmpFilePath);
1138
+ (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).unlinkSync(tmpFilePath);
1139
1139
  });
1140
1140
  return writeStream;
1141
1141
  }
1142
1142
  async writeFile(filePath, contents, options) {
1143
1143
  let tmpFilePath = $fd5eb542960b5f45$var$getTempFilePath(filePath);
1144
- await (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).promises.writeFile(tmpFilePath, contents, options);
1145
- await (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).promises.rename(tmpFilePath, filePath);
1144
+ await (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).promises.writeFile(tmpFilePath, contents, options);
1145
+ await (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).promises.rename(tmpFilePath, filePath);
1146
1146
  }
1147
1147
  readFileSync(filePath, encoding) {
1148
- if (encoding != null) return (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).readFileSync(filePath, encoding);
1149
- return (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).readFileSync(filePath);
1148
+ if (encoding != null) return (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).readFileSync(filePath, encoding);
1149
+ return (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).readFileSync(filePath);
1150
1150
  }
1151
1151
  async realpath(originalPath) {
1152
1152
  try {
@@ -1158,7 +1158,7 @@ class $fd5eb542960b5f45$export$c4e0ef2ab73c21e7 {
1158
1158
  }
1159
1159
  exists(filePath) {
1160
1160
  return new Promise((resolve)=>{
1161
- (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).exists(filePath, resolve);
1161
+ (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).exists(filePath, resolve);
1162
1162
  });
1163
1163
  }
1164
1164
  watch(dir, fn, opts) {
@@ -1177,13 +1177,13 @@ class $fd5eb542960b5f45$export$c4e0ef2ab73c21e7 {
1177
1177
  return null;
1178
1178
  }
1179
1179
  async mkdirp(filePath) {
1180
- await (0, ($atlaspack$interopDefault($dlC2Z$fs))).promises.mkdir(filePath, {
1180
+ await (0, ($parcel$interopDefault($dlC2Z$fs))).promises.mkdir(filePath, {
1181
1181
  recursive: true
1182
1182
  });
1183
1183
  }
1184
1184
  async rimraf(filePath) {
1185
- if ((0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).promises.rm) {
1186
- await (0, (/*@__PURE__*/$atlaspack$interopDefault($1b674202ab68c176$exports))).promises.rm(filePath, {
1185
+ if ((0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).promises.rm) {
1186
+ await (0, (/*@__PURE__*/$parcel$interopDefault($1b674202ab68c176$exports))).promises.rm(filePath, {
1187
1187
  recursive: true,
1188
1188
  force: true
1189
1189
  });
@@ -1197,13 +1197,13 @@ class $fd5eb542960b5f45$export$c4e0ef2ab73c21e7 {
1197
1197
  return;
1198
1198
  }
1199
1199
  if (stat.isDirectory()) // $FlowFixMe
1200
- await (0, ($atlaspack$interopDefault($dlC2Z$fs))).promises.rmdir(filePath, {
1200
+ await (0, ($parcel$interopDefault($dlC2Z$fs))).promises.rmdir(filePath, {
1201
1201
  recursive: true
1202
1202
  });
1203
- else await (0, ($atlaspack$interopDefault($dlC2Z$fs))).promises.unlink(filePath);
1203
+ else await (0, ($parcel$interopDefault($dlC2Z$fs))).promises.unlink(filePath);
1204
1204
  }
1205
1205
  }
1206
- (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$atlaspack$interopDefault($eebb6ebf9f6069d2$exports))).version}:NodeFS`, $fd5eb542960b5f45$export$c4e0ef2ab73c21e7);
1206
+ (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eebb6ebf9f6069d2$exports))).version}:NodeFS`, $fd5eb542960b5f45$export$c4e0ef2ab73c21e7);
1207
1207
  let $fd5eb542960b5f45$var$writeStreamCalls = 0;
1208
1208
  let $fd5eb542960b5f45$var$threadId;
1209
1209
 
@@ -1217,9 +1217,9 @@ function $fd5eb542960b5f45$var$shouldUseOsTmpDir(filePath) {
1217
1217
  if ($fd5eb542960b5f45$var$useOsTmpDir != null) return $fd5eb542960b5f45$var$useOsTmpDir;
1218
1218
  try {
1219
1219
  const tmpDir = (0, $dlC2Z$os.tmpdir)();
1220
- (0, ($atlaspack$interopDefault($dlC2Z$fs))).accessSync(tmpDir, (0, ($atlaspack$interopDefault($dlC2Z$fs))).constants.R_OK | (0, ($atlaspack$interopDefault($dlC2Z$fs))).constants.W_OK);
1221
- const tmpDirStats = (0, ($atlaspack$interopDefault($dlC2Z$fs))).statSync(tmpDir);
1222
- const filePathStats = (0, ($atlaspack$interopDefault($dlC2Z$fs))).statSync(filePath);
1220
+ (0, ($parcel$interopDefault($dlC2Z$fs))).accessSync(tmpDir, (0, ($parcel$interopDefault($dlC2Z$fs))).constants.R_OK | (0, ($parcel$interopDefault($dlC2Z$fs))).constants.W_OK);
1221
+ const tmpDirStats = (0, ($parcel$interopDefault($dlC2Z$fs))).statSync(tmpDir);
1222
+ const filePathStats = (0, ($parcel$interopDefault($dlC2Z$fs))).statSync(filePath);
1223
1223
  // Check the tmpdir is on the same partition as the target directory.
1224
1224
  // This is required to ensure renaming is an atomic operation.
1225
1225
  $fd5eb542960b5f45$var$useOsTmpDir = tmpDirStats.dev === filePathStats.dev;
@@ -1235,17 +1235,17 @@ function $fd5eb542960b5f45$var$getTempFilePath(filePath) {
1235
1235
  let tmpFilePath = filePath;
1236
1236
  // If possible, write the tmp file to the OS tmp directory
1237
1237
  // This reduces the amount of FS events the watcher needs to process during the build
1238
- if ($fd5eb542960b5f45$var$shouldUseOsTmpDir(filePath)) tmpFilePath = (0, ($atlaspack$interopDefault($dlC2Z$path))).join((0, $dlC2Z$os.tmpdir)(), (0, ($atlaspack$interopDefault($dlC2Z$path))).basename(filePath));
1238
+ if ($fd5eb542960b5f45$var$shouldUseOsTmpDir(filePath)) tmpFilePath = (0, ($parcel$interopDefault($dlC2Z$path))).join((0, $dlC2Z$os.tmpdir)(), (0, ($parcel$interopDefault($dlC2Z$path))).basename(filePath));
1239
1239
  return tmpFilePath + '.' + process.pid + ($fd5eb542960b5f45$var$threadId != null ? '.' + $fd5eb542960b5f45$var$threadId : '') + '.' + ($fd5eb542960b5f45$var$writeStreamCalls++).toString(36);
1240
1240
  }
1241
1241
 
1242
1242
 
1243
1243
  var $7b991d7841c5927f$exports = {};
1244
1244
 
1245
- $atlaspack$export($7b991d7841c5927f$exports, "MemoryFS", () => $7b991d7841c5927f$export$3048eb7ec07c2c4e);
1246
- $atlaspack$export($7b991d7841c5927f$exports, "FSError", () => $7b991d7841c5927f$export$d414276624ebf134);
1247
- $atlaspack$export($7b991d7841c5927f$exports, "makeShared", () => $7b991d7841c5927f$export$df9eb3e75aa27a22);
1248
- $atlaspack$export($7b991d7841c5927f$exports, "File", () => $7b991d7841c5927f$export$b6afa8811b7e644e);
1245
+ $parcel$export($7b991d7841c5927f$exports, "MemoryFS", () => $7b991d7841c5927f$export$3048eb7ec07c2c4e);
1246
+ $parcel$export($7b991d7841c5927f$exports, "FSError", () => $7b991d7841c5927f$export$d414276624ebf134);
1247
+ $parcel$export($7b991d7841c5927f$exports, "makeShared", () => $7b991d7841c5927f$export$df9eb3e75aa27a22);
1248
+ $parcel$export($7b991d7841c5927f$exports, "File", () => $7b991d7841c5927f$export$b6afa8811b7e644e);
1249
1249
 
1250
1250
 
1251
1251
 
@@ -1274,10 +1274,10 @@ let $7b991d7841c5927f$var$id = 0;
1274
1274
  class $7b991d7841c5927f$export$3048eb7ec07c2c4e {
1275
1275
  _numWorkerInstances = 0;
1276
1276
  _workerRegisterResolves = [];
1277
- _emitter = new (0, ($atlaspack$interopDefault($dlC2Z$events)))();
1277
+ _emitter = new (0, ($parcel$interopDefault($dlC2Z$events)))();
1278
1278
  constructor(workerFarm){
1279
1279
  this.farm = workerFarm;
1280
- this._cwd = (0, ($atlaspack$interopDefault($dlC2Z$path))).resolve((0, ($atlaspack$interopDefault($dlC2Z$path))).sep);
1280
+ this._cwd = (0, ($parcel$interopDefault($dlC2Z$path))).resolve((0, ($parcel$interopDefault($dlC2Z$path))).sep);
1281
1281
  this.dirs = new Map([
1282
1282
  [
1283
1283
  this._cwd,
@@ -1301,13 +1301,13 @@ class $7b991d7841c5927f$export$3048eb7ec07c2c4e {
1301
1301
  let existing = $7b991d7841c5927f$var$instances.get(opts.id);
1302
1302
  if (existing != null) {
1303
1303
  // Correct the count of worker instances since serialization assumes a new instance is created
1304
- (0, ($atlaspack$interopDefault($dlC2Z$atlaspackworkers))).getWorkerApi().runHandle(opts.handle, [
1304
+ (0, ($parcel$interopDefault($dlC2Z$atlaspackworkers))).getWorkerApi().runHandle(opts.handle, [
1305
1305
  'decrementWorkerInstance',
1306
1306
  []
1307
1307
  ]);
1308
1308
  return existing;
1309
1309
  }
1310
- let fs = new $7b991d7841c5927f$var$WorkerFS(opts.id, (0, (/*@__PURE__*/$atlaspack$interopDefault($1acbdc46f00ee4fb$exports)))(opts.handle));
1310
+ let fs = new $7b991d7841c5927f$var$WorkerFS(opts.id, (0, (/*@__PURE__*/$parcel$interopDefault($1acbdc46f00ee4fb$exports)))(opts.handle));
1311
1311
  fs.dirs = opts.dirs;
1312
1312
  fs.files = opts.files;
1313
1313
  fs.symlinks = opts.symlinks;
@@ -1340,15 +1340,15 @@ class $7b991d7841c5927f$export$3048eb7ec07c2c4e {
1340
1340
  this._cwd = dir;
1341
1341
  }
1342
1342
  _normalizePath(filePath, realpath = true) {
1343
- filePath = (0, ($atlaspack$interopDefault($dlC2Z$path))).normalize(filePath);
1344
- if (!filePath.startsWith(this.cwd())) filePath = (0, ($atlaspack$interopDefault($dlC2Z$path))).resolve(this.cwd(), filePath);
1343
+ filePath = (0, ($parcel$interopDefault($dlC2Z$path))).normalize(filePath);
1344
+ if (!filePath.startsWith(this.cwd())) filePath = (0, ($parcel$interopDefault($dlC2Z$path))).resolve(this.cwd(), filePath);
1345
1345
  // get realpath by following symlinks
1346
1346
  if (realpath) {
1347
- let { root: root, dir: dir, base: base } = (0, ($atlaspack$interopDefault($dlC2Z$path))).parse(filePath);
1348
- let parts = dir.slice(root.length).split((0, ($atlaspack$interopDefault($dlC2Z$path))).sep).concat(base);
1347
+ let { root: root, dir: dir, base: base } = (0, ($parcel$interopDefault($dlC2Z$path))).parse(filePath);
1348
+ let parts = dir.slice(root.length).split((0, ($parcel$interopDefault($dlC2Z$path))).sep).concat(base);
1349
1349
  let res = root;
1350
1350
  for (let part of parts){
1351
- res = (0, ($atlaspack$interopDefault($dlC2Z$path))).join(res, part);
1351
+ res = (0, ($parcel$interopDefault($dlC2Z$path))).join(res, part);
1352
1352
  let symlink = this.symlinks.get(res);
1353
1353
  if (symlink) res = symlink;
1354
1354
  }
@@ -1359,7 +1359,7 @@ class $7b991d7841c5927f$export$3048eb7ec07c2c4e {
1359
1359
  async writeFile(filePath, contents, options) {
1360
1360
  filePath = this._normalizePath(filePath);
1361
1361
  if (this.dirs.has(filePath)) throw new $7b991d7841c5927f$export$d414276624ebf134('EISDIR', filePath, 'is a directory');
1362
- let dir = (0, ($atlaspack$interopDefault($dlC2Z$path))).dirname(filePath);
1362
+ let dir = (0, ($parcel$interopDefault($dlC2Z$path))).dirname(filePath);
1363
1363
  if (!this.dirs.has(dir)) throw new $7b991d7841c5927f$export$d414276624ebf134('ENOENT', dir, 'does not exist');
1364
1364
  let buffer = $7b991d7841c5927f$export$df9eb3e75aa27a22(contents);
1365
1365
  let file = this.files.get(filePath);
@@ -1409,22 +1409,22 @@ class $7b991d7841c5927f$export$3048eb7ec07c2c4e {
1409
1409
  readdirSync(dir, opts) {
1410
1410
  dir = this._normalizePath(dir);
1411
1411
  if (!this.dirs.has(dir)) throw new $7b991d7841c5927f$export$d414276624ebf134('ENOENT', dir, 'does not exist');
1412
- if (!dir.endsWith((0, ($atlaspack$interopDefault($dlC2Z$path))).sep)) dir += (0, ($atlaspack$interopDefault($dlC2Z$path))).sep;
1412
+ if (!dir.endsWith((0, ($parcel$interopDefault($dlC2Z$path))).sep)) dir += (0, ($parcel$interopDefault($dlC2Z$path))).sep;
1413
1413
  let res = [];
1414
1414
  for (let [filePath, entry] of this.dirs){
1415
1415
  if (filePath === dir) continue;
1416
- if (filePath.startsWith(dir) && filePath.indexOf((0, ($atlaspack$interopDefault($dlC2Z$path))).sep, dir.length) === -1) {
1416
+ if (filePath.startsWith(dir) && filePath.indexOf((0, ($parcel$interopDefault($dlC2Z$path))).sep, dir.length) === -1) {
1417
1417
  let name = filePath.slice(dir.length);
1418
1418
  if (opts?.withFileTypes) res.push(new $7b991d7841c5927f$var$Dirent(name, entry));
1419
1419
  else res.push(name);
1420
1420
  }
1421
1421
  }
1422
- for (let [filePath, entry] of this.files)if (filePath.startsWith(dir) && filePath.indexOf((0, ($atlaspack$interopDefault($dlC2Z$path))).sep, dir.length) === -1) {
1422
+ for (let [filePath, entry] of this.files)if (filePath.startsWith(dir) && filePath.indexOf((0, ($parcel$interopDefault($dlC2Z$path))).sep, dir.length) === -1) {
1423
1423
  let name = filePath.slice(dir.length);
1424
1424
  if (opts?.withFileTypes) res.push(new $7b991d7841c5927f$var$Dirent(name, entry));
1425
1425
  else res.push(name);
1426
1426
  }
1427
- for (let [from] of this.symlinks)if (from.startsWith(dir) && from.indexOf((0, ($atlaspack$interopDefault($dlC2Z$path))).sep, dir.length) === -1) {
1427
+ for (let [from] of this.symlinks)if (from.startsWith(dir) && from.indexOf((0, ($parcel$interopDefault($dlC2Z$path))).sep, dir.length) === -1) {
1428
1428
  let name = from.slice(dir.length);
1429
1429
  if (opts?.withFileTypes) res.push(new $7b991d7841c5927f$var$Dirent(name, {
1430
1430
  mode: $7b991d7841c5927f$var$S_IFLNK
@@ -1457,7 +1457,7 @@ class $7b991d7841c5927f$export$3048eb7ec07c2c4e {
1457
1457
  dir = this._normalizePath(dir);
1458
1458
  if (this.dirs.has(dir)) return Promise.resolve();
1459
1459
  if (this.files.has(dir)) throw new $7b991d7841c5927f$export$d414276624ebf134('ENOENT', dir, 'is not a directory');
1460
- let root = (0, ($atlaspack$interopDefault($dlC2Z$path))).parse(dir).root;
1460
+ let root = (0, ($parcel$interopDefault($dlC2Z$path))).parse(dir).root;
1461
1461
  while(dir !== root){
1462
1462
  if (this.dirs.has(dir)) break;
1463
1463
  this.dirs.set(dir, new $7b991d7841c5927f$var$Directory());
@@ -1469,14 +1469,14 @@ class $7b991d7841c5927f$export$3048eb7ec07c2c4e {
1469
1469
  type: 'create',
1470
1470
  path: dir
1471
1471
  });
1472
- dir = (0, ($atlaspack$interopDefault($dlC2Z$path))).dirname(dir);
1472
+ dir = (0, ($parcel$interopDefault($dlC2Z$path))).dirname(dir);
1473
1473
  }
1474
1474
  return Promise.resolve();
1475
1475
  }
1476
1476
  async rimraf(filePath) {
1477
1477
  filePath = this._normalizePath(filePath);
1478
1478
  if (this.dirs.has(filePath)) {
1479
- let dir = filePath + (0, ($atlaspack$interopDefault($dlC2Z$path))).sep;
1479
+ let dir = filePath + (0, ($parcel$interopDefault($dlC2Z$path))).sep;
1480
1480
  for (let filePath of this.files.keys())if (filePath.startsWith(dir)) {
1481
1481
  this.files.delete(filePath);
1482
1482
  await this._sendWorkerEvent({
@@ -1543,9 +1543,9 @@ class $7b991d7841c5927f$export$3048eb7ec07c2c4e {
1543
1543
  path: destination
1544
1544
  });
1545
1545
  }
1546
- let dir = source + (0, ($atlaspack$interopDefault($dlC2Z$path))).sep;
1546
+ let dir = source + (0, ($parcel$interopDefault($dlC2Z$path))).sep;
1547
1547
  for (let dirPath of this.dirs.keys())if (dirPath.startsWith(dir)) {
1548
- let destName = (0, ($atlaspack$interopDefault($dlC2Z$path))).join(destination, dirPath.slice(dir.length));
1548
+ let destName = (0, ($parcel$interopDefault($dlC2Z$path))).join(destination, dirPath.slice(dir.length));
1549
1549
  if (!this.dirs.has(destName)) {
1550
1550
  this.dirs.set(destName, new $7b991d7841c5927f$var$Directory());
1551
1551
  await this._sendWorkerEvent({
@@ -1559,7 +1559,7 @@ class $7b991d7841c5927f$export$3048eb7ec07c2c4e {
1559
1559
  }
1560
1560
  }
1561
1561
  for (let [filePath, file] of this.files)if (filePath.startsWith(dir)) {
1562
- let destName = (0, ($atlaspack$interopDefault($dlC2Z$path))).join(destination, filePath.slice(dir.length));
1562
+ let destName = (0, ($parcel$interopDefault($dlC2Z$path))).join(destination, filePath.slice(dir.length));
1563
1563
  let exists = this.files.has(destName);
1564
1564
  this.files.set(destName, file);
1565
1565
  await this._sendWorkerEvent({
@@ -1615,7 +1615,7 @@ class $7b991d7841c5927f$export$3048eb7ec07c2c4e {
1615
1615
  let events = this._eventQueue;
1616
1616
  this._eventQueue = [];
1617
1617
  for (let [dir, watchers] of this.watchers){
1618
- if (!dir.endsWith((0, ($atlaspack$interopDefault($dlC2Z$path))).sep)) dir += (0, ($atlaspack$interopDefault($dlC2Z$path))).sep;
1618
+ if (!dir.endsWith((0, ($parcel$interopDefault($dlC2Z$path))).sep)) dir += (0, ($parcel$interopDefault($dlC2Z$path))).sep;
1619
1619
  if (event.path.startsWith(dir)) for (let watcher of watchers)watcher.trigger(events);
1620
1620
  }
1621
1621
  }, 50);
@@ -1642,7 +1642,7 @@ class $7b991d7841c5927f$export$3048eb7ec07c2c4e {
1642
1642
  watchers.add(watcher);
1643
1643
  return Promise.resolve({
1644
1644
  unsubscribe: ()=>{
1645
- watchers = (0, (/*@__PURE__*/$atlaspack$interopDefault($1acbdc46f00ee4fb$exports)))(watchers);
1645
+ watchers = (0, (/*@__PURE__*/$parcel$interopDefault($1acbdc46f00ee4fb$exports)))(watchers);
1646
1646
  watchers.delete(watcher);
1647
1647
  if (watchers.size === 0) this.watchers.delete(dir);
1648
1648
  return Promise.resolve();
@@ -1654,7 +1654,7 @@ class $7b991d7841c5927f$export$3048eb7ec07c2c4e {
1654
1654
  let len = Number(contents);
1655
1655
  let events = this.events.slice(len);
1656
1656
  let ignore = opts.ignore;
1657
- if (ignore) events = events.filter((event)=>!ignore.some((i)=>event.path.startsWith(i + (0, ($atlaspack$interopDefault($dlC2Z$path))).sep)));
1657
+ if (ignore) events = events.filter((event)=>!ignore.some((i)=>event.path.startsWith(i + (0, ($parcel$interopDefault($dlC2Z$path))).sep)));
1658
1658
  return events;
1659
1659
  }
1660
1660
  async writeSnapshot(dir, snapshot) {
@@ -1677,7 +1677,7 @@ class $7b991d7841c5927f$var$Watcher {
1677
1677
  }
1678
1678
  trigger(events) {
1679
1679
  let ignore = this.options.ignore;
1680
- if (ignore) events = events.filter((event)=>!ignore.some((i)=>event.path.startsWith(i + (0, ($atlaspack$interopDefault($dlC2Z$path))).sep)));
1680
+ if (ignore) events = events.filter((event)=>!ignore.some((i)=>event.path.startsWith(i + (0, ($parcel$interopDefault($dlC2Z$path))).sep)));
1681
1681
  if (events.length > 0) this.fn(null, events);
1682
1682
  }
1683
1683
  }
@@ -1879,12 +1879,12 @@ class $7b991d7841c5927f$var$WorkerFS extends $7b991d7841c5927f$export$3048eb7ec0
1879
1879
  // $FlowFixMe
1880
1880
  super();
1881
1881
  this.id = id;
1882
- this.handleFn = (methodName, args)=>(0, ($atlaspack$interopDefault($dlC2Z$atlaspackworkers))).getWorkerApi().runHandle(handle, [
1882
+ this.handleFn = (methodName, args)=>(0, ($parcel$interopDefault($dlC2Z$atlaspackworkers))).getWorkerApi().runHandle(handle, [
1883
1883
  methodName,
1884
1884
  args
1885
1885
  ]);
1886
1886
  this.handleFn('_registerWorker', [
1887
- (0, ($atlaspack$interopDefault($dlC2Z$atlaspackworkers))).getWorkerApi().createReverseHandle((event)=>{
1887
+ (0, ($parcel$interopDefault($dlC2Z$atlaspackworkers))).getWorkerApi().createReverseHandle((event)=>{
1888
1888
  switch(event.type){
1889
1889
  case 'writeFile':
1890
1890
  this.files.set(event.path, event.entry);
@@ -1905,7 +1905,7 @@ class $7b991d7841c5927f$var$WorkerFS extends $7b991d7841c5927f$export$3048eb7ec0
1905
1905
  ]);
1906
1906
  }
1907
1907
  static deserialize(opts) {
1908
- return (0, (/*@__PURE__*/$atlaspack$interopDefault($1acbdc46f00ee4fb$exports)))($7b991d7841c5927f$var$instances.get(opts.id));
1908
+ return (0, (/*@__PURE__*/$parcel$interopDefault($1acbdc46f00ee4fb$exports)))($7b991d7841c5927f$var$instances.get(opts.id));
1909
1909
  }
1910
1910
  serialize() {
1911
1911
  // $FlowFixMe
@@ -1955,16 +1955,16 @@ class $7b991d7841c5927f$var$WorkerFS extends $7b991d7841c5927f$export$3048eb7ec0
1955
1955
  ]);
1956
1956
  }
1957
1957
  }
1958
- (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$atlaspack$interopDefault($eebb6ebf9f6069d2$exports))).version}:MemoryFS`, $7b991d7841c5927f$export$3048eb7ec07c2c4e);
1959
- (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$atlaspack$interopDefault($eebb6ebf9f6069d2$exports))).version}:WorkerFS`, $7b991d7841c5927f$var$WorkerFS);
1960
- (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$atlaspack$interopDefault($eebb6ebf9f6069d2$exports))).version}:Stat`, $7b991d7841c5927f$var$Stat);
1961
- (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$atlaspack$interopDefault($eebb6ebf9f6069d2$exports))).version}:File`, $7b991d7841c5927f$export$b6afa8811b7e644e);
1962
- (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$atlaspack$interopDefault($eebb6ebf9f6069d2$exports))).version}:Directory`, $7b991d7841c5927f$var$Directory);
1958
+ (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eebb6ebf9f6069d2$exports))).version}:MemoryFS`, $7b991d7841c5927f$export$3048eb7ec07c2c4e);
1959
+ (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eebb6ebf9f6069d2$exports))).version}:WorkerFS`, $7b991d7841c5927f$var$WorkerFS);
1960
+ (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eebb6ebf9f6069d2$exports))).version}:Stat`, $7b991d7841c5927f$var$Stat);
1961
+ (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eebb6ebf9f6069d2$exports))).version}:File`, $7b991d7841c5927f$export$b6afa8811b7e644e);
1962
+ (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eebb6ebf9f6069d2$exports))).version}:Directory`, $7b991d7841c5927f$var$Directory);
1963
1963
 
1964
1964
 
1965
1965
  var $994c93c6792b2070$exports = {};
1966
1966
 
1967
- $atlaspack$export($994c93c6792b2070$exports, "OverlayFS", () => $994c93c6792b2070$export$5963299e2424ca1c);
1967
+ $parcel$export($994c93c6792b2070$exports, "OverlayFS", () => $994c93c6792b2070$export$5963299e2424ca1c);
1968
1968
 
1969
1969
 
1970
1970
 
@@ -1975,7 +1975,7 @@ $atlaspack$export($994c93c6792b2070$exports, "OverlayFS", () => $994c93c6792b207
1975
1975
  class $994c93c6792b2070$export$5963299e2424ca1c {
1976
1976
  deleted = new Set();
1977
1977
  constructor(workerFarmOrFS, readable){
1978
- if (workerFarmOrFS instanceof (0, ($atlaspack$interopDefault($dlC2Z$atlaspackworkers)))) this.writable = new (0, $7b991d7841c5927f$export$3048eb7ec07c2c4e)(workerFarmOrFS);
1978
+ if (workerFarmOrFS instanceof (0, ($parcel$interopDefault($dlC2Z$atlaspackworkers)))) this.writable = new (0, $7b991d7841c5927f$export$3048eb7ec07c2c4e)(workerFarmOrFS);
1979
1979
  else this.writable = workerFarmOrFS;
1980
1980
  this.readable = readable;
1981
1981
  this._cwd = readable.cwd();
@@ -2006,17 +2006,17 @@ class $994c93c6792b2070$export$5963299e2424ca1c {
2006
2006
  _isSymlink(filePath) {
2007
2007
  filePath = this._normalizePath(filePath);
2008
2008
  // Check the parts of the path to see if any are symlinks.
2009
- let { root: root, dir: dir, base: base } = (0, ($atlaspack$interopDefault($dlC2Z$path))).parse(filePath);
2010
- let segments = dir.slice(root.length).split((0, ($atlaspack$interopDefault($dlC2Z$path))).sep).concat(base);
2009
+ let { root: root, dir: dir, base: base } = (0, ($parcel$interopDefault($dlC2Z$path))).parse(filePath);
2010
+ let segments = dir.slice(root.length).split((0, ($parcel$interopDefault($dlC2Z$path))).sep).concat(base);
2011
2011
  while(segments.length){
2012
- filePath = (0, ($atlaspack$interopDefault($dlC2Z$path))).join(root, ...segments);
2012
+ filePath = (0, ($parcel$interopDefault($dlC2Z$path))).join(root, ...segments);
2013
2013
  let name = segments.pop();
2014
2014
  if (this.deleted.has(filePath)) return false;
2015
2015
  else if (this.writable instanceof (0, $7b991d7841c5927f$export$3048eb7ec07c2c4e) && this.writable.symlinks.has(filePath)) return true;
2016
2016
  else {
2017
- // HACK: Atlaspack fs does not provide `lstatSync`,
2017
+ // HACK: Parcel fs does not provide `lstatSync`,
2018
2018
  // so we use `readdirSync` to check if the path is a symlink.
2019
- let parent = (0, ($atlaspack$interopDefault($dlC2Z$path))).resolve(filePath, '..');
2019
+ let parent = (0, ($parcel$interopDefault($dlC2Z$path))).resolve(filePath, '..');
2020
2020
  if (parent === filePath) return false;
2021
2021
  try {
2022
2022
  for (let dirent of this.readdirSync(parent, {
@@ -2037,12 +2037,12 @@ class $994c93c6792b2070$export$5963299e2424ca1c {
2037
2037
  }
2038
2038
  async _copyPathForWrite(filePath) {
2039
2039
  filePath = await this._normalizePath(filePath);
2040
- let dirPath = (0, ($atlaspack$interopDefault($dlC2Z$path))).dirname(filePath);
2040
+ let dirPath = (0, ($parcel$interopDefault($dlC2Z$path))).dirname(filePath);
2041
2041
  if (this.existsSync(dirPath) && !this.writable.existsSync(dirPath)) await this.writable.mkdirp(dirPath);
2042
2042
  return filePath;
2043
2043
  }
2044
2044
  _normalizePath(filePath) {
2045
- return (0, ($atlaspack$interopDefault($dlC2Z$path))).resolve(this.cwd(), filePath);
2045
+ return (0, ($parcel$interopDefault($dlC2Z$path))).resolve(this.cwd(), filePath);
2046
2046
  }
2047
2047
  // eslint-disable-next-line require-await
2048
2048
  async readFile(filePath, encoding) {
@@ -2082,15 +2082,15 @@ class $994c93c6792b2070$export$5963299e2424ca1c {
2082
2082
  ];
2083
2083
  // Recursively add every descendant path to deleted.
2084
2084
  while(stack.length){
2085
- let root = (0, (/*@__PURE__*/$atlaspack$interopDefault($1acbdc46f00ee4fb$exports)))(stack.pop());
2085
+ let root = (0, (/*@__PURE__*/$parcel$interopDefault($1acbdc46f00ee4fb$exports)))(stack.pop());
2086
2086
  for (let ent of this.readdirSync(root, {
2087
2087
  withFileTypes: true
2088
2088
  }))if (typeof ent === 'string') {
2089
- let childPath = (0, ($atlaspack$interopDefault($dlC2Z$path))).join(root, ent);
2089
+ let childPath = (0, ($parcel$interopDefault($dlC2Z$path))).join(root, ent);
2090
2090
  toDelete.push(childPath);
2091
2091
  if (this.statSync(childPath).isDirectory()) stack.push(childPath);
2092
2092
  } else {
2093
- let childPath = (0, ($atlaspack$interopDefault($dlC2Z$path))).join(root, ent.name);
2093
+ let childPath = (0, ($parcel$interopDefault($dlC2Z$path))).join(root, ent.name);
2094
2094
  toDelete.push(childPath);
2095
2095
  if (ent.isDirectory()) stack.push(childPath);
2096
2096
  }
@@ -2107,10 +2107,10 @@ class $994c93c6792b2070$export$5963299e2424ca1c {
2107
2107
  dir = this._normalizePath(dir);
2108
2108
  await this.writable.mkdirp(dir);
2109
2109
  if (this.deleted != null) {
2110
- let root = (0, ($atlaspack$interopDefault($dlC2Z$path))).parse(dir).root;
2110
+ let root = (0, ($parcel$interopDefault($dlC2Z$path))).parse(dir).root;
2111
2111
  while(dir !== root){
2112
2112
  this.deleted.delete(dir);
2113
- dir = (0, ($atlaspack$interopDefault($dlC2Z$path))).dirname(dir);
2113
+ dir = (0, ($parcel$interopDefault($dlC2Z$path))).dirname(dir);
2114
2114
  }
2115
2115
  }
2116
2116
  }
@@ -2196,7 +2196,7 @@ class $994c93c6792b2070$export$5963299e2424ca1c {
2196
2196
  let entries = new Map();
2197
2197
  try {
2198
2198
  for (let entry of this.writable.readdirSync(dir, opts)){
2199
- let filePath = (0, ($atlaspack$interopDefault($dlC2Z$path))).join(dir, entry.name ?? entry);
2199
+ let filePath = (0, ($parcel$interopDefault($dlC2Z$path))).join(dir, entry.name ?? entry);
2200
2200
  if (this.deleted.has(filePath)) continue;
2201
2201
  entries.set(filePath, entry);
2202
2202
  }
@@ -2205,7 +2205,7 @@ class $994c93c6792b2070$export$5963299e2424ca1c {
2205
2205
  }
2206
2206
  try {
2207
2207
  for (let entry of this.readable.readdirSync(dir, opts)){
2208
- let filePath = (0, ($atlaspack$interopDefault($dlC2Z$path))).join(dir, entry.name ?? entry);
2208
+ let filePath = (0, ($parcel$interopDefault($dlC2Z$path))).join(dir, entry.name ?? entry);
2209
2209
  if (this.deleted.has(filePath)) continue;
2210
2210
  if (entries.has(filePath)) continue;
2211
2211
  entries.set(filePath, entry);
@@ -2255,24 +2255,24 @@ class $994c93c6792b2070$var$FSError extends Error {
2255
2255
  Error.captureStackTrace?.(this, this.constructor);
2256
2256
  }
2257
2257
  }
2258
- (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$atlaspack$interopDefault($eebb6ebf9f6069d2$exports))).version}:OverlayFS`, $994c93c6792b2070$export$5963299e2424ca1c);
2258
+ (0, $dlC2Z$atlaspackcore.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eebb6ebf9f6069d2$exports))).version}:OverlayFS`, $994c93c6792b2070$export$5963299e2424ca1c);
2259
2259
 
2260
2260
 
2261
- const $4256a6714e3958a6$var$pipeline = (0, $dlC2Z$util.promisify)((0, ($atlaspack$interopDefault($dlC2Z$stream))).pipeline);
2261
+ const $4256a6714e3958a6$var$pipeline = (0, $dlC2Z$util.promisify)((0, ($parcel$interopDefault($dlC2Z$stream))).pipeline);
2262
2262
  async function $4256a6714e3958a6$export$d3a8044e3fef7335(sourceFS, source, destinationFS, destination) {
2263
2263
  await destinationFS.mkdirp(destination);
2264
2264
  let files = await sourceFS.readdir(source);
2265
2265
  for (let file of files){
2266
- let sourcePath = (0, ($atlaspack$interopDefault($dlC2Z$path))).join(source, file);
2267
- let destPath = (0, ($atlaspack$interopDefault($dlC2Z$path))).join(destination, file);
2266
+ let sourcePath = (0, ($parcel$interopDefault($dlC2Z$path))).join(source, file);
2267
+ let destPath = (0, ($parcel$interopDefault($dlC2Z$path))).join(destination, file);
2268
2268
  let stats = await sourceFS.stat(sourcePath);
2269
2269
  if (stats.isFile()) await $4256a6714e3958a6$var$pipeline(sourceFS.createReadStream(sourcePath), destinationFS.createWriteStream(destPath));
2270
2270
  else if (stats.isDirectory()) await $4256a6714e3958a6$export$d3a8044e3fef7335(sourceFS, sourcePath, destinationFS, destPath);
2271
2271
  }
2272
2272
  }
2273
- $atlaspack$exportWildcard(module.exports, $fd5eb542960b5f45$exports);
2274
- $atlaspack$exportWildcard(module.exports, $7b991d7841c5927f$exports);
2275
- $atlaspack$exportWildcard(module.exports, $994c93c6792b2070$exports);
2273
+ $parcel$exportWildcard(module.exports, $fd5eb542960b5f45$exports);
2274
+ $parcel$exportWildcard(module.exports, $7b991d7841c5927f$exports);
2275
+ $parcel$exportWildcard(module.exports, $994c93c6792b2070$exports);
2276
2276
 
2277
2277
 
2278
2278
  //# sourceMappingURL=index.js.map