Skip to content

Commit 6dfff0f

Browse files
authored
Merge pull request #2 from react-storefront-community/kh-deploy-team
Remove the "react-storefront" team from the deploy npm script
2 parents 3290250 + 39c6b6f commit 6dfff0f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const getPackageJsonVersion = () => {
99
}
1010

1111
// yargs has a bug where it cannot properly validate arguments
12-
// that have a hypen in them. So --invalid be flagged by Yargs
12+
// that have a hyphen in them. So --invalid be flagged by Yargs
1313
// as invalid, but --invalid-arg is allowed with no errors.
1414
// This patch validates all of the -- args against the list
1515
// of valid args.

lib/template-processing.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ const processPackageJson = (name, targetPath, { xdn, ...config } = {}) => {
7676
)
7777
delete packageJson.scripts['rsf:link']
7878
}
79+
// remove react-storefront team from the deploy script, so it defaults to the user's own team:
80+
packageJson.scripts.deploy = packageJson.scripts.deploy.replace('xdn deploy react-storefront', 'xdn deploy')
7981

8082
_writeConfigJson(packageJsonPath, packageJson)
8183
}

0 commit comments

Comments
 (0)