summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:56:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:56:50 +0000
commit6637322c8ab1c5ff80a2b6ca59c9ba1d40aeba2c (patch)
tree04e41667e9eae835f5d88bda4f6d3f5c2664de01 /bin
parentInitial commit. (diff)
downloadsphinx-rtd-theme-6637322c8ab1c5ff80a2b6ca59c9ba1d40aeba2c.tar.xz
sphinx-rtd-theme-6637322c8ab1c5ff80a2b6ca59c9ba1d40aeba2c.zip
Adding upstream version 2.0.0+dfsg.upstream/2.0.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/preinstall.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/preinstall.js b/bin/preinstall.js
new file mode 100755
index 0000000..536fe5a
--- /dev/null
+++ b/bin/preinstall.js
@@ -0,0 +1,20 @@
+#!/usr/bin/env node
+
+const package = require('../package.json');
+
+// Sorry everyone, this is the closest we can get to commenting on package.json
+// dependencies :(
+if (package.devDependencies['bourbon-neat'] !== '~1.9') {
+ // Wyrm is not compatible with Neat 2.0+, and Neat 1.9 at least pins a
+ // node-sass version that doesn't require Python 2. The changes to Wyrm to
+ // support Neat 2.0+ are all fairly minor changes, but it deeply affects the
+ // grid system and might be more of a liability than an old release of Neat.
+ // See: https://github.com/readthedocs/sphinx_rtd_theme/pull/771
+ console.error(
+ 'bourbon-neat 1.9 is required, Wyrm is not compatible with Neat 2.0+.'
+ );
+ console.error(
+ 'The expected selector for the bourbon-neat dependency in package.json is "~1.9".'
+ );
+ process.exit(1);
+}