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 e4c5a72 commit 32b56f9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const dataImage = 'data:image/svg+xml;base64,' +
<br>

---
**CLI Build Tools**
**CLI Build Tools for package.json**
- 🎋 [add-dist-header](https://github.com/center-key/add-dist-header):&nbsp; _Prepend a one-line banner comment (with license notice) to distribution files_
- 📄 [copy-file-util](https://github.com/center-key/copy-file-util):&nbsp; _Copy or rename a file with optional package version number_
- 📂 [copy-folder-util](https://github.com/center-key/copy-folder-util):&nbsp; _Recursively copy files from one folder to another folder_
Expand Down
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
"bin": {
"img-src-placeholder": "bin/cli.js"
},
"repository": "github:center-key/img-src-placeholder",
"repository": {
"type": "git",
"url": "git+https://github.com/center-key/img-src-placeholder.git"
},
"homepage": "https://github.com/center-key/img-src-placeholder",
"bugs": "https://github.com/center-key/img-src-placeholder/issues",
"docs": "https://github.com/center-key/img-src-placeholder#readme",
Expand Down Expand Up @@ -90,18 +93,18 @@
},
"devDependencies": {
"@types/fancy-log": "~2.0",
"@types/node": "~20.5",
"@typescript-eslint/eslint-plugin": "~6.6",
"@typescript-eslint/parser": "~6.6",
"@types/node": "~20.6",
"@typescript-eslint/eslint-plugin": "~6.7",
"@typescript-eslint/parser": "~6.7",
"add-dist-header": "~1.3",
"assert-deep-strict-equal": "~1.1",
"copy-file-util": "~1.1",
"eslint": "~8.48",
"eslint": "~8.50",
"jshint": "~2.13",
"mocha": "~10.2",
"rimraf": "~5.0",
"run-scripts-util": "~1.2",
"typescript": "~5.2",
"w3c-html-validator": "~1.4"
"w3c-html-validator": "~1.5"
}
}
7 changes: 4 additions & 3 deletions task-runner.sh.command
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,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 32b56f9

Please sign in to comment.