Skip to content

Commit

Permalink
fix: run normalize tests against rpj-fast
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Jun 1, 2023
1 parent 3730d67 commit 67f1890
Show file tree
Hide file tree
Showing 3 changed files with 331 additions and 306 deletions.
4 changes: 3 additions & 1 deletion lib/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ const normalize = async (pkg, { strict, steps, root }) => {
// expand "bundleDependencies: true or translate from object"
if (steps.includes('bundleDependencies')) {
const bd = data.bundleDependencies
if (bd === true) {
if (bd === false) {
data.bundleDependencies = []
} else if (bd === true) {
data.bundleDependencies = Object.keys(data.dependencies || {})
} else if (bd && typeof bd === 'object') {
if (!Array.isArray(bd)) {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.15.1",
"read-package-json": "^6.0.3",
"read-package-json-fast": "^3.0.2",
"tap": "^16.0.1"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 67f1890

Please sign in to comment.