@sanity/workbench-cli 1.1.0-beta.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/README.md +10 -0
- package/dist/_exports/build.d.ts +129 -0
- package/dist/_exports/build.js +9 -0
- package/dist/_exports/build.js.map +1 -0
- package/dist/_exports/deploy.d.ts +115 -0
- package/dist/_exports/deploy.js +6 -0
- package/dist/_exports/deploy.js.map +1 -0
- package/dist/_exports/dev.d.ts +166 -0
- package/dist/_exports/dev.js +10 -0
- package/dist/_exports/dev.js.map +1 -0
- package/dist/_exports/index.d.ts +307 -0
- package/dist/_exports/index.js +15 -0
- package/dist/_exports/index.js.map +1 -0
- package/dist/_exports/init.d.ts +12 -0
- package/dist/_exports/init.js +5 -0
- package/dist/_exports/init.js.map +1 -0
- package/dist/actions/build/artifact.js +29 -0
- package/dist/actions/build/artifact.js.map +1 -0
- package/dist/actions/build/render-remote.js +69 -0
- package/dist/actions/build/render-remote.js.map +1 -0
- package/dist/actions/build/services/artifact.js +122 -0
- package/dist/actions/build/services/artifact.js.map +1 -0
- package/dist/actions/build/views/artifact.js +31 -0
- package/dist/actions/build/views/artifact.js.map +1 -0
- package/dist/actions/build/vite/constants.js +5 -0
- package/dist/actions/build/vite/constants.js.map +1 -0
- package/dist/actions/build/vite/plugin.js +74 -0
- package/dist/actions/build/vite/plugin.js.map +1 -0
- package/dist/actions/build/vite/plugins/plugin-module-federation.js +53 -0
- package/dist/actions/build/vite/plugins/plugin-module-federation.js.map +1 -0
- package/dist/actions/build/vite/plugins/plugin-sanity-environment.js +29 -0
- package/dist/actions/build/vite/plugins/plugin-sanity-environment.js.map +1 -0
- package/dist/actions/build/vite/plugins/plugin-sanity-extension-artifacts.js +33 -0
- package/dist/actions/build/vite/plugins/plugin-sanity-extension-artifacts.js.map +1 -0
- package/dist/actions/build/vite/plugins/plugin-sanity-federation-runtime.js +83 -0
- package/dist/actions/build/vite/plugins/plugin-sanity-federation-runtime.js.map +1 -0
- package/dist/actions/build/vite/workbench-vite-plugins.js +43 -0
- package/dist/actions/build/vite/workbench-vite-plugins.js.map +1 -0
- package/dist/actions/deploy/getWorkbench.js +40 -0
- package/dist/actions/deploy/getWorkbench.js.map +1 -0
- package/dist/actions/dev/canonicalizeWatchDir.js +23 -0
- package/dist/actions/dev/canonicalizeWatchDir.js.map +1 -0
- package/dist/actions/dev/processLiveness.js +109 -0
- package/dist/actions/dev/processLiveness.js.map +1 -0
- package/dist/actions/dev/registry.js +279 -0
- package/dist/actions/dev/registry.js.map +1 -0
- package/dist/actions/init/cliConfig.js +45 -0
- package/dist/actions/init/cliConfig.js.map +1 -0
- package/dist/contract.js +66 -0
- package/dist/contract.js.map +1 -0
- package/dist/defineApp.js +82 -0
- package/dist/defineApp.js.map +1 -0
- package/dist/defineService.js +19 -0
- package/dist/defineService.js.map +1 -0
- package/dist/defineView.js +19 -0
- package/dist/defineView.js.map +1 -0
- package/dist/resolveWorkbenchApp.js +21 -0
- package/dist/resolveWorkbenchApp.js.map +1 -0
- package/package.json +83 -0
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sanity/workbench-cli",
|
|
3
|
+
"version": "1.1.0-beta.0",
|
|
4
|
+
"description": "Internal implementation detail of the Sanity CLI's unstable workbench support. Not intended for direct use.",
|
|
5
|
+
"homepage": "https://github.com/sanity-io/cli",
|
|
6
|
+
"bugs": "https://github.com/sanity-io/cli/issues",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "Sanity.io <hello@sanity.io>",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/sanity-io/cli.git",
|
|
12
|
+
"directory": "packages/@sanity/workbench-cli"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"./dist",
|
|
16
|
+
"!./dist/**/__tests__"
|
|
17
|
+
],
|
|
18
|
+
"type": "module",
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"types": "./dist/_exports/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"source": "./src/_exports/index.ts",
|
|
24
|
+
"default": "./dist/_exports/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./build": {
|
|
27
|
+
"source": "./src/_exports/build.ts",
|
|
28
|
+
"default": "./dist/_exports/build.js"
|
|
29
|
+
},
|
|
30
|
+
"./deploy": {
|
|
31
|
+
"source": "./src/_exports/deploy.ts",
|
|
32
|
+
"default": "./dist/_exports/deploy.js"
|
|
33
|
+
},
|
|
34
|
+
"./dev": {
|
|
35
|
+
"source": "./src/_exports/dev.ts",
|
|
36
|
+
"default": "./dist/_exports/dev.js"
|
|
37
|
+
},
|
|
38
|
+
"./init": {
|
|
39
|
+
"source": "./src/_exports/init.ts",
|
|
40
|
+
"default": "./dist/_exports/init.js"
|
|
41
|
+
},
|
|
42
|
+
"./package.json": "./package.json"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"access": "public"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "swc --delete-dir-on-start --strip-leading-paths --out-dir dist/ src --ignore '**/*.test.ts' --ignore '**/__tests__/**'",
|
|
49
|
+
"build:types": "pkg-utils build --emitDeclarationOnly",
|
|
50
|
+
"check:types": "tsc --noEmit",
|
|
51
|
+
"lint": "eslint .",
|
|
52
|
+
"publint": "publint",
|
|
53
|
+
"test": "vitest run",
|
|
54
|
+
"posttest": "pnpm run lint",
|
|
55
|
+
"test:coverage": "vitest run --coverage",
|
|
56
|
+
"test:watch": "vitest",
|
|
57
|
+
"watch": "swc --delete-dir-on-start --strip-leading-paths --out-dir dist/ --watch src"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@module-federation/vite": "1.16.0",
|
|
61
|
+
"@sanity/cli-core": "workspace:^",
|
|
62
|
+
"vite": "catalog:",
|
|
63
|
+
"zod": "catalog:"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@eslint/compat": "catalog:",
|
|
67
|
+
"@repo/package.config": "workspace:*",
|
|
68
|
+
"@repo/tsconfig": "workspace:*",
|
|
69
|
+
"@sanity/eslint-config-cli": "workspace:^",
|
|
70
|
+
"@sanity/pkg-utils": "catalog:",
|
|
71
|
+
"@swc/cli": "catalog:",
|
|
72
|
+
"@swc/core": "catalog:",
|
|
73
|
+
"@types/node": "catalog:",
|
|
74
|
+
"@vitest/coverage-istanbul": "catalog:",
|
|
75
|
+
"eslint": "catalog:",
|
|
76
|
+
"publint": "catalog:",
|
|
77
|
+
"typescript": "catalog:",
|
|
78
|
+
"vitest": "catalog:"
|
|
79
|
+
},
|
|
80
|
+
"engines": {
|
|
81
|
+
"node": ">=22.12"
|
|
82
|
+
}
|
|
83
|
+
}
|