(projectName: string)
| 202 | } |
| 203 | |
| 204 | function toPackageName(projectName: string): string { |
| 205 | const normalized = basename(projectName) |
| 206 | .trim() |
| 207 | .toLowerCase() |
| 208 | .replace(/^[._]+/, "") |
| 209 | .replace(/[^a-z0-9._~-]+/g, "-") |
| 210 | .replace(/-+/g, "-") |
| 211 | .replace(/^[-.]+|[-.]+$/g, ""); |
| 212 | |
| 213 | return normalized || "hyperframes-project"; |
| 214 | } |
| 215 | |
| 216 | function getHyperframesPackageSpecifier(): string { |
| 217 | return VERSION === "0.0.0-dev" ? "hyperframes" : `hyperframes@${VERSION}`; |
no test coverage detected