@sanity/plugin-kit 0.0.1-studio-v3.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/LICENSE +22 -0
- package/README.md +398 -0
- package/assets/splat/LICENSE +21 -0
- package/assets/splat/editorconfig +13 -0
- package/assets/splat/eslint.config.js +5 -0
- package/assets/splat/gitignore +55 -0
- package/assets/splat/npmignore +9 -0
- package/assets/splat/prettierrc.js +6 -0
- package/assets/splat/sanity.json +8 -0
- package/assets/splat/template-tsconfig.json +23 -0
- package/assets/splat/v2-incompatible.js.template +11 -0
- package/lib/package.json +127 -0
- package/lib/src/actions/init.d.ts +65 -0
- package/lib/src/actions/init.js +83 -0
- package/lib/src/actions/init.js.map +1 -0
- package/lib/src/actions/link-watch.d.ts +3 -0
- package/lib/src/actions/link-watch.js +69 -0
- package/lib/src/actions/link-watch.js.map +1 -0
- package/lib/src/actions/splat.d.ts +26 -0
- package/lib/src/actions/splat.js +296 -0
- package/lib/src/actions/splat.js.map +1 -0
- package/lib/src/actions/verify/types.d.ts +77 -0
- package/lib/src/actions/verify/types.js +3 -0
- package/lib/src/actions/verify/types.js.map +1 -0
- package/lib/src/actions/verify/validations.d.ts +28 -0
- package/lib/src/actions/verify/validations.js +379 -0
- package/lib/src/actions/verify/validations.js.map +1 -0
- package/lib/src/actions/verify/verify-common.d.ts +43 -0
- package/lib/src/actions/verify/verify-common.js +88 -0
- package/lib/src/actions/verify/verify-common.js.map +1 -0
- package/lib/src/actions/verify-package.d.ts +5 -0
- package/lib/src/actions/verify-package.js +72 -0
- package/lib/src/actions/verify-package.js.map +1 -0
- package/lib/src/actions/verify-studio.d.ts +5 -0
- package/lib/src/actions/verify-studio.js +55 -0
- package/lib/src/actions/verify-studio.js.map +1 -0
- package/lib/src/actions/verify.d.ts +0 -0
- package/lib/src/actions/verify.js +330 -0
- package/lib/src/actions/verify.js.map +1 -0
- package/lib/src/cli.d.ts +2 -0
- package/lib/src/cli.js +86 -0
- package/lib/src/cli.js.map +1 -0
- package/lib/src/cmds/index.d.ts +8 -0
- package/lib/src/cmds/index.js +12 -0
- package/lib/src/cmds/index.js.map +1 -0
- package/lib/src/cmds/init.d.ts +4 -0
- package/lib/src/cmds/init.js +90 -0
- package/lib/src/cmds/init.js.map +1 -0
- package/lib/src/cmds/link-watch.d.ts +4 -0
- package/lib/src/cmds/link-watch.js +49 -0
- package/lib/src/cmds/link-watch.js.map +1 -0
- package/lib/src/cmds/splat.d.ts +4 -0
- package/lib/src/cmds/splat.js +63 -0
- package/lib/src/cmds/splat.js.map +1 -0
- package/lib/src/cmds/verify-package.d.ts +4 -0
- package/lib/src/cmds/verify-package.js +38 -0
- package/lib/src/cmds/verify-package.js.map +1 -0
- package/lib/src/cmds/verify-studio.d.ts +4 -0
- package/lib/src/cmds/verify-studio.js +38 -0
- package/lib/src/cmds/verify-studio.js.map +1 -0
- package/lib/src/cmds/verify.d.ts +0 -0
- package/lib/src/cmds/verify.js +42 -0
- package/lib/src/cmds/verify.js.map +1 -0
- package/lib/src/cmds/version.d.ts +4 -0
- package/lib/src/cmds/version.js +55 -0
- package/lib/src/cmds/version.js.map +1 -0
- package/lib/src/configs/buildExtensions.d.ts +1 -0
- package/lib/src/configs/buildExtensions.js +5 -0
- package/lib/src/configs/buildExtensions.js.map +1 -0
- package/lib/src/configs/default-source.d.ts +3 -0
- package/lib/src/configs/default-source.js +70 -0
- package/lib/src/configs/default-source.js.map +1 -0
- package/lib/src/configs/merged-packages.d.ts +1 -0
- package/lib/src/configs/merged-packages.js +24 -0
- package/lib/src/configs/merged-packages.js.map +1 -0
- package/lib/src/configs/uselessFiles.d.ts +1 -0
- package/lib/src/configs/uselessFiles.js +33 -0
- package/lib/src/configs/uselessFiles.js.map +1 -0
- package/lib/src/constants.d.ts +11 -0
- package/lib/src/constants.js +15 -0
- package/lib/src/constants.js.map +1 -0
- package/lib/src/dependencies/find.d.ts +0 -0
- package/lib/src/dependencies/find.js +195 -0
- package/lib/src/dependencies/find.js.map +1 -0
- package/lib/src/dependencies/import-linter.d.ts +3 -0
- package/lib/src/dependencies/import-linter.js +112 -0
- package/lib/src/dependencies/import-linter.js.map +1 -0
- package/lib/src/index.d.ts +2 -0
- package/lib/src/index.js +6 -0
- package/lib/src/index.js.map +1 -0
- package/lib/src/npm/manager.d.ts +7 -0
- package/lib/src/npm/manager.js +62 -0
- package/lib/src/npm/manager.js.map +1 -0
- package/lib/src/npm/package.d.ts +8 -0
- package/lib/src/npm/package.js +288 -0
- package/lib/src/npm/package.js.map +1 -0
- package/lib/src/npm/publish.d.ts +1 -0
- package/lib/src/npm/publish.js +14 -0
- package/lib/src/npm/publish.js.map +1 -0
- package/lib/src/npm/resolveLatestVersions.d.ts +3 -0
- package/lib/src/npm/resolveLatestVersions.js +35 -0
- package/lib/src/npm/resolveLatestVersions.js.map +1 -0
- package/lib/src/sanity/manifest.d.ts +48 -0
- package/lib/src/sanity/manifest.js +263 -0
- package/lib/src/sanity/manifest.js.map +1 -0
- package/lib/src/sharedFlags.d.ts +15 -0
- package/lib/src/sharedFlags.js +17 -0
- package/lib/src/sharedFlags.js.map +1 -0
- package/lib/src/util/command-parser.d.ts +9 -0
- package/lib/src/util/command-parser.js +41 -0
- package/lib/src/util/command-parser.js.map +1 -0
- package/lib/src/util/errorToUndefined.d.ts +1 -0
- package/lib/src/util/errorToUndefined.js +11 -0
- package/lib/src/util/errorToUndefined.js.map +1 -0
- package/lib/src/util/files.d.ts +36 -0
- package/lib/src/util/files.js +253 -0
- package/lib/src/util/files.js.map +1 -0
- package/lib/src/util/log.d.ts +14 -0
- package/lib/src/util/log.js +36 -0
- package/lib/src/util/log.js.map +1 -0
- package/lib/src/util/prompt.d.ts +13 -0
- package/lib/src/util/prompt.js +75 -0
- package/lib/src/util/prompt.js.map +1 -0
- package/lib/src/util/readme.d.ts +5 -0
- package/lib/src/util/readme.js +73 -0
- package/lib/src/util/readme.js.map +1 -0
- package/lib/src/util/request.d.ts +1 -0
- package/lib/src/util/request.js +19 -0
- package/lib/src/util/request.js.map +1 -0
- package/lib/src/util/user.d.ts +10 -0
- package/lib/src/util/user.js +106 -0
- package/lib/src/util/user.js.map +1 -0
- package/lib/test/cli.test.d.ts +1 -0
- package/lib/test/cli.test.js +64 -0
- package/lib/test/cli.test.js.map +1 -0
- package/lib/test/fixture-utils.d.ts +25 -0
- package/lib/test/fixture-utils.js +67 -0
- package/lib/test/fixture-utils.js.map +1 -0
- package/lib/test/init-verify-build.test.d.ts +1 -0
- package/lib/test/init-verify-build.test.js +75 -0
- package/lib/test/init-verify-build.test.js.map +1 -0
- package/lib/test/init.test.d.ts +1 -0
- package/lib/test/init.test.js +137 -0
- package/lib/test/init.test.js.map +1 -0
- package/lib/test/run-test-command.d.ts +1 -0
- package/lib/test/run-test-command.js +6 -0
- package/lib/test/run-test-command.js.map +1 -0
- package/lib/test/verify-package.test.d.ts +1 -0
- package/lib/test/verify-package.test.js +81 -0
- package/lib/test/verify-package.test.js.map +1 -0
- package/lib/test/version.test.d.ts +1 -0
- package/lib/test/version.test.js +48 -0
- package/lib/test/version.test.js.map +1 -0
- package/package.json +127 -0
- package/src/actions/init.ts +104 -0
- package/src/actions/link-watch.ts +74 -0
- package/src/actions/splat.ts +366 -0
- package/src/actions/verify/types.ts +84 -0
- package/src/actions/verify/validations.ts +401 -0
- package/src/actions/verify/verify-common.ts +92 -0
- package/src/actions/verify-package.ts +87 -0
- package/src/actions/verify-studio.ts +55 -0
- package/src/actions/verify.ts +328 -0
- package/src/cli.ts +77 -0
- package/src/cmds/index.ts +9 -0
- package/src/cmds/init.ts +85 -0
- package/src/cmds/link-watch.ts +51 -0
- package/src/cmds/splat.ts +59 -0
- package/src/cmds/verify-package.ts +36 -0
- package/src/cmds/verify-studio.ts +36 -0
- package/src/cmds/verify.ts +40 -0
- package/src/cmds/version.ts +67 -0
- package/src/configs/buildExtensions.ts +1 -0
- package/src/configs/default-source.ts +68 -0
- package/src/configs/merged-packages.ts +20 -0
- package/src/configs/uselessFiles.ts +29 -0
- package/src/constants.ts +13 -0
- package/src/dependencies/find.ts +193 -0
- package/src/dependencies/import-linter.ts +103 -0
- package/src/index.ts +4 -0
- package/src/npm/manager.ts +44 -0
- package/src/npm/package.ts +370 -0
- package/src/npm/publish.ts +9 -0
- package/src/npm/resolveLatestVersions.ts +26 -0
- package/src/sanity/manifest.ts +340 -0
- package/src/sharedFlags.ts +14 -0
- package/src/util/command-parser.ts +31 -0
- package/src/util/errorToUndefined.ts +7 -0
- package/src/util/files.ts +249 -0
- package/src/util/log.ts +44 -0
- package/src/util/prompt.ts +70 -0
- package/src/util/readme.ts +72 -0
- package/src/util/request.ts +13 -0
- package/src/util/user.ts +110 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const path_1 = __importDefault(require("path"));
|
|
7
|
+
const meow_1 = __importDefault(require("meow"));
|
|
8
|
+
const package_json_1 = __importDefault(require("../../package.json"));
|
|
9
|
+
const sharedFlags_1 = __importDefault(require("../sharedFlags"));
|
|
10
|
+
const link_watch_1 = require("../actions/link-watch");
|
|
11
|
+
const description = `Run the watch command and pushes any changes to yalc`;
|
|
12
|
+
const help = `
|
|
13
|
+
Usage
|
|
14
|
+
$ ${package_json_1.default.binname} link-watch [<args>]
|
|
15
|
+
|
|
16
|
+
Options
|
|
17
|
+
--silent Do not print info and warning messages
|
|
18
|
+
--verbose Log everything. This option conflicts with --silent
|
|
19
|
+
--version Output the version number
|
|
20
|
+
--help Output usage information
|
|
21
|
+
|
|
22
|
+
Configuration
|
|
23
|
+
To override the default watch command configuration, provide an override in package.json under sanityPlugin:
|
|
24
|
+
{
|
|
25
|
+
"sanityPlugin": {
|
|
26
|
+
"watchCommand": "microbundle watch --format modern,esm,cjs --jsx React.createElement --jsxImportSource react --css inline",
|
|
27
|
+
"linkWatch": {
|
|
28
|
+
"folder": "lib",
|
|
29
|
+
"command": "npm run watch",
|
|
30
|
+
"extensions": "js,png,svg,gif,jpeg,css"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
Examples
|
|
36
|
+
# Run the watch command and pushes any changes to yalc
|
|
37
|
+
$ ${package_json_1.default.binname} link-watch
|
|
38
|
+
`;
|
|
39
|
+
const flags = Object.assign(Object.assign({}, sharedFlags_1.default), { watch: {
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
default: false,
|
|
42
|
+
} });
|
|
43
|
+
function run({ argv }) {
|
|
44
|
+
const cli = (0, meow_1.default)(help, { flags, argv, description });
|
|
45
|
+
const basePath = path_1.default.resolve(cli.input[0] || process.cwd());
|
|
46
|
+
return (0, link_watch_1.linkWatch)({ basePath });
|
|
47
|
+
}
|
|
48
|
+
exports.default = run;
|
|
49
|
+
//# sourceMappingURL=link-watch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-watch.js","sourceRoot":"","sources":["../../../src/cmds/link-watch.ts"],"names":[],"mappings":";;;;;AAAA,gDAAuB;AACvB,gDAAuB;AACvB,sEAAoC;AACpC,iEAAwC;AACxC,sDAA+C;AAE/C,MAAM,WAAW,GAAG,sDAAsD,CAAA;AAE1E,MAAM,IAAI,GAAG;;MAEP,sBAAG,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;MAuBX,sBAAG,CAAC,OAAO;CAChB,CAAA;AAED,MAAM,KAAK,GAAG,gCACT,qBAAW,KACd,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;KACf,GACO,CAAA;AAEV,SAAS,GAAG,CAAC,EAAC,IAAI,EAAmB;IACnC,MAAM,GAAG,GAAG,IAAA,cAAI,EAAC,IAAI,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,WAAW,EAAC,CAAC,CAAA;IAClD,MAAM,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;IAC5D,OAAO,IAAA,sBAAS,EAAC,EAAC,QAAQ,EAAC,CAAC,CAAA;AAC9B,CAAC;AAED,kBAAe,GAAG,CAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const path_1 = __importDefault(require("path"));
|
|
16
|
+
const meow_1 = __importDefault(require("meow"));
|
|
17
|
+
const package_json_1 = __importDefault(require("../../package.json"));
|
|
18
|
+
const log_1 = __importDefault(require("../util/log"));
|
|
19
|
+
const splat_1 = require("../actions/splat");
|
|
20
|
+
const manifest_1 = require("../sanity/manifest");
|
|
21
|
+
const init_1 = require("../actions/init");
|
|
22
|
+
const description = `"Splat" configuration into a Sanity plugin`;
|
|
23
|
+
const help = `
|
|
24
|
+
Usage
|
|
25
|
+
$ ${package_json_1.default.binname} splat [dir] [<args>]
|
|
26
|
+
|
|
27
|
+
Options
|
|
28
|
+
--no-eslint Disables ESLint config and dependencies from being added
|
|
29
|
+
--no-prettier Disables prettier config and dependencies from being added
|
|
30
|
+
--no-typescript Disables typescript config and dependencies from being added
|
|
31
|
+
--no-license Disables LICENSE + package.json license field from being added
|
|
32
|
+
--no-editorconfig Disables .editorconfig from being added
|
|
33
|
+
--no-gitignore Disables .gitignore from being added
|
|
34
|
+
--no-scripts Disables scripts from being added to package.json
|
|
35
|
+
--license [spdx] Use the license with the given SPDX identifier
|
|
36
|
+
|
|
37
|
+
Examples
|
|
38
|
+
# Splat configuration into the plugin in the current directory
|
|
39
|
+
$ ${package_json_1.default.binname} splat
|
|
40
|
+
|
|
41
|
+
# Splat configuration into the plugin in ~/my-plugin
|
|
42
|
+
$ ${package_json_1.default.binname} splat ~/my-plugin
|
|
43
|
+
|
|
44
|
+
# Don't add eslint or prettier
|
|
45
|
+
$ ${package_json_1.default.binname} splat --no-eslint --no-prettier
|
|
46
|
+
`;
|
|
47
|
+
function run({ argv }) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
const cli = (0, meow_1.default)(help, { flags: init_1.initFlags, argv, description });
|
|
50
|
+
const basePath = path_1.default.resolve(cli.input[0] || process.cwd());
|
|
51
|
+
const { exists, isRoot } = yield (0, manifest_1.hasSanityJson)(basePath);
|
|
52
|
+
if (exists && isRoot) {
|
|
53
|
+
throw new Error(`sanity.json has a "root" property set to true - are you trying to splat into a studio instead of a plugin?`);
|
|
54
|
+
}
|
|
55
|
+
if (!exists) {
|
|
56
|
+
throw new Error(`sanity.json does not exist in this directory, maybe you want "${package_json_1.default.binname} init" instead?`);
|
|
57
|
+
}
|
|
58
|
+
yield (0, splat_1.splat)({ basePath, flags: cli.flags });
|
|
59
|
+
log_1.default.info('Done!');
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
exports.default = run;
|
|
63
|
+
//# sourceMappingURL=splat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"splat.js","sourceRoot":"","sources":["../../../src/cmds/splat.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAAuB;AACvB,gDAAuB;AACvB,sEAAoC;AACpC,sDAA6B;AAC7B,4CAAsC;AACtC,iDAAgD;AAEhD,0CAAyC;AAEzC,MAAM,WAAW,GAAG,4CAA4C,CAAA;AAEhE,MAAM,IAAI,GAAG;;MAEP,sBAAG,CAAC,OAAO;;;;;;;;;;;;;;MAcX,sBAAG,CAAC,OAAO;;;MAGX,sBAAG,CAAC,OAAO;;;MAGX,sBAAG,CAAC,OAAO;CAChB,CAAA;AAED,SAAe,GAAG,CAAC,EAAC,IAAI,EAAmB;;QACzC,MAAM,GAAG,GAAG,IAAA,cAAI,EAAC,IAAI,EAAE,EAAC,KAAK,EAAE,gBAAS,EAAE,IAAI,EAAE,WAAW,EAAC,CAAC,CAAA;QAC7D,MAAM,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;QAE5D,MAAM,EAAC,MAAM,EAAE,MAAM,EAAC,GAAG,MAAM,IAAA,wBAAa,EAAC,QAAQ,CAAC,CAAA;QACtD,IAAI,MAAM,IAAI,MAAM,EAAE;YACpB,MAAM,IAAI,KAAK,CACb,4GAA4G,CAC7G,CAAA;SACF;QAED,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAI,KAAK,CACb,iEAAiE,sBAAG,CAAC,OAAO,iBAAiB,CAC9F,CAAA;SACF;QAED,MAAM,IAAA,aAAK,EAAC,EAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAC,CAAC,CAAA;QAEzC,aAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IACnB,CAAC;CAAA;AAED,kBAAe,GAAG,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const path_1 = __importDefault(require("path"));
|
|
7
|
+
const meow_1 = __importDefault(require("meow"));
|
|
8
|
+
const verify_package_1 = require("../actions/verify-package");
|
|
9
|
+
const constants_1 = require("../constants");
|
|
10
|
+
const verify_common_1 = require("../actions/verify/verify-common");
|
|
11
|
+
const description = `Verify that a Sanity plugin package is v3 compatible, and print upgrade steps if not.`;
|
|
12
|
+
const help = `
|
|
13
|
+
Usage
|
|
14
|
+
$ ${constants_1.cliName} verify-package [dir] [<args>]
|
|
15
|
+
|
|
16
|
+
Options
|
|
17
|
+
--single Enables fail-fast mode: Will only output the first validation that fails.
|
|
18
|
+
--silent Do not print info and warning messages
|
|
19
|
+
--verbose Log everything. This option conflicts with --silent
|
|
20
|
+
--version Output the version number
|
|
21
|
+
--help Output usage information
|
|
22
|
+
|
|
23
|
+
Each check will describe how they can be individually disabled.
|
|
24
|
+
|
|
25
|
+
Examples
|
|
26
|
+
# Verify Sanity plugin package in current directory
|
|
27
|
+
$ ${constants_1.cliName} verify-package
|
|
28
|
+
|
|
29
|
+
# Verify Sanity plugin package in my-plugin directory in silent mode
|
|
30
|
+
$ ${constants_1.cliName} verify-package my-plugin-directory --silent
|
|
31
|
+
`;
|
|
32
|
+
function run({ argv }) {
|
|
33
|
+
const cli = (0, meow_1.default)(help, { flags: verify_common_1.verifyFlags, argv, description });
|
|
34
|
+
const basePath = path_1.default.resolve(cli.input[0] || process.cwd());
|
|
35
|
+
return (0, verify_package_1.verifyPackage)({ basePath, flags: cli.flags });
|
|
36
|
+
}
|
|
37
|
+
exports.default = run;
|
|
38
|
+
//# sourceMappingURL=verify-package.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify-package.js","sourceRoot":"","sources":["../../../src/cmds/verify-package.ts"],"names":[],"mappings":";;;;;AAAA,gDAAuB;AACvB,gDAAuB;AACvB,8DAAuD;AACvD,4CAAoC;AACpC,mEAA2D;AAE3D,MAAM,WAAW,GAAG,uFAAuF,CAAA;AAE3G,MAAM,IAAI,GAAG;;MAEP,mBAAO;;;;;;;;;;;;;MAaP,mBAAO;;;MAGP,mBAAO;CACZ,CAAA;AAED,SAAS,GAAG,CAAC,EAAC,IAAI,EAAmB;IACnC,MAAM,GAAG,GAAG,IAAA,cAAI,EAAC,IAAI,EAAE,EAAC,KAAK,EAAE,2BAAW,EAAE,IAAI,EAAE,WAAW,EAAC,CAAC,CAAA;IAC/D,MAAM,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;IAC5D,OAAO,IAAA,8BAAa,EAAC,EAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAC,CAAC,CAAA;AACpD,CAAC;AAED,kBAAe,GAAG,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const path_1 = __importDefault(require("path"));
|
|
7
|
+
const meow_1 = __importDefault(require("meow"));
|
|
8
|
+
const constants_1 = require("../constants");
|
|
9
|
+
const verify_common_1 = require("../actions/verify/verify-common");
|
|
10
|
+
const verify_studio_1 = require("../actions/verify-studio");
|
|
11
|
+
const description = `Verify that a Sanity Studio is configured correctly for v3, and print upgrade steps if not.`;
|
|
12
|
+
const help = `
|
|
13
|
+
Usage
|
|
14
|
+
$ ${constants_1.cliName} verify-studio [dir] [<args>]
|
|
15
|
+
|
|
16
|
+
Options
|
|
17
|
+
--single Enables fail-fast mode: Will only output the first validation that fails.
|
|
18
|
+
--silent Do not print info and warning messages
|
|
19
|
+
--verbose Log everything. This option conflicts with --silent
|
|
20
|
+
--version Output the version number
|
|
21
|
+
--help Output usage information
|
|
22
|
+
|
|
23
|
+
Each check will describe how they can be individually disabled.
|
|
24
|
+
|
|
25
|
+
Examples
|
|
26
|
+
# Verify Sanity Studio in current directory
|
|
27
|
+
$ ${constants_1.cliName} verify-studio
|
|
28
|
+
|
|
29
|
+
# Verify Sanity Studio in my-sanity-studio directory in silent mode
|
|
30
|
+
$ ${constants_1.cliName} verify-studio my-sanity-studio --silent
|
|
31
|
+
`;
|
|
32
|
+
function run({ argv }) {
|
|
33
|
+
const cli = (0, meow_1.default)(help, { flags: verify_common_1.verifyFlags, argv, description });
|
|
34
|
+
const basePath = path_1.default.resolve(cli.input[0] || process.cwd());
|
|
35
|
+
return (0, verify_studio_1.verifyStudio)({ basePath, flags: cli.flags });
|
|
36
|
+
}
|
|
37
|
+
exports.default = run;
|
|
38
|
+
//# sourceMappingURL=verify-studio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify-studio.js","sourceRoot":"","sources":["../../../src/cmds/verify-studio.ts"],"names":[],"mappings":";;;;;AAAA,gDAAuB;AACvB,gDAAuB;AACvB,4CAAoC;AACpC,mEAA2D;AAC3D,4DAAqD;AAErD,MAAM,WAAW,GAAG,6FAA6F,CAAA;AAEjH,MAAM,IAAI,GAAG;;MAEP,mBAAO;;;;;;;;;;;;;MAaP,mBAAO;;;MAGP,mBAAO;CACZ,CAAA;AAED,SAAS,GAAG,CAAC,EAAC,IAAI,EAAmB;IACnC,MAAM,GAAG,GAAG,IAAA,cAAI,EAAC,IAAI,EAAE,EAAC,KAAK,EAAE,2BAAW,EAAE,IAAI,EAAE,WAAW,EAAC,CAAC,CAAA;IAC/D,MAAM,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;IAC5D,OAAO,IAAA,4BAAY,EAAC,EAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAC,CAAC,CAAA;AACnD,CAAC;AAED,kBAAe,GAAG,CAAA"}
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
import path from 'path'
|
|
4
|
+
import meow from 'meow'
|
|
5
|
+
import pkg from '../../package.json'
|
|
6
|
+
import {verify} from '../actions/verify'
|
|
7
|
+
import sharedFlags from '../sharedFlags'
|
|
8
|
+
|
|
9
|
+
const description = `Verify that a Sanity plugin is ready for publishing`
|
|
10
|
+
|
|
11
|
+
const help = `
|
|
12
|
+
Usage
|
|
13
|
+
$ ${pkg.binname} verify [<dir>]
|
|
14
|
+
|
|
15
|
+
Examples
|
|
16
|
+
# Verify the plugin in the current directory
|
|
17
|
+
$ ${pkg.binname} verify
|
|
18
|
+
|
|
19
|
+
# Verify the plugin in ~/my-plugin
|
|
20
|
+
$ ${pkg.binname} verify ~/my-plugin
|
|
21
|
+
|
|
22
|
+
# Allow package.json to reference files inside the uncompiled source folder
|
|
23
|
+
$ ${pkg.binname} verify --allow-source-target
|
|
24
|
+
`
|
|
25
|
+
|
|
26
|
+
const flags = {
|
|
27
|
+
...sharedFlags,
|
|
28
|
+
allowSourceTarget: {
|
|
29
|
+
type: 'boolean',
|
|
30
|
+
default: false,
|
|
31
|
+
},
|
|
32
|
+
} as const
|
|
33
|
+
|
|
34
|
+
function run({argv}: {argv: string[]}) {
|
|
35
|
+
const cli = meow(help, {flags, argv, description})
|
|
36
|
+
const basePath = path.resolve(cli.input[0] || process.cwd())
|
|
37
|
+
return verify({basePath, flags: cli.flags})
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default run
|
|
41
|
+
*/
|
|
42
|
+
//# sourceMappingURL=verify.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify.js","sourceRoot":"","sources":["../../../src/cmds/verify.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCE"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const meow_1 = __importDefault(require("meow"));
|
|
7
|
+
const package_json_1 = __importDefault(require("../../package.json"));
|
|
8
|
+
const log_1 = __importDefault(require("../util/log"));
|
|
9
|
+
const sharedFlags_1 = __importDefault(require("../sharedFlags"));
|
|
10
|
+
const description = `Show the installed version of ${package_json_1.default.name}`;
|
|
11
|
+
const help = `
|
|
12
|
+
Usage
|
|
13
|
+
$ ${package_json_1.default.binname} version
|
|
14
|
+
|
|
15
|
+
Options
|
|
16
|
+
--major Show only the major version
|
|
17
|
+
--minor Show only the minor version
|
|
18
|
+
--patch Show only the patch version
|
|
19
|
+
|
|
20
|
+
Examples
|
|
21
|
+
$ ${package_json_1.default.binname} version
|
|
22
|
+
${package_json_1.default.name} version ${package_json_1.default.version}
|
|
23
|
+
|
|
24
|
+
$ ${package_json_1.default.binname} version --major
|
|
25
|
+
${package_json_1.default.version.split('.')[0]}
|
|
26
|
+
`;
|
|
27
|
+
const flags = Object.assign(Object.assign({}, sharedFlags_1.default), { major: {
|
|
28
|
+
type: 'boolean',
|
|
29
|
+
default: false,
|
|
30
|
+
}, minor: {
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
default: false,
|
|
33
|
+
}, patch: {
|
|
34
|
+
type: 'boolean',
|
|
35
|
+
default: false,
|
|
36
|
+
} });
|
|
37
|
+
function run({ argv }) {
|
|
38
|
+
const cli = (0, meow_1.default)(help, { flags, argv, description });
|
|
39
|
+
const versionParts = package_json_1.default.version.split('.');
|
|
40
|
+
const versionNames = ['major', 'minor', 'patch'];
|
|
41
|
+
const versionFlags = versionNames.filter((flagName) => cli.flags[flagName]);
|
|
42
|
+
const versionFlag = versionFlags[0];
|
|
43
|
+
const numVersionFlags = versionFlags.length;
|
|
44
|
+
if (numVersionFlags === 0) {
|
|
45
|
+
log_1.default.msg(`${package_json_1.default.name} version ${package_json_1.default.version}`);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (numVersionFlags > 1) {
|
|
49
|
+
throw new Error(`--major, --minor and --patch are mutually exclusive - only one can be used at a time`);
|
|
50
|
+
}
|
|
51
|
+
const partIndex = versionNames.indexOf(versionFlag);
|
|
52
|
+
log_1.default.msg(versionParts[partIndex]);
|
|
53
|
+
}
|
|
54
|
+
exports.default = run;
|
|
55
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/cmds/version.ts"],"names":[],"mappings":";;;;;AAAA,gDAAuB;AACvB,sEAAoC;AACpC,sDAA6B;AAC7B,iEAAwC;AAExC,MAAM,WAAW,GAAG,iCAAiC,sBAAG,CAAC,IAAI,EAAE,CAAA;AAE/D,MAAM,IAAI,GAAG;;MAEP,sBAAG,CAAC,OAAO;;;;;;;;MAQX,sBAAG,CAAC,OAAO;IACb,sBAAG,CAAC,IAAI,YAAY,sBAAG,CAAC,OAAO;;MAE7B,sBAAG,CAAC,OAAO;IACb,sBAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAC5B,CAAA;AAED,MAAM,KAAK,GAAG,gCACT,qBAAW,KAEd,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;KACf,EAED,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;KACf,EAED,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;KACf,GACO,CAAA;AAEV,SAAS,GAAG,CAAC,EAAC,IAAI,EAAmB;IACnC,MAAM,GAAG,GAAG,IAAA,cAAI,EAAC,IAAI,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,WAAW,EAAC,CAAC,CAAA;IAClD,MAAM,YAAY,GAAG,sBAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAC3C,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;IAChD,MAAM,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC3E,MAAM,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC,CAAA;IACnC,MAAM,eAAe,GAAG,YAAY,CAAC,MAAM,CAAA;IAE3C,IAAI,eAAe,KAAK,CAAC,EAAE;QACzB,aAAG,CAAC,GAAG,CAAC,GAAG,sBAAG,CAAC,IAAI,YAAY,sBAAG,CAAC,OAAO,EAAE,CAAC,CAAA;QAC7C,OAAM;KACP;IAED,IAAI,eAAe,GAAG,CAAC,EAAE;QACvB,MAAM,IAAI,KAAK,CACb,sFAAsF,CACvF,CAAA;KACF;IAED,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IACnD,aAAG,CAAC,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAA;AAClC,CAAC;AAED,kBAAe,GAAG,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const buildExtensions: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildExtensions.js","sourceRoot":"","sources":["../../../src/configs/buildExtensions.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.defaultSourceTs = exports.defaultSourceJs = void 0;
|
|
7
|
+
const outdent_1 = __importDefault(require("outdent"));
|
|
8
|
+
function defaultSourceJs(pkg) {
|
|
9
|
+
return ((0, outdent_1.default) `
|
|
10
|
+
import {createPlugin} from 'sanity'
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* ## Usage in sanity.config.js (or .js)
|
|
14
|
+
*
|
|
15
|
+
* \`\`\`
|
|
16
|
+
* import {createConfig} from 'sanity'
|
|
17
|
+
* import {myPlugin} from '${pkg.name}'
|
|
18
|
+
*
|
|
19
|
+
* export const createConfig({
|
|
20
|
+
* /...
|
|
21
|
+
* plugins: [
|
|
22
|
+
* myPlugin({})
|
|
23
|
+
* ]
|
|
24
|
+
* })
|
|
25
|
+
* \`\`\`
|
|
26
|
+
*/
|
|
27
|
+
export const myPlugin = createPlugin((config = {}) => {
|
|
28
|
+
// eslint-disable-next-line no-console
|
|
29
|
+
console.log(\`hello from ${pkg.name}\`)
|
|
30
|
+
return {
|
|
31
|
+
name: '${pkg.name}',
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
`.trimStart() + '\n');
|
|
35
|
+
}
|
|
36
|
+
exports.defaultSourceJs = defaultSourceJs;
|
|
37
|
+
function defaultSourceTs(pkg) {
|
|
38
|
+
return ((0, outdent_1.default) `
|
|
39
|
+
import {createPlugin} from 'sanity'
|
|
40
|
+
|
|
41
|
+
interface MyPluginConfig {
|
|
42
|
+
/* nothing here yet */
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* ## Usage in sanity.config.ts (or .js)
|
|
47
|
+
*
|
|
48
|
+
* \`\`\`
|
|
49
|
+
* import {createConfig} from 'sanity'
|
|
50
|
+
* import {myPlugin} from '${pkg.name}'
|
|
51
|
+
*
|
|
52
|
+
* export const createConfig({
|
|
53
|
+
* /...
|
|
54
|
+
* plugins: [
|
|
55
|
+
* myPlugin()
|
|
56
|
+
* ]
|
|
57
|
+
* })
|
|
58
|
+
* \`\`\`
|
|
59
|
+
*/
|
|
60
|
+
export const myPlugin = createPlugin<MyPluginConfig | void>((config = {}) => {
|
|
61
|
+
// eslint-disable-next-line no-console
|
|
62
|
+
console.log('hello from ${pkg.name}')
|
|
63
|
+
return {
|
|
64
|
+
name: '${pkg.name}',
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
`.trimStart() + '\n');
|
|
68
|
+
}
|
|
69
|
+
exports.defaultSourceTs = defaultSourceTs;
|
|
70
|
+
//# sourceMappingURL=default-source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-source.js","sourceRoot":"","sources":["../../../src/configs/default-source.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA6B;AAG7B,SAAgB,eAAe,CAAC,GAAgB;IAC9C,OAAO,CACL,IAAA,iBAAO,EAAA;;;;;;;;+BAQoB,GAAG,CAAC,IAAI;;;;;;;;;;;;+BAYR,GAAG,CAAC,IAAI;;eAExB,GAAG,CAAC,IAAI;;;CAGtB,CAAC,SAAS,EAAE,GAAG,IAAI,CACjB,CAAA;AACH,CAAC;AA7BD,0CA6BC;AAED,SAAgB,eAAe,CAAC,GAAgB;IAC9C,OAAO,CACL,IAAA,iBAAO,EAAA;;;;;;;;;;;;+BAYoB,GAAG,CAAC,IAAI;;;;;;;;;;;;8BAYT,GAAG,CAAC,IAAI;;eAEvB,GAAG,CAAC,IAAI;;;CAGtB,CAAC,SAAS,EAAE,GAAG,IAAI,CACjB,CAAA;AACH,CAAC;AAjCD,0CAiCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergedPackages: string[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mergedPackages = void 0;
|
|
4
|
+
exports.mergedPackages = [
|
|
5
|
+
'@sanity/base',
|
|
6
|
+
'@sanity/core',
|
|
7
|
+
'@sanity/cli',
|
|
8
|
+
'@sanity/types',
|
|
9
|
+
'@sanity/data-aspects',
|
|
10
|
+
'@sanity/default-layout',
|
|
11
|
+
'@sanity/default-login',
|
|
12
|
+
'@sanity/desk-tool',
|
|
13
|
+
'@sanity/field',
|
|
14
|
+
'@sanity/form-builder',
|
|
15
|
+
'@sanity/initial-value-templates',
|
|
16
|
+
'@sanity/language-filter',
|
|
17
|
+
'@sanity/production-preview',
|
|
18
|
+
'@sanity/react-hooks',
|
|
19
|
+
'@sanity/resolver',
|
|
20
|
+
'@sanity/state-router',
|
|
21
|
+
'@sanity/structure',
|
|
22
|
+
'@sanity/studio-hints',
|
|
23
|
+
].sort();
|
|
24
|
+
//# sourceMappingURL=merged-packages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merged-packages.js","sourceRoot":"","sources":["../../../src/configs/merged-packages.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC5B,cAAc;IACd,cAAc;IACd,aAAa;IACb,eAAe;IACf,sBAAsB;IACtB,wBAAwB;IACxB,uBAAuB;IACvB,mBAAmB;IACnB,eAAe;IACf,sBAAsB;IACtB,iCAAiC;IACjC,yBAAyB;IACzB,4BAA4B;IAC5B,qBAAqB;IACrB,kBAAkB;IAClB,sBAAsB;IACtB,mBAAmB;IACnB,sBAAsB;CACvB,CAAC,IAAI,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const uselessFiles: string[];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uselessFiles = void 0;
|
|
4
|
+
exports.uselessFiles = [
|
|
5
|
+
'.babel.config.js',
|
|
6
|
+
'.babelrc',
|
|
7
|
+
'.drone.yml',
|
|
8
|
+
'.editorconfig',
|
|
9
|
+
'.eslintignore',
|
|
10
|
+
'.eslintrc-ts.js',
|
|
11
|
+
'.eslintrc-ts',
|
|
12
|
+
'.eslintrc',
|
|
13
|
+
'.gitignore',
|
|
14
|
+
'.github',
|
|
15
|
+
'.nyc_output',
|
|
16
|
+
'.prettierrc',
|
|
17
|
+
'.stylelintignore',
|
|
18
|
+
'.stylelintrc.json',
|
|
19
|
+
'.stylelintrc',
|
|
20
|
+
'.travis.yaml',
|
|
21
|
+
'.travis.yml',
|
|
22
|
+
'babel.config.js',
|
|
23
|
+
'coverage',
|
|
24
|
+
'gulpfile.js',
|
|
25
|
+
'lcov-report',
|
|
26
|
+
'lerna.json',
|
|
27
|
+
'now.json',
|
|
28
|
+
'vercel.json',
|
|
29
|
+
'netlify.toml',
|
|
30
|
+
'postcss.config.js',
|
|
31
|
+
'tsconfig.json',
|
|
32
|
+
];
|
|
33
|
+
//# sourceMappingURL=uselessFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uselessFiles.js","sourceRoot":"","sources":["../../../src/configs/uselessFiles.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,kBAAkB;IAClB,UAAU;IACV,YAAY;IACZ,eAAe;IACf,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,WAAW;IACX,YAAY;IACZ,SAAS;IACT,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,mBAAmB;IACnB,cAAc;IACd,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,UAAU;IACV,aAAa;IACb,aAAa;IACb,YAAY;IACZ,UAAU;IACV,aAAa;IACb,cAAc;IACd,mBAAmB;IACnB,eAAe;CAChB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const cliName = "@sanity/plugin-kit";
|
|
2
|
+
export declare const urls: {
|
|
3
|
+
refDocs: string;
|
|
4
|
+
migrationGuideStudio: string;
|
|
5
|
+
migrationGuidePlugin: string;
|
|
6
|
+
pluginReadme: string;
|
|
7
|
+
incompatiblePlugin: string;
|
|
8
|
+
sanityExchange: string;
|
|
9
|
+
linterPackage: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const incompatiblePluginPackage = "@sanity/incompatible-plugin";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.incompatiblePluginPackage = exports.urls = exports.cliName = void 0;
|
|
4
|
+
exports.cliName = '@sanity/plugin-kit';
|
|
5
|
+
exports.urls = {
|
|
6
|
+
refDocs: 'https://beta.sanity.io/docs/reference',
|
|
7
|
+
migrationGuideStudio: 'https://beta.sanity.io/docs/platform/v2-to-v3',
|
|
8
|
+
migrationGuidePlugin: 'https://beta.sanity.io/docs/platform/v2-to-v3/plugins',
|
|
9
|
+
pluginReadme: 'https://github.com/sanity-io/plugin-kit',
|
|
10
|
+
incompatiblePlugin: 'https://github.com/sanity-io/incompatible-plugin',
|
|
11
|
+
sanityExchange: 'https://www.sanity.io/exchange',
|
|
12
|
+
linterPackage: 'https://github.com/sanity-io/eslint-config-no-v2-imports',
|
|
13
|
+
};
|
|
14
|
+
exports.incompatiblePluginPackage = '@sanity/incompatible-plugin';
|
|
15
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,oBAAoB,CAAA;AAE9B,QAAA,IAAI,GAAG;IAClB,OAAO,EAAE,uCAAuC;IAChD,oBAAoB,EAAE,+CAA+C;IACrE,oBAAoB,EAAE,uDAAuD;IAC7E,YAAY,EAAE,yCAAyC;IACvD,kBAAkB,EAAE,kDAAkD;IACtE,cAAc,EAAE,gCAAgC;IAChD,aAAa,EAAE,0DAA0D;CAC1E,CAAA;AAEY,QAAA,yBAAyB,GAAG,6BAA6B,CAAA"}
|
|
File without changes
|