This commit is contained in:
Nicolas 2024-07-01 20:33:06 -03:00
parent 5396806379
commit f5cfd1aea2
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ function build_and_publish {
PACKAGE_NAME=$1 PACKAGE_NAME=$1
# Replace placeholder with the package name in package.json # Replace placeholder with the package name in package.json
sed -i '' "s/\"name\": \"PLACEHOLDER_NAME\"/\"name\": \"$PACKAGE_NAME\"/" package.json jq --arg name "$PACKAGE_NAME" '.name = $name' package.json > temp.json && mv temp.json package.json
# Debug: show modified state # Debug: show modified state
echo "Modified package.json for $PACKAGE_NAME:" echo "Modified package.json for $PACKAGE_NAME:"
@ -20,7 +20,7 @@ function build_and_publish {
fi fi
# Revert the changes to the original placeholder in package.json # Revert the changes to the original placeholder in package.json
sed -i '' "s/\"name\": \"$PACKAGE_NAME\"/\"name\": \"PLACEHOLDER_NAME\"/" package.json jq '.name = "PLACEHOLDER_NAME"' package.json > temp.json && mv temp.json package.json
# Debug: show reverted state # Debug: show reverted state
echo "Reverted package.json to placeholder:" echo "Reverted package.json to placeholder:"

View File

@ -1,6 +1,6 @@
{ {
"name": "PLACEHOLDER_NAME", "name": "PLACEHOLDER_NAME",
"version": "0.0.29", "version": "0.0.30",
"description": "JavaScript SDK for Firecrawl API", "description": "JavaScript SDK for Firecrawl API",
"main": "build/index.js", "main": "build/index.js",
"types": "types/index.d.ts", "types": "types/index.d.ts",