@sanity/pkg-utils 5.0.5 → 5.0.7

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/cli.cjs CHANGED
@@ -3,7 +3,7 @@ var cac = require("cac");
3
3
  function _interopDefaultCompat(e) {
4
4
  return e && typeof e == "object" && "default" in e ? e : { default: e };
5
5
  }
6
- var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "5.0.5";
6
+ var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "5.0.7";
7
7
  const cli = cac__default.default();
8
8
  cli.command("", "Check").alias("check").option("--strict", "Strict mode").option("--tsconfig [tsconfig]", "[string] tsconfig.json").action(async (options) => {
9
9
  const { checkAction } = await Promise.resolve().then(function() {
package/dist/index.js CHANGED
@@ -20317,7 +20317,7 @@ function resolveRollupConfig(ctx, buildTask) {
20317
20317
  values: {
20318
20318
  ...pkg.name === "@sanity/pkg-utils" ? { ...replacements } : {
20319
20319
  "process.env.PKG_FILE_PATH": (arg) => {
20320
- const sourcePath = "./" + path$1.relative(cwd, arg), entry = entries.find((e) => e.source === sourcePath);
20320
+ const sourcePath = `./${path$1.relative(cwd, arg)}`, entry = entries.find((e) => e.source === sourcePath);
20321
20321
  return entry ? JSON.stringify(
20322
20322
  path$1.relative(cwd, path$1.resolve(outDir, entry.name + outputExt))
20323
20323
  ) : (console.error(`could not find source entry: ${sourcePath}`), "null");