Mercurial > kallithea
changeset 8504:e7fd22ecf6f9 stable
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'
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 04 Nov 2020 21:11:48 +0100 |
parents | a8a51a3bdb61 |
children | e05fe780bc01 |
files | kallithea/bin/kallithea_cli_front_end.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/bin/kallithea_cli_front_end.py Thu Nov 19 21:33:11 2020 +0100 +++ b/kallithea/bin/kallithea_cli_front_end.py Wed Nov 04 21:11:48 2020 +0100 @@ -57,7 +57,7 @@ '-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 @@ 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],