-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
22 lines (22 loc) · 931 Bytes
/
package.json
File metadata and controls
22 lines (22 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"name": "{{THEME_SLUG}}",
"version": "0.1.0",
"description": "{{THEME_DESCRIPTION}}",
"type": "module",
"scripts": {
"schema:validate": "node theme-utils.mjs validate-schema",
"theme:validate": "node theme-utils.mjs validate-theme",
"patterns:escape": "node theme-utils.mjs escape-patterns",
"security:scan": "node theme-utils.mjs security-scan",
"lint": "npm run lint:json",
"lint:json": "node --input-type=module --eval \"import { readFileSync } from 'fs'; import { glob } from 'glob'; const files = await glob(['theme.json', 'styles/**/*.json']); let ok = true; for (const f of files) { try { JSON.parse(readFileSync(f, 'utf8')); } catch (e) { console.error('Invalid JSON:', f, e.message); ok = false; } } if (ok) console.log('All JSON files are valid.'); else process.exit(1);\""
},
"devDependencies": {
"ajv": "^8.17.1",
"glob": "^11.0.1"
},
"engines": {
"node": ">=20.0.0"
},
"private": true
}