Mercurial > libervia-web
comparison libervia/web/server/tasks/implicit/task_sass.py @ 1569:54ba0f74a488
server (tasks/saas): lock version due to issue with latest one.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 22 Nov 2023 15:25:52 +0100 |
parents | eb00d593801d |
children | 29eb1ea35869 |
comparison
equal
deleted
inserted
replaced
1568:67ff59465fe4 | 1569:54ba0f74a488 |
---|---|
37 package = {} | 37 package = {} |
38 except Exception as e: | 38 except Exception as e: |
39 log.error(f"Unexepected exception while parsing package.json: {e}") | 39 log.error(f"Unexepected exception while parsing package.json: {e}") |
40 | 40 |
41 if 'node-sass' not in package.setdefault('dependencies', {}): | 41 if 'node-sass' not in package.setdefault('dependencies', {}): |
42 package['dependencies']['node-sass'] = 'latest' | 42 package['dependencies']['node-sass'] = '9.0.0' |
43 with package_path.open('w') as f: | 43 with package_path.open('w') as f: |
44 json.dump(package, f, indent=4) | 44 json.dump(package, f, indent=4) |
45 | 45 |
46 cmd = self.find_command('yarnpkg', 'yarn') | 46 cmd = self.find_command('yarnpkg', 'yarn') |
47 await self.runCommand(cmd, 'install', path=str(d_path)) | 47 await self.runCommand(cmd, 'install', path=str(d_path)) |