(p)
| 25 | const STYLE_PROPERTIES_TS = path.resolve(REPO_ROOT, 'packages/dev/s2-docs/src/styleProperties.ts'); |
| 26 | |
| 27 | function ensureDir(p) { |
| 28 | fs.mkdirSync(p, {recursive: true}); |
| 29 | } |
| 30 | |
| 31 | function writeJson(file, data) { |
| 32 | ensureDir(path.dirname(file)); |