File chalk-is-a-non-dev-dep.patch of Package gitlab-ce
Index: gitlab-ce/scripts/frontend/postinstall.js
===================================================================
--- gitlab-ce.orig/scripts/frontend/postinstall.js
+++ gitlab-ce/scripts/frontend/postinstall.js
@@ -53,26 +53,6 @@ function checkDuoUiPeerDependency() {
}
}
-// check that fsevents is available if we're on macOS
-if (process.platform === 'darwin') {
- try {
- require.resolve('fsevents');
- } catch (e) {
- console.error(`${chalk.red('error')} Dependency postinstall check failed.`);
- console.error(
- chalk.red(
- `The fsevents driver is not installed properly.
- If you are running a new version of Node, please
- ensure that it is supported by the fsevents library.
-
- You can try installing again with \`${chalk.cyan('yarn install --force')}\`
- `,
- ),
- );
- process.exit(1);
- }
-}
-
// Check duo-ui peer dependency
if (!checkDuoUiPeerDependency()) {
process.exit(1);