We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a635e commit 8ec9dcdCopy full SHA for 8ec9dcd
scripts/lib/bashy-node/node-project/fix-package-json
@@ -91,9 +91,9 @@ function do-fix {
91
local fileDir="${filePath%/*}"
92
93
local packageName="${fileDir}"
94
- if [[ ${packageName} =~ /@(.*)$ ]]; then
+ if [[ ${packageName} =~ /(@[^@/]+/[^@/]+)$ ]]; then
95
# The directory structure has the form `@<project>/<name>`.
96
- packageName="${BASH_REMATCH[2]}"
+ packageName="${BASH_REMATCH[1]}"
97
else
98
# No `@<project>`, so just use the final directory name, and assume it's
99
# in `@this`.
0 commit comments