From 5ce0beb0ee9a4d501817c9844385fee78b5fcfbf Mon Sep 17 00:00:00 2001 From: DevComp Date: Tue, 21 Jun 2022 15:37:11 +0530 Subject: [PATCH] :bookmark: Prepare for release --- install.ps1 | 2 +- install.sh | 16 ++++++++-------- package.json | 2 +- src/constants.js | 4 ++-- src/packages/create-next-app/package.json | 13 ++++++------- src/packages/create-redwood-app/package.json | 12 +++++------- 6 files changed, 23 insertions(+), 26 deletions(-) diff --git a/install.ps1 b/install.ps1 index 7f19baaf..8360b15d 100644 --- a/install.ps1 +++ b/install.ps1 @@ -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 diff --git a/install.sh b/install.sh index 393bd52b..f19a63c4 100644 --- a/install.sh +++ b/install.sh @@ -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 @@ -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` @@ -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" diff --git a/package.json b/package.json index da4714de..b4c7393a 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/constants.js b/src/constants.js index 6edfe464..31b23484 100644 --- a/src/constants.js +++ b/src/constants.js @@ -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` } diff --git a/src/packages/create-next-app/package.json b/src/packages/create-next-app/package.json index c7314a62..201c988c 100644 --- a/src/packages/create-next-app/package.json +++ b/src/packages/create-next-app/package.json @@ -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 ", + "author": "Next.js Team , CompeyDev ", "license": "MIT", "bin": { "create-next-app": "./dist/index.js" @@ -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": { diff --git a/src/packages/create-redwood-app/package.json b/src/packages/create-redwood-app/package.json index e6d5bad5..88e40191 100644 --- a/src/packages/create-redwood-app/package.json +++ b/src/packages/create-redwood-app/package.json @@ -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", @@ -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" }, @@ -38,6 +37,5 @@ "@babel/cli": "7.16.7", "jest": "27.5.1", "typescript": "4.7.3" - }, - "gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1" + } }