Skip to content

Commit

Permalink
chore: fix sed inline replacement issue between macos and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Apr 24, 2021
1 parent 2f4d509 commit 44d42c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/prebuild-latest.sh
Expand Up @@ -7,7 +7,8 @@ rm -rf dist/*

pushd src
mkdir -p ../dist/cncjs/
sed -i 's/\("version":\s*\)".*"/\1"'$VERSION'"/' package.json
sed 's/\("version":\s*\)".*"/\1"'$VERSION'"/' package.json > package.json.new
mv -f package.json.new package.json
cp -af package.json ../dist/cncjs/
cross-env NODE_ENV=production babel "*.js" \
--config-file ../babel.config.js \
Expand Down

0 comments on commit 44d42c2

Please sign in to comment.