# HG changeset patch # User Mads Kiilerich # Date 2020-11-04 21:11:48 # Node ID e7fd22ecf6f90376a5867cd5fe65e18907161842 # Parent a8a51a3bdb6181e498a862f84eb2d50928330a68 front-end: use 'bin' path for node commands instead of '.bin' license-checker is using relative paths for importing other modules - that worked fine when .bin/license-checker was a symlink, but not on filesystems without symlinks support: internal/modules/cjs/loader.js:883 throw err; ^ Error: Cannot find module '../lib/index' diff --git a/kallithea/bin/kallithea_cli_front_end.py b/kallithea/bin/kallithea_cli_front_end.py --- a/kallithea/bin/kallithea_cli_front_end.py +++ b/kallithea/bin/kallithea_cli_front_end.py @@ -57,7 +57,7 @@ def front_end_build(install_deps, genera '-f', 'html', '-a', '.code-highlight'], stdout=f) - lesscpath = os.path.join(front_end_dir, 'node_modules', '.bin', 'lessc') + lesscpath = os.path.join(front_end_dir, 'node_modules', 'less', 'bin', 'lessc') lesspath = os.path.join(front_end_dir, 'main.less') csspath = os.path.join(public_dir, 'css', 'style.css') subprocess.check_call([lesscpath, '--source-map', @@ -91,7 +91,7 @@ def front_end_build(install_deps, genera shutil.copytree(os.path.join(front_end_dir, 'node_modules', 'codemirror'), os.path.join(public_dir, 'codemirror')) click.echo("Generating LICENSES.txt") - license_checker_path = os.path.join(front_end_dir, 'node_modules', '.bin', 'license-checker') + license_checker_path = os.path.join(front_end_dir, 'node_modules', 'license-checker', 'bin', 'license-checker') check_licensing_json_path = os.path.join(tmp_dir, 'licensing.json') licensing_txt_path = os.path.join(public_dir, 'LICENSES.txt') subprocess.check_call([license_checker_path, '--json', '--out', check_licensing_json_path],