-
Couldn't load subscription status.
- Fork 6
Open
Labels
pull request welcomeReady to work onReady to work on
Description
we validate the repository name today:
create-octoherd-script/lib/prompts.js
Lines 31 to 48 in 1831fd1
| { | |
| type: "input", | |
| name: "repository", | |
| message: | |
| "Full name of the repository. Name must start with 'octoherd-script-' (Example: octocat/octoherd-script-hello-world)", | |
| default: (answers) => { | |
| if (answers.packageName.startsWith("@octoherd")) { | |
| return answers.packageName.substr(1); | |
| } | |
| return answers.packageName.startsWith("@") | |
| ? answers.packageName.substr(1) | |
| : [login, answers.packageName].join("/"); | |
| }, | |
| validate: (input) => | |
| /^[^/]+\/octoherd-script-/.test(input) || | |
| /^octoherd\/script-/.test(input), | |
| }, |
but not the npm package
create-octoherd-script/lib/prompts.js
Lines 12 to 17 in 1831fd1
| { | |
| type: "input", | |
| name: "packageName", | |
| message: | |
| "What npm package name should the project have? (Example: octoherd-script-hello-world)", | |
| }, |
I think that package names should be one of three
octoherd-script-<my name>@my-scope/octoherd-script-<my name>@octoherd/script-<my name>
Metadata
Metadata
Assignees
Labels
pull request welcomeReady to work onReady to work on