@sanity/cli-test 0.3.0 → 0.3.1

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/index.d.ts CHANGED
@@ -133,6 +133,7 @@ export declare type FixtureName =
133
133
  | "basic-studio"
134
134
  | "graphql-studio"
135
135
  | "multi-workspace-studio"
136
+ | "nextjs-app"
136
137
  | "prebuilt-app"
137
138
  | "prebuilt-studio"
138
139
  | "worst-case-studio";
@@ -11,6 +11,7 @@
11
11
  'basic-studio': {},
12
12
  'graphql-studio': {},
13
13
  'multi-workspace-studio': {},
14
+ 'nextjs-app': {},
14
15
  'prebuilt-app': {
15
16
  includeDist: true
16
17
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/test/constants.ts"],"sourcesContent":["/**\n * Options for each fixture.\n * @public\n */\nexport interface FixtureOptions {\n includeDist?: boolean\n}\n\n/**\n * Default fixtures bundled with the package and their options.\n *\n * @public\n */\nexport const DEFAULT_FIXTURES: Record<FixtureName, FixtureOptions> = {\n 'basic-app': {},\n 'basic-functions': {},\n 'basic-studio': {},\n 'graphql-studio': {},\n 'multi-workspace-studio': {},\n 'prebuilt-app': {includeDist: true},\n 'prebuilt-studio': {includeDist: true},\n 'worst-case-studio': {},\n} as const\n\n/**\n * Valid fixture name type.\n * @public\n */\nexport type FixtureName =\n | 'basic-app'\n | 'basic-functions'\n | 'basic-studio'\n | 'graphql-studio'\n | 'multi-workspace-studio'\n | 'prebuilt-app'\n | 'prebuilt-studio'\n | 'worst-case-studio'\n\n/**\n * @deprecated Use {@link FixtureName} instead. This type alias will be removed in a future release.\n * @public\n */\nexport type ExampleName = FixtureName\n"],"names":["DEFAULT_FIXTURES","includeDist"],"mappings":"AAAA;;;CAGC,GAKD;;;;CAIC,GACD,OAAO,MAAMA,mBAAwD;IACnE,aAAa,CAAC;IACd,mBAAmB,CAAC;IACpB,gBAAgB,CAAC;IACjB,kBAAkB,CAAC;IACnB,0BAA0B,CAAC;IAC3B,gBAAgB;QAACC,aAAa;IAAI;IAClC,mBAAmB;QAACA,aAAa;IAAI;IACrC,qBAAqB,CAAC;AACxB,EAAU"}
1
+ {"version":3,"sources":["../../src/test/constants.ts"],"sourcesContent":["/**\n * Options for each fixture.\n * @public\n */\nexport interface FixtureOptions {\n includeDist?: boolean\n}\n\n/**\n * Default fixtures bundled with the package and their options.\n *\n * @public\n */\nexport const DEFAULT_FIXTURES: Record<FixtureName, FixtureOptions> = {\n 'basic-app': {},\n 'basic-functions': {},\n 'basic-studio': {},\n 'graphql-studio': {},\n 'multi-workspace-studio': {},\n 'nextjs-app': {},\n 'prebuilt-app': {includeDist: true},\n 'prebuilt-studio': {includeDist: true},\n 'worst-case-studio': {},\n} as const\n\n/**\n * Valid fixture name type.\n * @public\n */\nexport type FixtureName =\n | 'basic-app'\n | 'basic-functions'\n | 'basic-studio'\n | 'graphql-studio'\n | 'multi-workspace-studio'\n | 'nextjs-app'\n | 'prebuilt-app'\n | 'prebuilt-studio'\n | 'worst-case-studio'\n\n/**\n * @deprecated Use {@link FixtureName} instead. This type alias will be removed in a future release.\n * @public\n */\nexport type ExampleName = FixtureName\n"],"names":["DEFAULT_FIXTURES","includeDist"],"mappings":"AAAA;;;CAGC,GAKD;;;;CAIC,GACD,OAAO,MAAMA,mBAAwD;IACnE,aAAa,CAAC;IACd,mBAAmB,CAAC;IACpB,gBAAgB,CAAC;IACjB,kBAAkB,CAAC;IACnB,0BAA0B,CAAC;IAC3B,cAAc,CAAC;IACf,gBAAgB;QAACC,aAAa;IAAI;IAClC,mBAAmB;QAACA,aAAa;IAAI;IACrC,qBAAqB,CAAC;AACxB,EAAU"}
@@ -16,7 +16,7 @@
16
16
  "@sanity/sdk-react": "^2.6.0",
17
17
  "react": "^19.2.3",
18
18
  "react-dom": "^19.2.3",
19
- "sanity": "^5.18.0"
19
+ "sanity": "^5.20.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/react": "^19.2.9",
@@ -9,6 +9,6 @@
9
9
  "@sanity/functions": "^1.2.0"
10
10
  },
11
11
  "devDependencies": {
12
- "sanity": "^5.18.0"
12
+ "sanity": "^5.20.0"
13
13
  }
14
14
  }
@@ -15,10 +15,10 @@
15
15
  "start": "sanity start"
16
16
  },
17
17
  "dependencies": {
18
- "@sanity/vision": "^5.18.0",
18
+ "@sanity/vision": "^5.20.0",
19
19
  "react": "^19.2.3",
20
20
  "react-dom": "^19.2.3",
21
- "sanity": "^5.18.0",
21
+ "sanity": "^5.20.0",
22
22
  "styled-components": "^6.3.8"
23
23
  },
24
24
  "devDependencies": {
@@ -12,10 +12,10 @@
12
12
  "deploy-graphql": "sanity graphql deploy"
13
13
  },
14
14
  "dependencies": {
15
- "@sanity/vision": "^5.18.0",
15
+ "@sanity/vision": "^5.20.0",
16
16
  "react": "^19.2.3",
17
17
  "react-dom": "^19.2.3",
18
- "sanity": "^5.18.0",
18
+ "sanity": "^5.20.0",
19
19
  "styled-components": "^6.3.8"
20
20
  },
21
21
  "devDependencies": {
@@ -15,10 +15,10 @@
15
15
  "start": "sanity start"
16
16
  },
17
17
  "dependencies": {
18
- "@sanity/vision": "^5.18.0",
18
+ "@sanity/vision": "^5.20.0",
19
19
  "react": "^19.2.3",
20
20
  "react-dom": "^19.2.3",
21
- "sanity": "^5.18.0",
21
+ "sanity": "^5.20.0",
22
22
  "styled-components": "^6.3.8"
23
23
  },
24
24
  "devDependencies": {
@@ -0,0 +1,9 @@
1
+ export const metadata = {title: 'Test App'}
2
+
3
+ export default function RootLayout({children}: {children: React.ReactNode}) {
4
+ return (
5
+ <html lang="en">
6
+ <body>{children}</body>
7
+ </html>
8
+ )
9
+ }
@@ -0,0 +1,3 @@
1
+ export default function Home() {
2
+ return <main>Hello</main>
3
+ }
@@ -0,0 +1,2 @@
1
+ const nextConfig = {}
2
+ export default nextConfig
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "nextjs-app-fixture",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "scripts": {
6
+ "dev": "next dev",
7
+ "build": "next build"
8
+ },
9
+ "dependencies": {
10
+ "next": "^16.2.2",
11
+ "react": "^19.2.4",
12
+ "react-dom": "^19.2.4"
13
+ },
14
+ "devDependencies": {
15
+ "@types/react": "^19.2.14",
16
+ "typescript": "^5.8.3"
17
+ }
18
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "noEmit": true,
9
+ "esModuleInterop": true,
10
+ "module": "esnext",
11
+ "moduleResolution": "bundler",
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "jsx": "preserve",
15
+ "incremental": true,
16
+ "plugins": [{"name": "next"}],
17
+ "paths": {"@/*": ["./*"]}
18
+ },
19
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
20
+ "exclude": ["node_modules"]
21
+ }
@@ -16,7 +16,7 @@
16
16
  "@sanity/sdk-react": "^2.6.0",
17
17
  "react": "^19.2.3",
18
18
  "react-dom": "^19.2.3",
19
- "sanity": "^5.18.0"
19
+ "sanity": "^5.20.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/react": "^19.2.9",
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "react": "^19.2.3",
17
17
  "react-dom": "^19.2.3",
18
- "sanity": "^5.18.0",
18
+ "sanity": "^5.20.0",
19
19
  "styled-components": "^6.3.8"
20
20
  },
21
21
  "devDependencies": {
@@ -16,10 +16,10 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@sanity/code-input": "^7.0.6",
19
- "@sanity/vision": "^5.18.0",
19
+ "@sanity/vision": "^5.20.0",
20
20
  "react": "^19.2.3",
21
21
  "react-dom": "^19.2.3",
22
- "sanity": "^5.18.0",
22
+ "sanity": "^5.20.0",
23
23
  "sanity-plugin-media": "^4.1.1",
24
24
  "styled-components": "^6.3.8",
25
25
  "vite-tsconfig-paths": "^6.0.5"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/cli-test",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Sanity CLI test helpers and utilities",
5
5
  "keywords": [
6
6
  "cli",
@@ -43,20 +43,20 @@
43
43
  "access": "public"
44
44
  },
45
45
  "dependencies": {
46
- "@swc/core": "^1.15.21",
46
+ "@swc/core": "^1.15.24",
47
47
  "ansis": "^4.2.0",
48
48
  "esbuild": "^0.27.4",
49
- "nock": "^14.0.11",
49
+ "nock": "^14.0.12",
50
50
  "ora": "^9.0.0",
51
- "tinyglobby": "^0.2.15"
51
+ "tinyglobby": "^0.2.16"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@eslint/compat": "^2.0.3",
55
- "@oclif/core": "^4.10.2",
56
- "@sanity/client": "^7.20.0",
57
- "@sanity/pkg-utils": "^10.4.13",
58
- "@swc/cli": "^0.8.0",
59
- "@types/node": "^20.19.37",
55
+ "@oclif/core": "^4.10.5",
56
+ "@sanity/client": "^7.21.0",
57
+ "@sanity/pkg-utils": "^10.4.14",
58
+ "@swc/cli": "^0.8.1",
59
+ "@types/node": "^20.19.39",
60
60
  "eslint": "^10.1.0",
61
61
  "publint": "^0.3.18",
62
62
  "rimraf": "^6.0.1",
@@ -66,14 +66,14 @@
66
66
  "yaml": "^2.8.3",
67
67
  "@repo/package.config": "0.0.1",
68
68
  "@repo/tsconfig": "3.70.0",
69
- "@sanity/cli-core": "1.3.0",
69
+ "@sanity/cli-core": "1.3.1",
70
70
  "@sanity/eslint-config-cli": "1.1.0"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@oclif/core": "^4.0.0",
74
74
  "@sanity/client": "^7.0.0",
75
75
  "vitest": ">=3.0.0 <5.0.0",
76
- "@sanity/cli-core": "1.3.0"
76
+ "@sanity/cli-core": "1.3.1"
77
77
  },
78
78
  "engines": {
79
79
  "node": ">=20.19.1 <22 || >=22.12"