Skip to content

Commit

Permalink
🔖 Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
DevComp committed Jun 21, 2022
1 parent 2436623 commit 5ce0beb
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 26 deletions.
2 changes: 1 addition & 1 deletion install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ For ($i=0; $i -le 100; $i++) {
}

echo "Adding to PATH..."
cd dist/js
cd bin
Rename-Item -Path "cli-win.exe" -NewName "flight.exe" >$null 2>&1
Remove-Item -Path cli-linux -Force >$null 2>&1
Remove-Item -Path cli-macos -Force >$null 2>&1
Expand Down
16 changes: 8 additions & 8 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ gpg_key=6567A9918662A1C4
flight_get_tarball() {
printf "$cyan> Downloading tarball...$reset\n"
if [ "$1" = '--nightly' ]; then
urlhttps://github.com/flightpkg/flight/releases/download/v0.0.5/v0.0.5.tar.gz
urlhttps://github.com/flightpkg/flight/releases/download/v0.34.0/v0.34.0.tar.gz
elif [ "$1" = '--rc' ]; then
url=https://github.com/flightpkg/flight/releases/download/v0.0.5/v0.0.5.tar.gz
url=https://github.com/flightpkg/flight/releases/download/v0.34.0/v0.34.0.tar.gz
elif [ "$1" = '--version' ]; then
# Validate that the version matches MAJOR.MINOR.PATCH to avoid garbage-in/garbage-out behavior
version=$2
Expand All @@ -25,7 +25,7 @@ flight_get_tarball() {
exit 1;
fi
else
url=https://github.com/flightpkg/flight/releases/download/v0.0.5/v0.0.5.tar.gz
url=https://github.com/flightpkg/flight/releases/download/v0.34.0/v0.34.0.tar.gz
fi
# Get both the tarball and its GPG signature
tarball_tmp=`mktemp -t flight.tar.gz.XXXXXXXXXX`
Expand Down Expand Up @@ -143,23 +143,23 @@ flight_install() {
local specified_version
local version_type
if [ "$1" = '--nightly' ]; then
latest_url=https://github.com/flightpkg/flight/releases/download/v0.0.5/v0.0.5.tar.gz
latest_url=https://github.com/flightpkg/flight/releases/download/v0.34.0/v0.34.0.tar.gz
specified_version=`curl -sS $latest_url`
version_type='latest'
elif [ "$1" = '--version' ]; then
specified_version=$2
version_type='specified'
elif [ "$1" = '--rc' ]; then
latest_url=https://github.com/flightpkg/flight/releases/download/v0.0.5/v0.0.5.tar.gz
latest_url=https://github.com/flightpkg/flight/releases/download/v0.34.0/v0.34.0.tar.gz
specified_version=`curl -sS $latest_url`
version_type='rc'
else
latest_url=https://github.com/flightpkg/flight/releases/download/v0.0.5/v0.0.5.tar.gz
latest_url=https://github.com/flightpkg/flight/releases/download/v0.34.0/v0.34.0.tar.gz
specified_version=`curl -sS $latest_url`
version_type='latest'
fi
flight_version=`v0.0.5`
flight_alt_version=`v0.0.5`
flight_version=`v0.34.0`
flight_alt_version=`v0.34.0`

if [ "$specified_version" = "$flight_version" = "$specified_version" = "$flight_alt_version" ]; then
printf "$green> flight is already at the $specified_version version.$reset\n"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flightpkg/cli",
"version": "0.5.0",
"version": "0.34.0",
"description": "Flight is a universal package manager for your needs, no matter what language you may want to write your code in. ",
"main": "cli.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ module.exports = {

Sha256_Checksum: `01ccffbd0d6c8a2a1935b9cc9256567b8c66abeef6171c3f813920b831ec1e47`,

version: `v0.0.5`,
version: `v0.34.0`,

license: `Apache-2.0`,

download_url: `https://github.com/flightpkg/flight/releases/download/v0.0.5/v0.0.5.tar.gz`
download_url: `https://github.com/flightpkg/flight/releases/download/v0.34.0/v0.34.0.tar.gz`
}
13 changes: 6 additions & 7 deletions src/packages/create-next-app/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "create-next-app",
"version": "12.1.7-canary.41",
"name": "@flightpkg/create-next-app",
"version": "1.0.0",
"keywords": [
"react",
"next",
"next.js"
],
"description": "Create Next.js-powered React apps with one command",
"description": "Forked create-next-app for flight CLI.",
"repository": {
"type": "git",
"url": "https://github.com/vercel/next.js",
"directory": "packages/create-next-app"
"url": "https://github.com/flightpkg/flight",
"directory": "src/packages/create-next-app"
},
"author": "Next.js Team <support@vercel.com>",
"author": "Next.js Team <support@vercel.com>, CompeyDev <hi@devcomp.xyz>",
"license": "MIT",
"bin": {
"create-next-app": "./dist/index.js"
Expand All @@ -24,7 +24,6 @@
"dev": "ncc build ./index.ts -w -o dist/",
"prerelease": "rimraf ./dist/",
"release": "ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register",
"prepublishOnly": "cd ../../ && turbo run build",
"build": "pnpm release"
},
"devDependencies": {
Expand Down
12 changes: 5 additions & 7 deletions src/packages/create-redwood-app/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "create-redwood-app",
"version": "2.0.0",
"name": "@flightpkg/create-redwood-app",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "https://github.com/redwoodjs/redwood.git",
"directory": "packages/create-redwood-app"
"url": "https://github.com/redwoodjs/flight.git",
"directory": "src/packages/create-redwood-app"
},
"license": "MIT",
"bin": "./dist/create-redwood-app.js",
Expand All @@ -16,7 +16,6 @@
"build": "yarn build:js",
"build:js": "babel src -d dist",
"build:watch": "nodemon --watch src --ignore dist,template --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
"test": "jest src",
"test:watch": "yarn test --watch"
},
Expand All @@ -38,6 +37,5 @@
"@babel/cli": "7.16.7",
"jest": "27.5.1",
"typescript": "4.7.3"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
}

0 comments on commit 5ce0beb

Please sign in to comment.