Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "clay-slip",
"version": "2.0.2",
"description": "A modern Chrome extension for exploring Clay CMS pages β€” visualize component boundaries, inspect data, and navigate the page/layout hierarchy.",
"description": "Modern devtools for Clay CMS pages: visualize component boundaries, inspect data, and navigate the page/layout hierarchy.",
"private": true,
"type": "module",
"license": "MIT",
Expand Down
10 changes: 10 additions & 0 deletions src/manifest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import { defineManifest } from '@crxjs/vite-plugin';
import pkg from '../package.json' with { type: 'json' };

// Chrome Web Store rejects uploads with `manifest.description` > 132 chars.
// Catch the regression at build time, where it's easy to fix, instead of at
// upload time, where it bricks a release.
const MAX_DESCRIPTION_CHARS = 132;
if (pkg.description.length > MAX_DESCRIPTION_CHARS) {
throw new Error(
`package.json "description" is ${pkg.description.length} chars; Chrome Web Store limit is ${MAX_DESCRIPTION_CHARS}.`
);
}

export default defineManifest({
manifest_version: 3,
name: 'Clay Slip',
Expand Down
Loading