{"_id":"@planetary/sanity-plugin-preflight","_rev":"5-e3ceccedd66fc186e8aee1bcb0c04d77","name":"@planetary/sanity-plugin-preflight","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@planetary/sanity-plugin-preflight","version":"1.0.0","keywords":["sanity","sanity-plugin"],"author":{"name":"Planetary Corporation","email":"team@planetary.co"},"license":"MIT","_id":"@planetary/sanity-plugin-preflight@1.0.0","maintainers":[{"name":"ketch","email":"alex@ketch.me"},{"name":"planetary-team","email":"team@planetary.co"},{"name":"endtwist","email":"josh@planetary.co"}],"dist":{"shasum":"3ec99ac7030aa89db900ab3b6a78e84966cadf57","tarball":"https://registry.npmjs.org/@planetary/sanity-plugin-preflight/-/sanity-plugin-preflight-1.0.0.tgz","fileCount":23,"integrity":"sha512-klSBU9e/StKCLtgZ4VJ0ULkqYeyF9PIetuGedBtKVjhOC27yOn/xy4rauruZ7aMjOomN8989pPKrjA82EoaJcA==","signatures":[{"sig":"MEUCIQD5BLc5rz4oisnxfjW8yGBaeDY8WICed4OgBs2M/RAadgIgStuIKz1DVsRK2LqVwTsg7FWsBLFhXk5yzhhO8yr7fEI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100485},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"import":"./dist/index.mjs","source":"./src/index.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"29869a36c5d5b023dd4670cf7fe716aad7d8f2fa","scripts":{"lint":"eslint .","build":"plugin-kit verify-package --silent && pkg-utils build --strict --check --clean","watch":"pkg-utils watch --strict","format":"prettier --write --cache --ignore-unknown .","prepare":"husky install","link-watch":"plugin-kit link-watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"ketch","email":"alex@ketch.me"},"overrides":{"conventional-changelog-conventionalcommits":">= 8.0.0"},"_npmVersion":"10.8.1","description":"Checks and validations to run before publishing content","directories":{},"sideEffects":false,"_nodeVersion":"20.15.0","browserslist":"extends @sanity/browserslist-config","dependencies":{"@sanity/ui":"^2.3.3","@sanity/icons":"^3.2.0","@sanity/incompatible-plugin":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.0.11","react":"^18.3.1","eslint":"^8.57.0","sanity":"^3.45.0","prettier":"^3.3.2","react-dom":"^18.3.1","typescript":"^5.4.5","lint-staged":"^15.2.7","@types/react":"^18.3.3","@commitlint/cli":"^19.3.0","@sanity/pkg-utils":"^6.9.3","styled-components":"^6.1.11","@sanity/plugin-kit":"^4.0.17","eslint-plugin-react":"^7.34.2","eslint-config-sanity":"^7.1.2","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.13.0","eslint-plugin-react-hooks":"^4.6.2","prettier-plugin-packagejson":"^2.5.0","@commitlint/config-conventional":"^19.2.2","@sanity/semantic-release-preset":"^5.0.0","@typescript-eslint/eslint-plugin":"^7.13.0"},"peerDependencies":{"react":"^18","sanity":"^3"},"_npmOperationalInternal":{"tmp":"tmp/sanity-plugin-preflight_1.0.0_1720217543418_0.65191241301336","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@planetary/sanity-plugin-preflight","version":"1.1.0","keywords":["sanity","sanity-plugin"],"author":{"name":"Planetary Corporation","email":"team@planetary.co"},"license":"MIT","_id":"@planetary/sanity-plugin-preflight@1.1.0","maintainers":[{"name":"ketch","email":"alex@ketch.me"},{"name":"planetary-team","email":"team@planetary.co"},{"name":"endtwist","email":"josh@planetary.co"}],"dist":{"shasum":"5ea90ab5898d2c2e78c5039059540f1c5897c952","tarball":"https://registry.npmjs.org/@planetary/sanity-plugin-preflight/-/sanity-plugin-preflight-1.1.0.tgz","fileCount":32,"integrity":"sha512-g7unbb4QVil6GR3/+0ZJk4PEDagim6GwntcQCtuHKN89qpFhKLAAnzh9CXpLGPR0pJ0YddUnzf63jtCgWQw6IQ==","signatures":[{"sig":"MEQCIHw+zODEt1BIZW8ldrd2EmSTPCd/y764NBm7oQY5LpkMAiAanaCh9lcxJn0zRN/Ekq7GhzyPPdmtgnQ1K8awuP9vwQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":282130},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"import":"./dist/index.mjs","source":"./src/index.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"00e327cdb5a5c44310b43b4f74432668af4b6611","scripts":{"lint":"eslint .","build":"plugin-kit verify-package --silent && pkg-utils build --strict --check --clean","watch":"pkg-utils watch --strict","format":"prettier --write --cache --ignore-unknown .","prepare":"husky install","link-watch":"plugin-kit link-watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"ketch","email":"alex@ketch.me"},"overrides":{"conventional-changelog-conventionalcommits":">= 8.0.0"},"_npmVersion":"10.8.1","description":"Checks and validations to run before publishing content","directories":{},"sideEffects":false,"_nodeVersion":"20.15.1","browserslist":"extends @sanity/browserslist-config","dependencies":{"@sanity/ui":"^2.3.3","@sanity/icons":"^3.2.0","dataforseo-client":"^1.0.19","@sanity/incompatible-plugin":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.0.11","react":"^18.3.1","eslint":"^8.57.0","sanity":"^3.45.0","prettier":"^3.3.2","react-dom":"^18.3.1","typescript":"^5.4.5","lint-staged":"^15.2.7","@types/react":"^18.3.3","@commitlint/cli":"^19.3.0","@sanity/pkg-utils":"^6.9.3","styled-components":"^6.1.11","@sanity/plugin-kit":"^4.0.17","eslint-plugin-react":"^7.34.2","eslint-config-sanity":"^7.1.2","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.13.0","eslint-plugin-react-hooks":"^4.6.2","prettier-plugin-packagejson":"^2.5.0","@commitlint/config-conventional":"^19.2.2","@sanity/semantic-release-preset":"^5.0.0","@typescript-eslint/eslint-plugin":"^7.13.0"},"peerDependencies":{"react":"^18","sanity":"^3","@sanity/studio-secrets":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sanity-plugin-preflight_1.1.0_1722453369766_0.6326402579444153","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@planetary/sanity-plugin-preflight","version":"1.1.1","keywords":["sanity","sanity-plugin"],"author":{"name":"Planetary Corporation","email":"team@planetary.co"},"license":"MIT","_id":"@planetary/sanity-plugin-preflight@1.1.1","maintainers":[{"name":"ketch","email":"alex@ketch.me"},{"name":"planetary-team","email":"team@planetary.co"},{"name":"endtwist","email":"josh@planetary.co"}],"dist":{"shasum":"cbbb219246354ae1a1a22bfd649ddb0ff7e0b3e0","tarball":"https://registry.npmjs.org/@planetary/sanity-plugin-preflight/-/sanity-plugin-preflight-1.1.1.tgz","fileCount":33,"integrity":"sha512-968bw6n6S7WPNSZVJixIZ3m5vY+bOzRCrabz8Iv/20Q6dQmMaVAF2D5gOARyLUnqLSKjuY0vT/Bcci0/bQI/wg==","signatures":[{"sig":"MEQCICFQTLE+5CQcCp7eI9OqM3JZGFwYPsukQJG1yLrfX/qOAiBX/SdIIKyYjR7DjtsrVGjXRJWFaMTVlM2AoTNTrS3TCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":300891},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"import":"./dist/index.mjs","source":"./src/index.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"3a34e5dac568f96d21e217c8320c68b617909dc0","scripts":{"lint":"eslint .","build":"plugin-kit verify-package --silent && pkg-utils build --strict --check --clean","watch":"pkg-utils watch --strict","format":"prettier --write --cache --ignore-unknown .","prepare":"husky install","link-watch":"plugin-kit link-watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"ketch","email":"alex@ketch.me"},"overrides":{"conventional-changelog-conventionalcommits":">= 8.0.0"},"_npmVersion":"10.8.1","description":"Checks and validations to run before publishing content","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","browserslist":"extends @sanity/browserslist-config","dependencies":{"@sanity/ui":"^2.3.3","@sanity/icons":"^3.2.0","dataforseo-client":"^1.0.19","@sanity/incompatible-plugin":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.0.11","react":"^18.3.1","eslint":"^8.57.0","sanity":"^3.45.0","prettier":"^3.3.2","react-dom":"^18.3.1","typescript":"^5.4.5","lint-staged":"^15.2.7","@types/react":"^18.3.3","@commitlint/cli":"^19.3.0","@sanity/pkg-utils":"^6.9.3","styled-components":"^6.1.11","@sanity/plugin-kit":"^4.0.17","eslint-plugin-react":"^7.34.2","eslint-config-sanity":"^7.1.2","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.13.0","eslint-plugin-react-hooks":"^4.6.2","prettier-plugin-packagejson":"^2.5.0","@commitlint/config-conventional":"^19.2.2","@sanity/semantic-release-preset":"^5.0.0","@typescript-eslint/eslint-plugin":"^7.13.0"},"peerDependencies":{"react":"^18","sanity":"^3","@sanity/studio-secrets":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sanity-plugin-preflight_1.1.1_1725477942557_0.9228415862813342","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-07-05T22:12:23.326Z","modified":"2026-11-02T18:49:06.784Z","1.0.0":"2024-07-05T22:12:23.601Z","1.1.0":"2024-07-31T19:16:09.933Z","1.1.1":"2024-09-04T19:25:42.808Z"},"author":{"name":"Planetary Corporation","email":"team@planetary.co"},"license":"MIT","keywords":["sanity","sanity-plugin"],"description":"Checks and validations to run before publishing content","maintainers":[{"email":"josh@planetary.co","name":"endtwist"}],"readme":"# sanity-plugin-preflight\n\n> This is a **Sanity Studio v3** plugin.\n\nThe Preflight plugin is a modular Sanity document extension for running various checks\nprior to publishing content.\n\nCurrent available checks include:\n\n- [Dead Links](./src/DeadLinks/): Ensure that all links in a document are reachable.\n- [SEO Audit](./src/SEOAudit/): Automated report for SEO best practices.\n\n![Screenshot 2024-06-19 at 09 39 41@2x](https://github.com/planetary/sanity-plugin-link-check/assets/1646307/b8b2aa63-4ad6-480f-b24e-52ffb6ef57b1)\n\n## Installation\n\n```sh\nnpm install @planetary/sanity-plugin-preflight\n```\n\n## Usage\n\nModify your `deskStructure` file to include the following.\nIf you don't have a custom Structure Builder configuration, please see [the official guide](https://www.sanity.io/guides/getting-started-with-structure-builder):\n\n```ts\n// deskStructure.ts\nimport {Preflight, DeadLinks} from '@planetary/sanity-plugin-preflight'\nimport {RocketIcon} from '@sanity/icons'\n\nexport const getDefaultDocumentNode = ({schemaType}) => {\n  // Only show the Preflight plugin on selected document types\n  if (['article', 'page'].includes(schemaType)) {\n    return S.document().views([\n      // Include the default content editor\n      S.view.form(),\n\n      // Add Preflight plugin\n      S.view\n        .component(\n          Preflight({\n            plugins: [DeadLinks()],\n          }),\n        )\n        .title('Preflight')\n        .icon(RocketIcon),\n    ])\n  }\n\n  // Otherwise render the default content editor\n  return S.document().views([S.view.form()])\n}\n```\n\n## Develop & test\n\nThis plugin uses [@sanity/plugin-kit](https://github.com/sanity-io/plugin-kit)\nwith default configuration for build & watch scripts.\n\nSee [Testing a plugin in Sanity Studio](https://github.com/sanity-io/plugin-kit#testing-a-plugin-in-sanity-studio)\non how to run this plugin with hotreload in the studio.\n\n### Release new version\n\nRun [\"CI & Release\" workflow](https://github.com/planetary/sanity-plugin-preflight/actions/workflows/main.yml).\nMake sure to select the main branch and check \"Release new version\".\n\nSemantic release will only release on configured branches, so it is safe to run release on any branch.\n\n## License\n\n[MIT](LICENSE) © [Planetary Corporation](https://planetary.co)\n","readmeFilename":"README.md"}