| 1 |
#!/usr/bin/env node |
| 2 |
|
| 3 |
const package = require('../package.json'); |
| 4 |
|
| 5 |
// Sorry everyone, this is the closest we can get to commenting on package.json |
| 6 |
// dependencies :( |
| 7 |
if (package.devDependencies['bourbon-neat'] !== '~1.9') { |
| 8 |
// Wyrm is not compatible with Neat 2.0+, and Neat 1.9 at least pins a |
| 9 |
// node-sass version that doesn't require Python 2. The changes to Wyrm to |
| 10 |
// support Neat 2.0+ are all fairly minor changes, but it deeply affects the |
| 11 |
// grid system and might be more of a liability than an old release of Neat. |
| 12 |
// See: https://github.com/readthedocs/sphinx_rtd_theme/pull/771 |
| 13 |
console.error( |
| 14 |
'bourbon-neat 1.9 is required, Wyrm is not compatible with Neat 2.0+.' |
| 15 |
); |
| 16 |
console.error( |
| 17 |
'The expected selector for the bourbon-neat dependency in package.json is "~1.9".' |
| 18 |
); |
| 19 |
process.exit(1); |
| 20 |
} |