Skip to content

Commit

Permalink
Fix config package
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Feb 13, 2022
1 parent 1215925 commit 456e445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config/load/npx.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ const getNpxConfigs = function () {
}

const isSharedConfig = function (npxPackage) {
return npxPackage.startsWith(CONFIG_NPM_PREFIX)
return npxPackage.startsWith(`${CONFIG_NPM_PREFIX}-`)
}
4 changes: 2 additions & 2 deletions src/config/load/resolvers.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export const useResolvers = async function (configOpt, base) {
// We do not use a shorter id like "npm:{name}" so users do not need two
// different ids: one for `npm install` and one for the `config` property.
const isNpmResolver = function (configOpt) {
return configOpt.startsWith(CONFIG_NPM_PREFIX)
return configOpt.startsWith(`${CONFIG_NPM_PREFIX}-`)
}

export const CONFIG_NPM_PREFIX = 'spyd-config-'
export const CONFIG_NPM_PREFIX = 'spyd-config'

// TODO: use import.meta.resolve() when available
const resolveNpm = function (configOpt, base) {
Expand Down

0 comments on commit 456e445

Please sign in to comment.