@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/package.json
CHANGED
|
@@ -27,16 +27,15 @@ export interface _DtsTask {
|
|
|
27
27
|
export async function _dtsTask(ctx: _BuildContext, task: _DtsTask): Promise<void> {
|
|
28
28
|
const {cwd, dist, files, tsconfig} = ctx
|
|
29
29
|
const exportPath = task.exportPath === '.' ? './index' : task.exportPath
|
|
30
|
+
const distPath = path.resolve(cwd, dist)
|
|
31
|
+
const tmpPath = path.resolve(cwd, dist, 'tmp')
|
|
32
|
+
const tsconfigPath = path.resolve(cwd, tsconfig || 'tsconfig.json')
|
|
30
33
|
|
|
31
34
|
console.log('=================================================================================')
|
|
32
35
|
console.log(chalk.gray('task '), 'd.ts')
|
|
33
36
|
console.log(chalk.gray('source '), path.join('', task.source))
|
|
34
37
|
console.log(chalk.gray('export '), path.join(dist, `${exportPath}.d.ts`))
|
|
35
|
-
|
|
36
|
-
const distPath = path.resolve(cwd, dist)
|
|
37
|
-
const tmpPath = path.resolve(cwd, dist, 'tmp')
|
|
38
|
-
|
|
39
|
-
const tsconfigPath = path.resolve(cwd, tsconfig || 'tsconfig.json')
|
|
38
|
+
console.log(chalk.gray('tsconfig '), path.relative(cwd, tsconfigPath))
|
|
40
39
|
|
|
41
40
|
const types = await _buildTypes({
|
|
42
41
|
cwd,
|