@absolutejs/absolute 0.19.0-beta.946 → 0.19.0-beta.948

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.
@@ -3668,7 +3668,7 @@ var traceAngularPhase = async (name, fn, metadata) => {
3668
3668
  if (fileName.startsWith(outDir))
3669
3669
  return fileName.substring(outDir.length + 1);
3670
3670
  return fileName;
3671
- }, hasJsLikeExtension = (path) => /\.(js|ts|mjs|cjs)$/.test(path), splitSpecifierAndQuery = (specifier) => {
3671
+ }, hasJsLikeExtension = (path) => /\.(js|ts|mjs|cjs|json)$/.test(path), splitSpecifierAndQuery = (specifier) => {
3672
3672
  const separator = specifier.indexOf("?");
3673
3673
  if (separator === -1) {
3674
3674
  return {
@@ -4228,11 +4228,12 @@ ${fields}
4228
4228
  });
4229
4229
  const tsconfigAliases = readTsconfigPathAliases();
4230
4230
  const resolveSourceFile2 = (candidate) => {
4231
- const candidates = candidate.match(/\.[cm]?[tj]sx?$/) ? [candidate] : [
4231
+ const candidates = candidate.match(/\.(?:[cm]?[tj]sx?|json)$/) ? [candidate] : [
4232
4232
  `${candidate}.ts`,
4233
4233
  `${candidate}.tsx`,
4234
4234
  `${candidate}.js`,
4235
4235
  `${candidate}.jsx`,
4236
+ `${candidate}.json`,
4236
4237
  join7(candidate, "index.ts"),
4237
4238
  join7(candidate, "index.tsx"),
4238
4239
  join7(candidate, "index.js"),
@@ -4310,6 +4311,16 @@ ${fields}
4310
4311
  if (visited.has(resolved))
4311
4312
  return;
4312
4313
  visited.add(resolved);
4314
+ if (resolved.endsWith(".json") && existsSync4(resolved)) {
4315
+ const inputDir2 = dirname4(resolved);
4316
+ const relativeDir2 = inputDir2.startsWith(baseDir) ? inputDir2.substring(baseDir.length + 1) : inputDir2;
4317
+ const targetDir2 = join7(outDir, relativeDir2);
4318
+ const targetPath2 = join7(targetDir2, basename3(resolved));
4319
+ await fs.mkdir(targetDir2, { recursive: true });
4320
+ await fs.copyFile(resolved, targetPath2);
4321
+ allOutputs.push(targetPath2);
4322
+ return;
4323
+ }
4313
4324
  let actualPath = resolved;
4314
4325
  if (!actualPath.endsWith(".ts"))
4315
4326
  actualPath += ".ts";
@@ -5884,5 +5895,5 @@ export {
5884
5895
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
5885
5896
  };
5886
5897
 
5887
- //# debugId=A0B72ACD392E90E364756E2164756E21
5898
+ //# debugId=2EBCE21622B1047764756E2164756E21
5888
5899
  //# sourceMappingURL=server.js.map