Skip to content
Snippets Groups Projects

Remove tail from npm pack package script

Merged Mateusz Tyszczak requested to merge tm-remove-tail-npm-pack-package into develop
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
#!/usr/bin/env bash
set -e
set -xe
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
@@ -15,7 +15,9 @@ pushd "${SOURCE_DIR}" # move to the project directory (where package.json file i
"${SCRIPTPATH}/npm_generate_version.sh" "${SOURCE_DIR}" "${REGISTRY_URL}" "${SCOPE}" "${PROJECT_NAME}" "${COMMIT_REF_PROTECTED}" "${COMMIT_TAG}"
pnpm pack --pack-destination "${OUTPUT_DIR}" --json
pnpm pack --pack-destination "${OUTPUT_DIR}" --json > "${OUTPUT_DIR}/built_package_info.json"
cat "${OUTPUT_DIR}/built_package_info.json"
BUILT_PACKAGE_NAME=$(jq -r .filename "${OUTPUT_DIR}/built_package_info.json")
{
echo PACKAGE_SOURCE_DIR="${SOURCE_DIR}"
Loading