#!/bin/bash # # SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) # # SPDX-License-Identifier: MIT # set -e echo "Clear dist directory.." rm -rf dist echo "Compile to CJS.." tsc --project tsconfig.cjs.json echo "Compile to ESM.." tsc --project tsconfig.esm.json echo "Fix CJS package.json.." cat > dist/cjs/package.json < dist/esm/package.json <