@sanity/pkg-utils 7.4.0-canary.1 → 7.4.0-canary.2

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.
@@ -61,7 +61,7 @@ function findConfigFile(cwd) {
61
61
  return configPath;
62
62
  }
63
63
  }
64
- const require$1 = node_module.createRequire(typeof document > "u" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("_chunks-cjs/index.cjs", document.baseURI).href);
64
+ const require$2 = node_module.createRequire(typeof document > "u" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("_chunks-cjs/index.cjs", document.baseURI).href);
65
65
  async function loadConfig(options) {
66
66
  const { cwd } = options, pkgPath = await pkgUp__default.default({ cwd });
67
67
  if (!pkgPath) return;
@@ -69,7 +69,7 @@ async function loadConfig(options) {
69
69
  if (!configFile || !configFile.startsWith(cwd))
70
70
  return;
71
71
  const esbuildOptions = { extensions: [".js", ".mjs", ".ts"] }, { unregister } = globalThis.__DEV__ ? { unregister: () => {
72
- } } : node.register(esbuildOptions), mod = require$1(configFile);
72
+ } } : node.register(esbuildOptions), mod = require$2(configFile);
73
73
  return unregister(), mod?.default || mod || void 0;
74
74
  }
75
75
  function assertLast(a, arr) {
@@ -795,12 +795,13 @@ function createApiExtractorConfig(options) {
795
795
  projectFolder
796
796
  };
797
797
  }
798
+ const require$1 = node_module.createRequire(typeof document > "u" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("_chunks-cjs/index.cjs", document.baseURI).href);
798
799
  async function createTSDocConfig(opts) {
799
800
  const { customTags } = opts;
800
801
  if (customTags.length === 0)
801
802
  return;
802
803
  const tsDocBaseBuf = await fs.readFile(
803
- require.resolve("@microsoft/api-extractor/extends/tsdoc-base.json")
804
+ require$1.resolve("@microsoft/api-extractor/extends/tsdoc-base.json")
804
805
  ), tsDocBaseConfig = jsoncParser.parse(tsDocBaseBuf.toString()), tagDefinitions = (tsDocBaseConfig.tagDefinitions || []).concat(
805
806
  customTags.map((t) => ({
806
807
  tagName: `@${t.name}`,