@sanity/plugin-kit 3.1.10 → 3.1.12
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 +1 -1
- package/README.md +1 -1
- package/dist/_chunks/{cli-b62657e9.js → cli-cFLCCBOO.js} +7 -7
- package/dist/_chunks/{cli-b62657e9.js.map → cli-cFLCCBOO.js.map} +1 -1
- package/dist/_chunks/{init-cec2f4ef.js → init-RizSz7N7.js} +4 -4
- package/dist/_chunks/{init-cec2f4ef.js.map → init-RizSz7N7.js.map} +1 -1
- package/dist/_chunks/{init-3120a384.js → init-iwJScjA2.js} +29 -31
- package/dist/_chunks/init-iwJScjA2.js.map +1 -0
- package/dist/_chunks/{inject-bff6e27b.js → inject-p1N6jT0L.js} +6 -6
- package/dist/_chunks/{inject-bff6e27b.js.map → inject-p1N6jT0L.js.map} +1 -1
- package/dist/_chunks/{link-watch-9f9e4c95.js → link-watch-hESx--O4.js} +9 -11
- package/dist/_chunks/{link-watch-9f9e4c95.js.map → link-watch-hESx--O4.js.map} +1 -1
- package/dist/_chunks/{package-388ef15c.js → package-LD2bWiQM.js} +79 -81
- package/dist/_chunks/{package-388ef15c.js.map → package-LD2bWiQM.js.map} +1 -1
- package/dist/_chunks/{package-7cb0d20a.js → package-hEMm6olE.js} +8 -9
- package/dist/_chunks/{package-7cb0d20a.js.map → package-hEMm6olE.js.map} +1 -1
- package/dist/_chunks/{ts-d368b64b.js → ts--PkJtFoh.js} +4 -4
- package/dist/_chunks/{ts-d368b64b.js.map → ts--PkJtFoh.js.map} +1 -1
- package/dist/_chunks/{verify-package-dcd78bcb.js → verify-package-88yI8VXr.js} +10 -11
- package/dist/_chunks/{verify-package-dcd78bcb.js.map → verify-package-88yI8VXr.js.map} +1 -1
- package/dist/_chunks/{verify-studio-1bc674db.js → verify-studio-t8s7BSdb.js} +9 -10
- package/dist/_chunks/{verify-studio-1bc674db.js.map → verify-studio-t8s7BSdb.js.map} +1 -1
- package/dist/_chunks/{version-d0278a75.js → version-UQqnNiud.js} +3 -3
- package/dist/_chunks/{version-d0278a75.js.map → version-UQqnNiud.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/package.json +7 -8
- package/src/npm/package.ts +1 -1
- package/src/presets/semver-workflow.ts +2 -3
- package/dist/_chunks/init-3120a384.js.map +0 -1
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var pkgUtils = require('@sanity/pkg-utils');
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var meow = require('meow');
|
|
6
|
-
var cli = require('./cli-
|
|
7
|
-
var init = require('./init-
|
|
8
|
-
var _package = require('./package-
|
|
6
|
+
var cli = require('./cli-cFLCCBOO.js');
|
|
7
|
+
var init = require('./init-iwJScjA2.js');
|
|
8
|
+
var _package = require('./package-LD2bWiQM.js');
|
|
9
9
|
function _interopDefaultCompat(e) {
|
|
10
10
|
return e && typeof e === 'object' && 'default' in e ? e : {
|
|
11
11
|
default: e
|
|
@@ -16,7 +16,7 @@ var meow__default = /*#__PURE__*/_interopDefaultCompat(meow);
|
|
|
16
16
|
const description = "Inject configuration into a Sanity plugin";
|
|
17
17
|
const help = "\nUsage\n $ ".concat(cli.cliName, " inject [dir] [<args>]\n\nOptions\n --no-eslint Disables ESLint config and dependencies from being added\n --no-prettier Disables prettier config and dependencies from being added\n --no-typescript Disables typescript config and dependencies from being added\n --no-license Disables LICENSE + package.json license field from being added\n --no-editorconfig Disables .editorconfig from being added\n --no-gitignore Disables .gitignore from being added\n --no-scripts Disables scripts from being added to package.json\n\n --license [spdx] Use the license with the given SPDX identifier\n --force No promt when overwriting files\n\n --preset [preset-name] Adds config and files from a named preset. --preset can be supplied multiple times.\n The following presets are available:\n").concat(init.presetHelpList(30), "\n --preset-only Skips the default inject steps. Use this to apply a preset to an otherwise complete plugin.\n\nExamples\n # Inject configuration into the plugin in the current directory\n $ ").concat(cli.cliName, " inject\n\n # Inject configuration into the plugin in ~/my-plugin\n $ ").concat(cli.cliName, " inject ~/my-plugin\n\n # Don't inject eslint or prettier\n $ ").concat(cli.cliName, " inject --no-eslint --no-prettier\n\n # Inject plugin configuration and semver-workflow into the plugin in the current directory\n $ @sanity/plugin-kit inject --preset semver-workflow\n\n # Only inject semver-workflow and renovatebot config from presets\n $ ").concat(cli.cliName, " inject --preset-only --preset semver-workflow --preset renovatebot\n\n");
|
|
18
18
|
async function run(_ref) {
|
|
19
|
-
var
|
|
19
|
+
var _packageConfig$dist;
|
|
20
20
|
let {
|
|
21
21
|
argv
|
|
22
22
|
} = _ref;
|
|
@@ -29,7 +29,7 @@ async function run(_ref) {
|
|
|
29
29
|
const packageConfig = await pkgUtils.loadConfig({
|
|
30
30
|
cwd: basePath
|
|
31
31
|
});
|
|
32
|
-
const outDir = (
|
|
32
|
+
const outDir = (_packageConfig$dist = packageConfig === null || packageConfig === void 0 ? void 0 : packageConfig.dist) !== null && _packageConfig$dist !== void 0 ? _packageConfig$dist : cli.defaultOutDir;
|
|
33
33
|
const {
|
|
34
34
|
v3ConfigFile
|
|
35
35
|
} = await _package.findStudioV3Config(basePath);
|
|
@@ -46,4 +46,4 @@ async function run(_ref) {
|
|
|
46
46
|
cli.log.info("Done!");
|
|
47
47
|
}
|
|
48
48
|
exports.default = run;
|
|
49
|
-
//# sourceMappingURL=inject-
|
|
49
|
+
//# sourceMappingURL=inject-p1N6jT0L.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject-
|
|
1
|
+
{"version":3,"file":"inject-p1N6jT0L.js","sources":["../../src/cmds/inject.ts"],"sourcesContent":["import {loadConfig as loadPackageConfig} from '@sanity/pkg-utils'\nimport path from 'path'\nimport meow from 'meow'\nimport log from '../util/log'\nimport {inject} from '../actions/inject'\nimport {findStudioV3Config} from '../sanity/manifest'\nimport {initFlags} from '../actions/init'\nimport {cliName, defaultOutDir} from '../constants'\nimport {presetHelpList} from '../presets/presets'\n\nconst description = `Inject configuration into a Sanity plugin`\n\nconst help = `\nUsage\n $ ${cliName} inject [dir] [<args>]\n\nOptions\n --no-eslint Disables ESLint config and dependencies from being added\n --no-prettier Disables prettier config and dependencies from being added\n --no-typescript Disables typescript config and dependencies from being added\n --no-license Disables LICENSE + package.json license field from being added\n --no-editorconfig Disables .editorconfig from being added\n --no-gitignore Disables .gitignore from being added\n --no-scripts Disables scripts from being added to package.json\n\n --license [spdx] Use the license with the given SPDX identifier\n --force No promt when overwriting files\n\n --preset [preset-name] Adds config and files from a named preset. --preset can be supplied multiple times.\n The following presets are available:\n${presetHelpList(30)}\n --preset-only Skips the default inject steps. Use this to apply a preset to an otherwise complete plugin.\n\nExamples\n # Inject configuration into the plugin in the current directory\n $ ${cliName} inject\n\n # Inject configuration into the plugin in ~/my-plugin\n $ ${cliName} inject ~/my-plugin\n\n # Don't inject eslint or prettier\n $ ${cliName} inject --no-eslint --no-prettier\n\n # Inject plugin configuration and semver-workflow into the plugin in the current directory\n $ @sanity/plugin-kit inject --preset semver-workflow\n\n # Only inject semver-workflow and renovatebot config from presets\n $ ${cliName} inject --preset-only --preset semver-workflow --preset renovatebot\n\n`\n\nasync function run({argv}: {argv: string[]}) {\n const cli = meow(help, {flags: initFlags, argv, description})\n const basePath = path.resolve(cli.input[0] || process.cwd())\n const packageConfig = await loadPackageConfig({cwd: basePath})\n const outDir = packageConfig?.dist ?? defaultOutDir\n\n const {v3ConfigFile} = await findStudioV3Config(basePath)\n if (v3ConfigFile) {\n throw new Error(\n `${v3ConfigFile} exists - are you trying to INJECT into a studio instead of a plugin?`,\n )\n }\n log.info('Inject config into plugin in \"%s\"', basePath)\n\n await inject({basePath, outDir, flags: cli.flags, validate: false})\n log.info('Done!')\n}\n\nexport default run\n"],"names":["description","help","concat","cliName","presetHelpList","run","_ref","_packageConfig$dist","argv","cli","meow","flags","initFlags","basePath","path","resolve","input","process","cwd","packageConfig","loadPackageConfig","loadConfig","outDir","dist","defaultOutDir","v3ConfigFile","findStudioV3Config","Error","log","info","inject","validate"],"mappings":";;;;;;;;;;;;;;;AAUA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_templateObject;
|
|
|
4
4
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
5
5
|
var path = require('path');
|
|
6
6
|
var meow = require('meow');
|
|
7
|
-
var _package$1 = require('./package-
|
|
8
|
-
var cli = require('./cli-
|
|
7
|
+
var _package$1 = require('./package-hEMm6olE.js');
|
|
8
|
+
var cli = require('./cli-cFLCCBOO.js');
|
|
9
9
|
var nodemon = require('nodemon');
|
|
10
10
|
var concurrently = require('concurrently');
|
|
11
11
|
var chalk = require('chalk');
|
|
12
12
|
var fs = require('fs');
|
|
13
|
-
var _package = require('./package-
|
|
13
|
+
var _package = require('./package-LD2bWiQM.js');
|
|
14
14
|
var outdent = require('outdent');
|
|
15
15
|
var pkgUtils = require('@sanity/pkg-utils');
|
|
16
16
|
function _interopDefaultCompat(e) {
|
|
@@ -26,20 +26,19 @@ var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
|
|
|
26
26
|
var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
27
27
|
var outdent__default = /*#__PURE__*/_interopDefaultCompat(outdent);
|
|
28
28
|
async function linkWatch(_ref) {
|
|
29
|
-
var
|
|
29
|
+
var _packageConfig$dist, _packageJson$sanityPl;
|
|
30
30
|
let {
|
|
31
31
|
basePath
|
|
32
32
|
} = _ref;
|
|
33
|
-
var _a;
|
|
34
33
|
const packageJson = JSON.parse(fs__default.default.readFileSync(path__default.default.join(basePath, "package.json"), "utf8"));
|
|
35
34
|
const packageConfig = await pkgUtils.loadConfig({
|
|
36
35
|
cwd: basePath
|
|
37
36
|
});
|
|
38
|
-
const outDir = (
|
|
37
|
+
const outDir = (_packageConfig$dist = packageConfig === null || packageConfig === void 0 ? void 0 : packageConfig.dist) !== null && _packageConfig$dist !== void 0 ? _packageConfig$dist : cli.defaultOutDir;
|
|
39
38
|
const watch = {
|
|
40
39
|
command: "npm run watch",
|
|
41
40
|
extensions: "ts,js,png,svg,gif,jpeg,css",
|
|
42
|
-
...((
|
|
41
|
+
...((_packageJson$sanityPl = packageJson.sanityPlugin) === null || _packageJson$sanityPl === void 0 ? void 0 : _packageJson$sanityPl.linkWatch)
|
|
43
42
|
};
|
|
44
43
|
nodemon__default.default({
|
|
45
44
|
watch: [outDir],
|
|
@@ -47,7 +46,6 @@ async function linkWatch(_ref) {
|
|
|
47
46
|
exec: "yalc push --changed"
|
|
48
47
|
//delay: 1000
|
|
49
48
|
});
|
|
50
|
-
|
|
51
49
|
const folder = path__default.default.join(basePath, outDir);
|
|
52
50
|
if (!(await _package.fileExists(folder))) {
|
|
53
51
|
await _package.mkdir(folder);
|
|
@@ -75,10 +73,10 @@ const flags = {
|
|
|
75
73
|
default: false
|
|
76
74
|
}
|
|
77
75
|
};
|
|
78
|
-
function run(
|
|
76
|
+
function run(_ref2) {
|
|
79
77
|
let {
|
|
80
78
|
argv
|
|
81
|
-
} =
|
|
79
|
+
} = _ref2;
|
|
82
80
|
const cli = meow__default.default(help, {
|
|
83
81
|
flags,
|
|
84
82
|
argv,
|
|
@@ -90,4 +88,4 @@ function run(_ref3) {
|
|
|
90
88
|
});
|
|
91
89
|
}
|
|
92
90
|
exports.default = run;
|
|
93
|
-
//# sourceMappingURL=link-watch-
|
|
91
|
+
//# sourceMappingURL=link-watch-hESx--O4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-watch-
|
|
1
|
+
{"version":3,"file":"link-watch-hESx--O4.js","sources":["../../src/actions/link-watch.ts","../../src/cmds/link-watch.ts"],"sourcesContent":["/*\nISC License (ISC)\nCopyright 2019 Johan Otterud\n\nPermission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,\nprovided that the above copyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\nWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH\nTHE USE OR PERFORMANCE OF THIS SOFTWARE.\n*/\n\n/*\nThis code is a modified version of https://github.com/johot/yalc-watch,\nand the ISC License has been added for this file only, in accordance with the package.json license field in that package\n*/\n\nimport nodemon from 'nodemon'\nimport concurrently from 'concurrently'\nimport chalk from 'chalk'\nimport fs from 'fs'\nimport path from 'path'\nimport log from '../util/log'\nimport {getPackage} from '../npm/package'\nimport outdent from 'outdent'\nimport {fileExists, mkdir} from '../util/files'\nimport {loadConfig as loadPackageConfig} from '@sanity/pkg-utils'\nimport {defaultOutDir} from '../constants'\n\ninterface YalcWatchConfig {\n command?: string\n extensions?: string\n}\n\ninterface PackageJson {\n sanityPlugin?: {linkWatch?: YalcWatchConfig}\n}\n\nexport async function linkWatch({basePath}: {basePath: string}) {\n const packageJson: PackageJson = JSON.parse(\n fs.readFileSync(path.join(basePath, 'package.json'), 'utf8'),\n )\n\n const packageConfig = await loadPackageConfig({cwd: basePath})\n const outDir = packageConfig?.dist ?? defaultOutDir\n\n const watch: Required<YalcWatchConfig> = {\n command: 'npm run watch',\n extensions: 'ts,js,png,svg,gif,jpeg,css',\n ...packageJson.sanityPlugin?.linkWatch,\n }\n\n nodemon({\n watch: [outDir],\n ext: watch.extensions,\n exec: 'yalc push --changed',\n //delay: 1000\n })\n\n // ensure the folder exits so it can be watched\n const folder = path.join(basePath, outDir)\n if (!(await fileExists(folder))) {\n await mkdir(folder)\n }\n\n const pkg = await getPackage({basePath, validate: false})\n\n concurrently([watch.command])\n\n nodemon\n .on('start', function () {\n log.info(\n outdent`\n Watching ${outDir} for changes to files with extensions: ${watch.extensions}\n\n To test this package in Sanity Studio or another package, in a separate shell run:\n cd /path/to/sanity/studio-or-package\n\n Then, run one of the below commands, based on the package manager used in studio-or-package:\n\n ## yarn\n ${chalk.greenBright(`yalc add --link ${pkg.name} && yarn install`)}\n\n ## npm\n ${chalk.greenBright(`npx yalc add ${pkg.name} && npx yalc link ${pkg.name} && npm install`)}\n `.trimStart(),\n )\n })\n .on('quit', function () {\n process.exit()\n })\n .on('restart', function (files: any) {\n log.info('Found changes in files:', chalk.magentaBright(files))\n log.info('Pushing new yalc package...')\n })\n}\n","import path from 'path'\nimport meow from 'meow'\nimport pkg from '../../package.json'\nimport sharedFlags from '../sharedFlags'\nimport {linkWatch} from '../actions/link-watch'\n\nconst description = `Run the watch command and pushes any changes to yalc`\n\nconst help = `\nUsage\n $ ${pkg.binname} link-watch [<args>]\n\nOptions\n --silent Do not print info and warning messages\n --verbose Log everything. This option conflicts with --silent\n --version Output the version number\n --help Output usage information\n\nConfiguration\nTo override the default watch command configuration, provide an override in package.json under sanityPlugin:\n{\n \"sanityPlugin\": {\n \"watchCommand\": \"microbundle watch --format modern,esm,cjs --jsx React.createElement --jsxImportSource react --css inline\",\n \"linkWatch\": {\n \"command\": \"npm run watch\",\n \"extensions\": \"js,png,svg,gif,jpeg,css\"\n }\n }\n}\n\nExamples\n # Run the watch command and pushes any changes to yalc\n $ ${pkg.binname} link-watch\n`\n\nconst flags = {\n ...sharedFlags,\n watch: {\n type: 'boolean',\n default: false,\n },\n} as const\n\nfunction run({argv}: {argv: string[]}) {\n const cli = meow(help, {flags, argv, description})\n const basePath = path.resolve(cli.input[0] || process.cwd())\n return linkWatch({basePath})\n}\n\nexport default run\n"],"names":["linkWatch","_ref","_packageConfig$dist","_packageJson$sanityPl","basePath","packageJson","JSON","parse","fs","readFileSync","path","join","packageConfig","loadPackageConfig","loadConfig","cwd","outDir","dist","defaultOutDir","watch","command","extensions","sanityPlugin","nodemon","ext","exec","folder","default","fileExists","mkdir","pkg","getPackage","validate","concurrently","on","log","info","outdent","_templateObject","_taggedTemplateLiteral","chalk","greenBright","concat","name","trimStart","process","exit","files","magentaBright","description","help","binname","flags","sharedFlags","type","run","_ref2","argv","cli","meow","resolve","input"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCsB,eAAAA,SAAAA,CAAAC,IAAA,EAA0C;EAAA,IAAAC,mBAAA,EAAAC,qBAAA;EAAA,IAAhC;IAACC;GAA+B,GAAAH,IAAA;EAC9D,MAAMI,cAA2BC,IAAK,CAAAC,KAAA,CACpCC,oBAAGC,YAAa,CAAAC,qBAAA,CAAKC,KAAKP,QAAU,EAAA,cAAc,GAAG,MAAM,CAAA,CAC7D;EAEA,MAAMQ,gBAAgB,MAAMC,QAAA,CAAAC,UAAA,CAAkB;IAACC,GAAA,EAAKX;EAAS,CAAA,CAAA;EACvD,MAAAY,MAAA,IAAAd,mBAAA,GAASU,0BAAAA,oCAAAA,cAAeK,IAAQ,cAAAf,mBAAA,cAAAA,mBAAA,GAAAgB,iBAAA;EAEtC,MAAMC,KAAmC,GAAA;IACvCC,OAAS,EAAA,eAAA;IACTC,UAAY,EAAA,4BAAA;IACZ,KAAAlB,qBAAA,GAAGE,YAAYiB,YAAc,cAAAnB,qBAAA,uBAA1BA,qBAAA,CAA0BH,SAAA;EAAA,CAC/B;EAEQuB,wBAAA,CAAA;IACNJ,KAAA,EAAO,CAACH,MAAM,CAAA;IACdQ,KAAKL,KAAM,CAAAE,UAAA;IACXI,IAAM,EAAA;IAAA;EAAA,CAEP,CAAA;EAGD,MAAMC,MAAS,GAAAhB,aAAA,CAAAiB,OAAA,CAAKhB,IAAK,CAAAP,QAAA,EAAUY,MAAM,CAAA;EACzC,IAAI,EAAE,MAAMY,mBAAW,CAAAF,MAAM,CAAI,GAAA;IAC/B,MAAMG,QAAAA,CAAAA,MAAMH,MAAM,CAAA;EACpB;EAEA,MAAMI,MAAM,MAAMC,mBAAA,CAAW;IAAC3B,QAAU;IAAA4B,QAAA,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