Skip to content

Commit

Permalink
chore: remove dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Feb 20, 2022
1 parent bab969d commit 0452bd9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 33 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const fs = require('fs')
const path = require('path')
const fromEntries = require('fromentries')

// Update package.json
function updatePkg(dir, fn) {
Expand All @@ -26,7 +25,7 @@ function updatePkg(dir, fn) {

// Update pkg.scripts names
function updateScripts(pkg, fn) {
pkg.scripts = fromEntries(
pkg.scripts = Object.fromEntries(
Object.entries(pkg.scripts).map(([key, value]) => [fn(key), value])
)
}
Expand Down
27 changes: 0 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
"url": "https://github.com/typicode/pinst/issues"
},
"homepage": "https://github.com/typicode/pinst#readme",
"dependencies": {
"fromentries": "^1.3.2"
},
"devDependencies": {
"eslint": "^7.18.0",
"eslint-config-prettier": "^8.0.0",
Expand All @@ -52,7 +49,7 @@
"tempy": "^1.0.0"
},
"engines": {
"node": ">=10.0.0"
"node": ">=12.0.0"
},
"jest": {
"testURL": "http://localhost/"
Expand Down

0 comments on commit 0452bd9

Please sign in to comment.