( config: BuildConfig, distTag: string, version: string, isDryRun: boolean )
| 70 | } |
| 71 | |
| 72 | export async function publishCreateQwikCli( |
| 73 | config: BuildConfig, |
| 74 | distTag: string, |
| 75 | version: string, |
| 76 | isDryRun: boolean |
| 77 | ) { |
| 78 | const srcCliDir = join(config.packagesDir, PACKAGE); |
| 79 | |
| 80 | await updateBaseVersions(config, version); |
| 81 | |
| 82 | console.log(`⛴ publishing ${PACKAGE} ${version}`, isDryRun ? '(dry-run)' : ''); |
| 83 | |
| 84 | const npmPublishArgs = ['publish', '--tag', distTag]; |
| 85 | |
| 86 | await run('npm', npmPublishArgs, isDryRun, isDryRun, { cwd: srcCliDir }); |
| 87 | |
| 88 | console.log( |
| 89 | `🐳 published version "${version}" of ${PACKAGE} with dist-tag "${distTag}" to npm`, |
| 90 | isDryRun ? '(dry-run)' : '' |
| 91 | ); |
| 92 | } |
| 93 | |
| 94 | async function syncBaseStarterVersionsFromQwik(config: BuildConfig) { |
| 95 | const qwikVersion = await getQwikVersion(config); |
no test coverage detected
searching dependent graphs…