@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/{_build-98ad789a.cjs → _build-f5ddd6ac.cjs} +5 -4
- package/dist/_build-f5ddd6ac.cjs.map +1 -0
- package/dist/cli.cjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/build/tasks/dts/_extractTypes.ts +0 -1
- package/src/build/tasks/dts/dts.ts +4 -5
- package/dist/_build-98ad789a.cjs.map +0 -1
package/dist/cli.cjs
CHANGED
package/dist/index.cjs
CHANGED
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
|
-
|
|
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,
|