Skip to content

Commit

Permalink
JS: Simplify helper usage to only one script (dependabot#988)
Browse files Browse the repository at this point in the history
JS: Simplify helper usage with only one script
  • Loading branch information
LeoColomb authored and feelepxyz committed Mar 4, 2019
1 parent 76931f8 commit 6d36576
Show file tree
Hide file tree
Showing 47 changed files with 9,516 additions and 449 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ vendor
/terraform/helpers/install-dir
/go_modules/helpers/install-dir
/npm_and_yarn/helpers/node_modules
/npm_and_yarn/helpers/npm/node_modules
/npm_and_yarn/helpers/yarn/node_modules
2 changes: 0 additions & 2 deletions npm_and_yarn/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
/tmp
/dependabot-*.gem
/helpers/node_modules
/helpers/npm/node_modules
/helpers/yarn/node_modules
Gemfile.lock
2 changes: 1 addition & 1 deletion npm_and_yarn/helpers/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"node": true
},
"parserOptions": {
"ecmaVersion": 8
"ecmaVersion": 9
}
}
5 changes: 3 additions & 2 deletions npm_and_yarn/helpers/build
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ fi

helpers_dir="$(dirname "${BASH_SOURCE[0]}")"
cp -r \
"$helpers_dir/npm" \
"$helpers_dir/yarn" \
"$helpers_dir/lib" \
"$helpers_dir/test" \
"$helpers_dir/run.js" \
"$helpers_dir/package.json" \
"$helpers_dir/yarn.lock" \
"$install_dir"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const updater = require("../lib/updater");
const peerDependencyChecker = require("../lib/peer-dependency-checker");
const subdependencyUpdater = require("../lib/subdependency-updater");
const updater = require("./updater");
const peerDependencyChecker = require("./peer-dependency-checker");
const subdependencyUpdater = require("./subdependency-updater");

module.exports = {
update: updater.updateDependencyFiles,
Expand Down
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions npm_and_yarn/helpers/lib/yarn/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const lockfileParser = require("./lockfile-parser");
const updater = require("./updater");
const subdependencyUpdater = require("./subdependency-updater");
const peerDependencyChecker = require("./peer-dependency-checker");

module.exports = {
parseLockfile: lockfileParser.parse,
update: updater.updateDependencyFiles,
updateSubdependency: subdependencyUpdater.updateDependencyFile,
checkPeerDependencies: peerDependencyChecker.checkPeerDependencies
};
File renamed without changes.
12 changes: 0 additions & 12 deletions npm_and_yarn/helpers/npm/package.json

This file was deleted.

Loading

0 comments on commit 6d36576

Please sign in to comment.