Skip to content

Commit

Permalink
Replace deprecated repository url setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Sep 24, 2023
1 parent 9612cdf commit e8ab386
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"files": [
"dist"
],
"repository": "github:center-key/hamburger-menu",
"repository": {
"type": "git",
"url": "git+https://github.com/center-key/hamburger-menu.git"
},
"homepage": "https://github.com/center-key/hamburger-menu",
"bugs": "https://github.com/center-key/hamburger-menu/issues",
"docs": "https://github.com/center-key/hamburger-menu#readme",
Expand Down Expand Up @@ -62,11 +65,10 @@
"test": "mocha spec/*.spec.js",
"interactive": "browser-sync . --startPath docs --files docs"
},
"dependencies": {
},
"dependencies": {},
"devDependencies": {
"@fortawesome/fontawesome-free": "~6.4",
"add-dist-header": "~1.2",
"add-dist-header": "~1.3",
"assert-deep-strict-equal": "~1.1",
"browser-sync": "~2.29",
"copy-file-util": "~1.1",
Expand All @@ -79,7 +81,7 @@
"rimraf": "~5.0",
"run-scripts-util": "~1.2",
"uglify-js": "~3.17",
"w3c-html-validator": "~1.4",
"w3c-html-validator": "~1.5",
"web-ignition": "~2.0"
}
}
7 changes: 4 additions & 3 deletions task-runner.sh.command
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ setupTools() {

releaseInstructions() {
cd $projectHome
repository=$(grep repository package.json | awk -F'"' '{print $4}' | sed s/github://)
package=https://raw.githubusercontent.com/$repository/main/package.json
org=$(grep git+https package.json | awk -F'/' '{print $4}')
name=$(grep '"name":' package.json | awk -F'"' '{print $4}')
package=https://raw.githubusercontent.com/$org/$name/main/package.json
version=v$(grep '"version"' package.json | awk -F'"' '{print $4}')
pushed=v$(curl --silent $package | grep '"version":' | awk -F'"' '{print $4}')
minorVersion=$(echo ${pushed:1} | awk -F"." '{ print $1 "." $2 }')
released=$(git tag | tail -1)
published=v$(npm view $repository version)
published=v$(npm view $name version)
test $? -ne 0 && echo "NOTE: Ignore error if package is not yet published."
echo "Local changes:"
git status --short
Expand Down

0 comments on commit e8ab386

Please sign in to comment.