Skip to content

Commit

Permalink
fix: build after pkg-utils@5 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
binoy14 committed Apr 29, 2024
1 parent 9a8ed79 commit c3b756b
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 16 deletions.
1 change: 1 addition & 0 deletions packages/sanity/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/presentation.js
/router.js
/structure.js
/_singletons.js

# Playwright-ct artifacts
/playwright-ct/report
Expand Down
2 changes: 0 additions & 2 deletions packages/sanity/_singletons.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/sanity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
},
"./_singletons": {
"source": "./src/_exports/_singletons.ts",
"require": "./lib/_singletons.js",
"import": "./lib/_singletons.mjs",
"require": "./lib/_singletons.js",
"default": "./lib/_singletons.js"
},
"./cli": {
Expand Down Expand Up @@ -122,7 +122,7 @@
"scripts": {
"build": "pkg-utils build --strict --check --clean",
"check:types": "tsc --project tsconfig.lib.json",
"clean": "rimraf _internal.js cli.js desk.js migrate.js presentation.js router.js structure.js lib",
"clean": "rimraf _internal.js _singletons.js cli.js desk.js migrate.js presentation.js router.js structure.js lib",
"coverage": "jest --coverage",
"lint": "eslint .",
"prepublishOnly": "turbo run build",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {createContext} from 'react'
import type {ConnectorContextValue} from 'sanity'

import type {ConnectorContextValue} from '../../core/changeIndicators/ConnectorContext'

/** @internal */
export const ConnectorContext = createContext<ConnectorContextValue>({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {createContext} from 'react'
import type {PreviewCardContextValue} from 'sanity'

import type {PreviewCardContextValue} from '../../../core/components/previewCard/PreviewCard'

/**
* @internal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createContext} from 'react'
import type {ZIndexContextValue} from 'sanity'

import type {ZIndexContextValue} from '../../../core/components/zOffsets/types'
import {zIndexContextDefaults} from './zIndexContextDefaults'

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {createContext} from 'react'
import type {PortableTextMarker} from 'sanity'

import type {PortableTextMarker} from '../../../../core/form/types/_transitional'

/**
* @internal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {createContext} from 'react'
import type {PortableTextMemberItem} from 'sanity'

import type {PortableTextMemberItem} from '../../../../core/form/inputs/PortableText/PortableTextInput'

/**
* @internal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {createContext} from 'react'
import type {FormNodePresence} from 'sanity'

import type {FormNodePresence} from '../../../core/presence/types'

/**
* @internal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {createContext} from 'react'
import type {ReferenceInputOptions} from 'sanity'

import type {ReferenceInputOptions} from '../../../core/form/studio/contexts/ReferenceInputOptions'

/**
* @internal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {ValidationMarker} from '@sanity/types'
import {createContext} from 'react'
import type {ValidationMarker} from 'sanity'

/**
* @internal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {createContext} from 'react'
import type {FormNodePresence} from 'sanity'

import type {FormNodePresence} from '../../core/presence/types'

/** @internal */
export const FormFieldPresenceContext = createContext<FormNodePresence[]>([])
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {createContext} from 'react'
import type {StudioThemeColorSchemeKey} from 'sanity'

import type {StudioThemeColorSchemeKey} from '../../core/theme/types'

/**
* The setter for ColorSchemeValueContext, in a separate context to avoid unnecessary re-renders
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {createContext} from 'react'
import type {StudioThemeColorSchemeKey} from 'sanity'

import type {StudioThemeColorSchemeKey} from '../../core/theme/types'

/**
* Used to keep track of the internal value, which can be "system" in addition to "light" and "dark"
Expand Down
3 changes: 2 additions & 1 deletion packages/sanity/src/_singletons/studio/NavbarContext.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {createContext} from 'react'
import type {NavbarContextValue} from 'sanity'

import type {NavbarContextValue} from '../../core/studio/StudioLayout'

/** @internal */
export const NavbarContext = createContext<NavbarContextValue>({
Expand Down

0 comments on commit c3b756b

Please sign in to comment.