Skip to content

Commit e3411d3

Browse files
chore(format): 🤖 ✨ (#2406)
Co-authored-by: squiggler[bot] <128108030+squiggler[bot]@users.noreply.github.com>
1 parent cc3f98d commit e3411d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎packages/@sanity/pkg-utils/src/node/resolveBuildContext.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ export async function resolveBuildContext(options: {
4040
const strictOptions = parseStrictOptions(config?.strictOptions ?? {})
4141

4242
if (strictOptions.noCheckTypes !== 'off' && tsconfig?.options && config?.dts !== 'rolldown') {
43-
if (tsconfig.options.noCheck !== false && !tsconfig.options.noCheck && config?.extract?.checkTypes !== false) {
43+
if (
44+
tsconfig.options.noCheck !== false &&
45+
!tsconfig.options.noCheck &&
46+
config?.extract?.checkTypes !== false
47+
) {
4448
if (strictOptions.noCheckTypes === 'error') {
4549
throw new Error(
4650
'`noCheck` is not set to `true` in the tsconfig.json file used by `package.config.ts`. This makes generating dts files slower than it needs to be, as it will perform type checking on the dts files while at it. You can set `noCheck: true` in tsconfig.json or set `extract: { checkTypes: false }` in package.config.ts to disable type checking.',

0 commit comments

Comments
 (0)