@sanity/pkg-utils 1.0.1 → 1.1.0

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
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var cac = require('cac');
4
- var build = require('./_build-98ad789a.cjs');
4
+ var build = require('./_build-f5ddd6ac.cjs');
5
5
  require('path');
6
6
  require('chalk');
7
7
  require('fs');
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var build = require('./_build-98ad789a.cjs');
3
+ var build = require('./_build-f5ddd6ac.cjs');
4
4
  require('path');
5
5
  require('chalk');
6
6
  require('fs');
package/dist/index.js CHANGED
@@ -5203,13 +5203,14 @@ const rimraf = promisify(rimrafCallback);
5203
5203
  async function _dtsTask(ctx, task) {
5204
5204
  const { cwd, dist, files, tsconfig } = ctx;
5205
5205
  const exportPath = task.exportPath === "." ? "./index" : task.exportPath;
5206
+ const distPath = path.resolve(cwd, dist);
5207
+ const tmpPath = path.resolve(cwd, dist, "tmp");
5208
+ const tsconfigPath = path.resolve(cwd, tsconfig || "tsconfig.json");
5206
5209
  console.log("=================================================================================");
5207
5210
  console.log(chalk.gray("task "), "d.ts");
5208
5211
  console.log(chalk.gray("source "), path.join("", task.source));
5209
5212
  console.log(chalk.gray("export "), path.join(dist, `${exportPath}.d.ts`));
5210
- const distPath = path.resolve(cwd, dist);
5211
- const tmpPath = path.resolve(cwd, dist, "tmp");
5212
- const tsconfigPath = path.resolve(cwd, tsconfig || "tsconfig.json");
5213
+ console.log(chalk.gray("tsconfig "), path.relative(cwd, tsconfigPath));
5213
5214
  const types = await _buildTypes({
5214
5215
  cwd,
5215
5216
  outDir: tmpPath,