Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove turbo for now #5978

Closed
wants to merge 14 commits into from
Closed
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Expand Up @@ -70,7 +70,7 @@ jobs:
run: npx playwright install --with-deps

- name: Build CLI
run: pnpm build:cli
run: pnpm build

- name: Build E2E test studio on next
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/next' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/formatCheck.yml
Expand Up @@ -46,4 +46,4 @@ jobs:
run: pnpm install

- name: Run format check
run: pnpm turbo run check:format
run: pnpm check:format
2 changes: 1 addition & 1 deletion dev/studio-e2e-testing/package.json
Expand Up @@ -17,7 +17,7 @@
"@sanity/google-maps-input": "^3.0.1",
"@sanity/icons": "^2.11.0",
"@sanity/ui": "^2.0.10",
"@sanity/vision": "3.32.0",
"@sanity/vision": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion dev/test-studio/package.json
Expand Up @@ -21,7 +21,7 @@
"@react-three/drei": "^9.80.1",
"@react-three/fiber": "^8.13.6",
"@sanity/assist": "^2.0.0",
"@sanity/block-tools": "3.32.0",
"@sanity/block-tools": "workspace:*",
"@sanity/client": "^6.15.4",
"@sanity/color": "^3.0.0",
"@sanity/google-maps-input": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/ecommerce-studio/package.json
Expand Up @@ -29,7 +29,7 @@
"start": "sanity dev --port 3337"
},
"dependencies": {
"@sanity/cli": "3.32.0",
"@sanity/cli": "workspace:*",
"@sanity/ui": "^2.0.10",
"react": "^18.2.0",
"react-barcode": "^1.4.1",
Expand Down
18 changes: 9 additions & 9 deletions package.json
Expand Up @@ -4,23 +4,24 @@
"private": true,
"scripts": {
"bootstrap": "pnpm install && pnpm build:dts && pnpm build:cli",
"build": "turbo run build --filter='./packages/*' --filter='./packages/@sanity/*'",
"build": "pnpm --filter='./packages/*' --filter='./packages/@sanity/*' build",
"build:clean": "lerna run clean",
"build:cli": "turbo run build --filter=@sanity/cli --filter=sanity",
"build:cli-only": "turbo run --filter=@sanity/cli build",
"build:cli": "pnpm --filter=@sanity/cli --filter=sanity build",
"build:cli-only": "pnpm --filter=@sanity/cli build",
"build:dts": "tsc --build tsconfig.lib.json",
"build:e2e": "pnpm e2e:build",
"build:performance-studio": "pnpm perf:studio:build",
"build:test-studio": "pnpm build --filter=sanity-test-studio",
"build:performance-studio": "run-s build perf:studio:build",
"build:test-studio:only": "pnpm run --filter=sanity-test-studio build",
"build:test-studio": "run-s build build:test-studio:only",
"check": "npm-run-all build --parallel check:*",
"check:deps": "pnpm --recursive --parallel exec depcheck",
"check:format": "prettier . --check",
"check:lint": "turbo run lint -- --quiet",
"check:lint": "eslint --quiet .",
"check:react-exhaustive-deps": "run-s check:lint -- --quiet --rule 'react-hooks/exhaustive-deps: [error, {additionalHooks: \"(useAsync|useMemoObservable|useObservableCallback)\"}]'",
"check:test": "run-s test -- --silent",
"check:types": "tsc --build",
"chore:format:fix": "prettier --cache --write .",
"chore:lint:fix": "turbo run lint -- --quiet --fix",
"chore:lint:fix": "eslint --quiet --fix .",
"chore:normalize-versions": "node -r esbuild-register scripts/normalizeDependencyVersions.ts",
"clean": "run-s build:clean clean:deps",
"clean:deps": "rimraf packages/@sanity/*/node_modules packages/*/node_modules node_modules",
Expand Down Expand Up @@ -148,8 +149,7 @@
"rxjs": "^7.8.1",
"sanity": "workspace:*",
"semver": "^7.3.5",
"turbo": "^1.12.4",
"typescript": "5.3.3",
"typescript": "^5.4.2",
"yargs": "^17.3.0"
},
"optionalDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/@sanity/block-tools/package.json
Expand Up @@ -60,8 +60,8 @@
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@sanity/schema": "3.32.0",
"@sanity/types": "3.32.0",
"@sanity/schema": "workspace:*",
"@sanity/types": "workspace:*",
"@types/jsdom": "^20.0.0",
"@types/lodash": "^4.14.149",
"@types/react": "^18.2.37",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/cli/package.json
Expand Up @@ -64,7 +64,7 @@
"dependencies": {
"@babel/traverse": "^7.23.5",
"@sanity/telemetry": "^0.7.6",
"@sanity/util": "3.32.0",
"@sanity/util": "workspace:*",
"chalk": "^4.1.2",
"decompress": "^4.2.0",
"esbuild": "^0.19.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/export/package.json
Expand Up @@ -31,7 +31,7 @@
"test": "jest"
},
"dependencies": {
"@sanity/util": "3.32.0",
"@sanity/util": "workspace:*",
"archiver": "^7.0.0",
"debug": "^4.3.4",
"get-it": "^8.4.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/import-cli/package.json
Expand Up @@ -32,7 +32,7 @@
],
"dependencies": {
"@sanity/client": "^6.15.4",
"@sanity/import": "3.32.0",
"@sanity/import": "workspace:*",
"get-it": "^8.4.11",
"meow": "^9.0.0",
"ora": "^5.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/import/package.json
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@sanity/asset-utils": "^1.2.5",
"@sanity/generate-help-url": "^3.0.0",
"@sanity/mutator": "3.32.0",
"@sanity/mutator": "workspace:*",
"@sanity/uuid": "^3.0.1",
"debug": "^4.3.4",
"file-url": "^2.0.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/@sanity/migrate/package.json
Expand Up @@ -65,8 +65,8 @@
"dependencies": {
"@bjoerge/mutiny": "^0.5.1",
"@sanity/client": "^6.15.4",
"@sanity/types": "3.32.0",
"@sanity/util": "3.32.0",
"@sanity/types": "workspace:*",
"@sanity/util": "workspace:*",
"arrify": "^2.0.1",
"debug": "^4.3.4",
"fast-fifo": "^1.3.2",
Expand Down
5 changes: 4 additions & 1 deletion packages/@sanity/migrate/tsconfig.json
Expand Up @@ -7,5 +7,8 @@
"outDir": "./lib/dts",
"declarationDir": "./lib/dts"
},
"references": [{"path": "../@sanity/types/tsconfig.lib.json"}]
"references": [
{"path": "../types/tsconfig.lib.json"},
{"path": "../util/tsconfig.lib.json"},
]
}
6 changes: 5 additions & 1 deletion packages/@sanity/migrate/tsconfig.lib.json
Expand Up @@ -6,5 +6,9 @@
"rootDir": ".",
"outDir": "./lib/dts",
"declarationDir": "./lib/dts"
}
},
"references": [
{"path": "../types/tsconfig.lib.json"},
{"path": "../util/tsconfig.lib.json"},
]
}
2 changes: 1 addition & 1 deletion packages/@sanity/mutator/package.json
Expand Up @@ -62,7 +62,7 @@
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@sanity/types": "3.32.0",
"@sanity/types": "workspace:*",
"@types/debug": "^4.1.5",
"@types/lodash": "^4.14.149",
"rimraf": "^3.0.2"
Expand Down
8 changes: 4 additions & 4 deletions packages/@sanity/portable-text-editor/package.json
Expand Up @@ -64,10 +64,10 @@
"watch": "pkg-utils watch --tsconfig tsconfig.lib.json"
},
"dependencies": {
"@sanity/block-tools": "3.32.0",
"@sanity/schema": "3.32.0",
"@sanity/types": "3.32.0",
"@sanity/util": "3.32.0",
"@sanity/block-tools": "workspace:*",
"@sanity/schema": "workspace:*",
"@sanity/types": "workspace:*",
"@sanity/util": "workspace:*",
"debug": "^3.2.7",
"is-hotkey": "^0.2.0",
"lodash": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/schema/package.json
Expand Up @@ -75,7 +75,7 @@
},
"dependencies": {
"@sanity/generate-help-url": "^3.0.0",
"@sanity/types": "3.32.0",
"@sanity/types": "workspace:*",
"arrify": "^1.0.1",
"groq-js": "^1.5.0-canary.1",
"humanize-list": "^1.0.1",
Expand Down
3 changes: 0 additions & 3 deletions packages/@sanity/types/src/schema/test/alias.test.ts
Expand Up @@ -95,7 +95,6 @@ describe('alias type test', () => {
})

it('should support alias with preview', () => {
//@ts-expect-error error is not in select keys
defineType({
type: 'custom-object',
name: 'redefined',
Expand All @@ -106,7 +105,6 @@ describe('alias type test', () => {
},
})

//@ts-expect-error error is not in select keys
defineField({
type: 'custom-object',
name: 'redefined',
Expand All @@ -117,7 +115,6 @@ describe('alias type test', () => {
},
})

//@ts-expect-error error is not in select keys
defineArrayMember({
type: 'custom-object',
name: 'redefined',
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/array.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/block.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/boolean.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/date.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/datetime.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/document.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/email.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
import {type BooleanDefinition, type EmailDefinition} from '../definition'
import {defineType} from '../types'
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/types/src/schema/test/file.test.ts
@@ -1,10 +1,10 @@
import {describe, it} from '@jest/globals'
/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
* use of ts-expect-error serves the same purpose - TypeScript is the testrunner here
*/
import {type FileDefinition, type StringDefinition} from '_self_'
import {describe, it} from '@jest/globals'

import {defineField, defineType} from '../types'

Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/generic.test.tsx
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/geopoint.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/image.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/number.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/object.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/reference.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/slug.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/string.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/text.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/types/src/schema/test/url.test.ts
@@ -1,4 +1,5 @@
import {describe, it} from '@jest/globals'

/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* Some of these tests have no expect statement;
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/util/package.json
Expand Up @@ -163,7 +163,7 @@
},
"dependencies": {
"@sanity/client": "^6.15.4",
"@sanity/types": "3.32.0",
"@sanity/types": "workspace:*",
"get-random-values-esm": "1.0.2",
"moment": "^2.29.4",
"rxjs": "^7.8.1"
Expand Down
@@ -1,4 +1,5 @@
import {it, expect} from '@jest/globals'
import {expect, it} from '@jest/globals'

import {isDeepEmpty} from '../isDeepEmpty'

it('returns true for undefined', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/util/test/PathUtils.test.ts
@@ -1,4 +1,5 @@
import {expect, test} from '@jest/globals'

/* eslint-disable max-nested-callbacks, @typescript-eslint/ban-ts-comment */
import {fromString, get, resolveKeyedPath, toString} from '../src/paths'

Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/vision/src/codemirror/extensions.ts
Expand Up @@ -8,7 +8,7 @@ import {
syntaxHighlighting,
} from '@codemirror/language'
import {highlightSelectionMatches} from '@codemirror/search'
import {Extension} from '@codemirror/state'
import {type Extension} from '@codemirror/state'
import {
drawSelection,
highlightActiveLine,
Expand Down
2 changes: 1 addition & 1 deletion packages/create-sanity/package.json
Expand Up @@ -26,7 +26,7 @@
"index.js"
],
"dependencies": {
"@sanity/cli": "3.32.0",
"@sanity/cli": "workspace:*",
"resolve-pkg": "^2.0.0"
},
"engines": {
Expand Down