@jordond/kit 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -3
- package/bin/kit +6 -2
- package/dist/{_verb-rhswhzxn.js → _verb-cfgwexs5.js} +8 -8
- package/dist/{android-d6zs9dyp.js → android-f2jqh5f4.js} +4 -4
- package/dist/{build-fmx52dv7.js → build-15wfykv9.js} +3 -3
- package/dist/{builtins-1dzch5rr.js → builtins-tgrq0nnd.js} +1 -1
- package/dist/{bump-w1feqf2k.js → bump-xmjn8q5s.js} +4 -4
- package/dist/{certs-yp73br5h.js → certs-5kcftfaz.js} +4 -4
- package/dist/{check-7hgf728j.js → check-h2qjvrge.js} +3 -3
- package/dist/{check-2kvdmdcy.js → check-s3xje6km.js} +5 -5
- package/dist/cli-0j3ywy6y.js +64 -0
- package/dist/{cli-v1tt2mzx.js → cli-1m6cy8wp.js} +4 -4
- package/dist/{cli-wxv8j9e1.js → cli-650g3nf7.js} +38 -32
- package/dist/{cli-6z4axmde.js → cli-6q43d787.js} +4 -4
- package/dist/cli-8mb4ayv9.js +196 -0
- package/dist/{cli-mdy0ze8j.js → cli-dcq8ydz0.js} +4 -4
- package/dist/cli.js +1 -1
- package/dist/{cloudflare-2t4cqqb8.js → cloudflare-3p8gj4ae.js} +2 -2
- package/dist/{command-1ydsfy5t.js → command-gtyznw30.js} +2 -2
- package/dist/commands/init.d.ts +29 -1
- package/dist/commands/upgrade.d.ts +9 -0
- package/dist/{completion-gp0a1820.js → completion-6yett99s.js} +2 -2
- package/dist/completion-g8bjf46s.js +36 -0
- package/dist/config/load.d.ts +22 -0
- package/dist/{config-tbdx7xmd.js → config-2db8d4tg.js} +2 -2
- package/dist/{create-a0wwtv51.js → create-te58argb.js} +4 -4
- package/dist/creds-2qk71mdx.js +1 -1
- package/dist/{deploy-zw91q9dz.js → deploy-k21ee2wr.js} +6 -6
- package/dist/{deps-mt460msd.js → deps-tq3jpjd3.js} +3 -3
- package/dist/{dev-hh6m90wf.js → dev-915svrxw.js} +6 -6
- package/dist/{doctor-dbpnyxca.js → doctor-63ntz70n.js} +7 -5
- package/dist/{exec-y71nap3e.js → exec-gwnn34v2.js} +4 -4
- package/dist/{fastlane-r8ewmtsp.js → fastlane-86zcf5ys.js} +5 -5
- package/dist/{fastlane-gjmhdgpc.js → fastlane-pj9c09z3.js} +2 -2
- package/dist/{format-7nafzp1w.js → format-z1jqgbad.js} +3 -3
- package/dist/{github-wd1fyk08.js → github-xakbbb7p.js} +3 -3
- package/dist/{gradle-rgyhk380.js → gradle-df21cm28.js} +3 -3
- package/dist/index.js +6 -6
- package/dist/init-cbba8t64.js +455 -0
- package/dist/{init-dnknbjrv.js → init-hdebe1s9.js} +4 -4
- package/dist/{ios-x4rdpb0s.js → ios-txv190np.js} +4 -4
- package/dist/kitref-9j43993r.js +84 -0
- package/dist/{kotlin-pc1dk6d8.js → kotlin-drt7z6bg.js} +3 -3
- package/dist/lib/completion.d.ts +33 -0
- package/dist/lib/kitref.d.ts +35 -0
- package/dist/lib/scaffold.d.ts +101 -0
- package/dist/{lint-2erx5vre.js → lint-90ernbhx.js} +3 -3
- package/dist/{list-7z9vyxrc.js → list-vaarpryk.js} +4 -4
- package/dist/load-x6mekf6y.js +25 -0
- package/dist/{main-2q4ys8qw.js → main-5c6x1pd4.js} +34 -247
- package/dist/{migrate-97yp0r9r.js → migrate-9zvfp57b.js} +4 -4
- package/dist/{mobile-vjv11q72.js → mobile-r27grzez.js} +16 -16
- package/dist/{push-g5ade61n.js → push-tn468c4w.js} +3 -3
- package/dist/{push-36vdpwex.js → push-wgbf86c0.js} +6 -6
- package/dist/scaffold-eqbtfksr.js +279 -0
- package/dist/{service-4cjx0epd.js → service-s5mnjq74.js} +5 -5
- package/dist/{show-y420r49k.js → show-qhn6x1vn.js} +3 -3
- package/dist/{steps-705j58z1.js → steps-8bz1tscj.js} +1 -1
- package/dist/{sync-mfzsmag6.js → sync-34029rh7.js} +4 -4
- package/dist/{targets-d9e5naq8.js → targets-5z0abrrk.js} +2 -2
- package/dist/{test-vwreks0d.js → test-rpj97zr6.js} +3 -3
- package/dist/{typecheck-8p2ng33a.js → typecheck-tbtp9z07.js} +3 -3
- package/dist/upgrade-z5s5wzzj.js +127 -0
- package/dist/{wrangler-rbrw8ygc.js → wrangler-zz21zhb0.js} +4 -4
- package/dist/{xcode-njfvzhk3.js → xcode-w8yhedhm.js} +3 -3
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/{0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.android.application.gradle.plugin-0.6.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.6.0/io.github.jordond.kit.android.application.gradle.plugin-0.6.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.6.0/io.github.jordond.kit.android.application.gradle.plugin-0.6.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.6.0/io.github.jordond.kit.android.application.gradle.plugin-0.6.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.6.0/io.github.jordond.kit.android.application.gradle.plugin-0.6.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/{0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.6.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.6.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.6.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.6.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.6.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.6.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.6.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.6.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.6.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/{0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.compose.gradle.plugin-0.6.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.6.0/io.github.jordond.kit.compose.gradle.plugin-0.6.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.6.0/io.github.jordond.kit.compose.gradle.plugin-0.6.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.6.0/io.github.jordond.kit.compose.gradle.plugin-0.6.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.6.0/io.github.jordond.kit.compose.gradle.plugin-0.6.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/{0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.6.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.6.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.6.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.6.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.6.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.6.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.6.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.6.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.6.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.module → 0.6.0/kit-plugins-0.6.0.module} +5 -5
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.module.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.module.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.module.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.module.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.pom → 0.6.0/kit-plugins-0.6.0.pom} +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.6.0/kit-plugins-0.6.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.module → 0.6.0/kit-settings-0.6.0.module} +5 -5
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.module.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.module.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.module.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.module.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.pom → 0.6.0/kit-settings-0.6.0.pom} +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.6.0/kit-settings-0.6.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/{0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.6.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.6.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.6.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.6.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.6.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.6.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.6.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.6.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.6.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/{0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.lint.gradle.plugin-0.6.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.6.0/io.github.jordond.kit.lint.gradle.plugin-0.6.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.6.0/io.github.jordond.kit.lint.gradle.plugin-0.6.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.6.0/io.github.jordond.kit.lint.gradle.plugin-0.6.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.6.0/io.github.jordond.kit.lint.gradle.plugin-0.6.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/{0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.release.gradle.plugin-0.6.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.6.0/io.github.jordond.kit.release.gradle.plugin-0.6.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.6.0/io.github.jordond.kit.release.gradle.plugin-0.6.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.6.0/io.github.jordond.kit.release.gradle.plugin-0.6.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.6.0/io.github.jordond.kit.release.gradle.plugin-0.6.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/{0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom → 0.6.0/io.github.jordond.kit.settings.gradle.plugin-0.6.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.6.0/io.github.jordond.kit.settings.gradle.plugin-0.6.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.6.0/io.github.jordond.kit.settings.gradle.plugin-0.6.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.6.0/io.github.jordond.kit.settings.gradle.plugin-0.6.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.6.0/io.github.jordond.kit.settings.gradle.plugin-0.6.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/package.json +1 -1
- package/templates/{new → gradle}/.github/workflows/ci.yml +3 -3
- package/templates/lefthook.yml +1 -1
- package/templates/toolchain/.editorconfig +32 -0
- package/templates/toolchain/.env.example +20 -0
- package/templates/toolchain/.github/workflows/ci.yml +44 -0
- package/templates/toolchain/.github/workflows/distribute.yml +41 -0
- package/templates/toolchain/fastlane/Fastfile +1 -0
- package/templates/toolchain/mise.toml +6 -0
- package/dist/init-cb5hz9aa.js +0 -269
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.module.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.module.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.module.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.module.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.module.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.module.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.module.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.module.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom.sha512 +0 -1
- package/dist/{cli-tafnwn5a.js → cli-5qdvgv3a.js} +4 -4
- package/dist/{cli-vkam43jd.js → cli-5sp3tf1s.js} +3 -3
- package/dist/{cli-ya6cd8y5.js → cli-pz86az34.js} +0 -0
- package/dist/{load-75n91nk4.js → load-4s6t9309.js} +2 -2
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.jar → 0.6.0/kit-plugins-0.6.0.jar} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.jar.md5 → 0.6.0/kit-plugins-0.6.0.jar.md5} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.jar.sha1 → 0.6.0/kit-plugins-0.6.0.jar.sha1} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.jar.sha256 → 0.6.0/kit-plugins-0.6.0.jar.sha256} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.4.0/kit-plugins-0.4.0.jar.sha512 → 0.6.0/kit-plugins-0.6.0.jar.sha512} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.jar → 0.6.0/kit-settings-0.6.0.jar} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.jar.md5 → 0.6.0/kit-settings-0.6.0.jar.md5} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.jar.sha1 → 0.6.0/kit-settings-0.6.0.jar.sha1} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.jar.sha256 → 0.6.0/kit-settings-0.6.0.jar.sha256} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.4.0/kit-settings-0.4.0.jar.sha512 → 0.6.0/kit-settings-0.6.0.jar.sha512} +0 -0
- /package/templates/{new → gradle}/.env.example +0 -0
- /package/templates/{new → gradle}/apps/client/fastlane/Fastfile +0 -0
- /package/templates/{new → gradle}/apps/client/gradle/libs.versions.toml +0 -0
- /package/templates/{new → gradle}/apps/client/settings.gradle.kts +0 -0
- /package/templates/{new → gradle}/kit.config.ts +0 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
ExitCode,
|
|
4
|
+
KitError
|
|
5
|
+
} from "./cli-7wvrehng.js";
|
|
6
|
+
import {
|
|
7
|
+
__require
|
|
8
|
+
} from "./cli-re3ntm60.js";
|
|
9
|
+
|
|
10
|
+
// src/config/load.ts
|
|
11
|
+
import { existsSync } from "fs";
|
|
12
|
+
import { basename, dirname, join } from "path";
|
|
13
|
+
import { pathToFileURL } from "url";
|
|
14
|
+
|
|
15
|
+
// src/config/schema.ts
|
|
16
|
+
import { z } from "zod";
|
|
17
|
+
var verbs = ["lint", "format", "typecheck", "test", "build", "dev", "deploy"];
|
|
18
|
+
var kinds = ["gradle", "kotlin", "worker", "vite", "astro", "docker", "custom"];
|
|
19
|
+
var tracks = ["internal", "alpha", "beta", "prod"];
|
|
20
|
+
var command = z.union([z.string(), z.array(z.string()), z.literal(false)]);
|
|
21
|
+
var verbOverrides = Object.fromEntries(verbs.map((v) => [v, command.optional()]));
|
|
22
|
+
var deploy = z.union([
|
|
23
|
+
command,
|
|
24
|
+
z.object({
|
|
25
|
+
run: command.optional(),
|
|
26
|
+
before: z.array(z.string()).optional()
|
|
27
|
+
}).strict()
|
|
28
|
+
]);
|
|
29
|
+
var target = z.object({
|
|
30
|
+
kind: z.enum(kinds),
|
|
31
|
+
dir: z.string(),
|
|
32
|
+
envs: z.array(z.string()).optional(),
|
|
33
|
+
...verbOverrides,
|
|
34
|
+
deploy: deploy.optional()
|
|
35
|
+
}).strict();
|
|
36
|
+
var workspace = z.object({
|
|
37
|
+
...verbOverrides,
|
|
38
|
+
prepare: command.optional()
|
|
39
|
+
}).strict();
|
|
40
|
+
var configSchema = z.object({
|
|
41
|
+
name: z.string().min(1),
|
|
42
|
+
gradle: z.object({
|
|
43
|
+
root: z.string(),
|
|
44
|
+
init: z.union([z.string(), z.array(z.string())]).optional()
|
|
45
|
+
}).strict().optional(),
|
|
46
|
+
toolchain: z.object({
|
|
47
|
+
root: z.string(),
|
|
48
|
+
init: z.union([z.string(), z.array(z.string())]).optional()
|
|
49
|
+
}).strict().optional(),
|
|
50
|
+
versions: z.object({
|
|
51
|
+
file: z.string(),
|
|
52
|
+
keys: z.record(z.string(), z.string())
|
|
53
|
+
}).strict().optional(),
|
|
54
|
+
env: z.object({
|
|
55
|
+
schema: z.string().optional(),
|
|
56
|
+
outputs: z.record(z.string(), z.object({
|
|
57
|
+
pick: z.array(z.string()).optional(),
|
|
58
|
+
rename: z.record(z.string(), z.string()).optional(),
|
|
59
|
+
vars: z.record(z.string(), z.string()).optional()
|
|
60
|
+
}).strict()).optional(),
|
|
61
|
+
workerSecrets: z.record(z.string(), z.array(z.string())).optional(),
|
|
62
|
+
githubSecrets: z.array(z.string()).optional()
|
|
63
|
+
}).strict().optional(),
|
|
64
|
+
workspace: workspace.optional(),
|
|
65
|
+
targets: z.record(z.string(), target).default({}),
|
|
66
|
+
cloudflare: z.object({
|
|
67
|
+
accountId: z.string().optional(),
|
|
68
|
+
d1: z.record(z.string(), z.object({
|
|
69
|
+
name: z.string(),
|
|
70
|
+
target: z.string(),
|
|
71
|
+
default: z.boolean().optional()
|
|
72
|
+
}).strict()).optional()
|
|
73
|
+
}).strict().optional(),
|
|
74
|
+
release: z.object({
|
|
75
|
+
branches: z.array(z.string()).optional(),
|
|
76
|
+
fastlaneDir: z.string().optional(),
|
|
77
|
+
notes: z.object({ maxLength: z.number().int().positive().optional() }).strict().optional(),
|
|
78
|
+
preflight: z.array(z.string()).optional(),
|
|
79
|
+
ios: z.object({
|
|
80
|
+
bundleIds: z.array(z.string()).min(1),
|
|
81
|
+
project: z.string(),
|
|
82
|
+
scheme: z.string(),
|
|
83
|
+
output: z.string(),
|
|
84
|
+
teamId: z.string().optional(),
|
|
85
|
+
xcconfig: z.string().optional(),
|
|
86
|
+
testflightGroups: z.object({ alpha: z.string(), beta: z.string() }).partial().optional(),
|
|
87
|
+
sentry: z.object({ org: z.string(), project: z.string() }).strict().optional()
|
|
88
|
+
}).strict().optional(),
|
|
89
|
+
android: z.object({
|
|
90
|
+
packageName: z.string(),
|
|
91
|
+
module: z.string(),
|
|
92
|
+
prodRollout: z.number().gt(0).lte(1).optional(),
|
|
93
|
+
gates: z.array(z.object({
|
|
94
|
+
task: z.string(),
|
|
95
|
+
tracks: z.array(z.enum(tracks))
|
|
96
|
+
})).optional()
|
|
97
|
+
}).strict().optional(),
|
|
98
|
+
services: z.record(z.string(), z.object({ versionKey: z.string(), build: z.string().optional(), deploy: z.string() }).strict()).optional()
|
|
99
|
+
}).strict().optional()
|
|
100
|
+
}).strict().superRefine((c, ctx) => {
|
|
101
|
+
if (c.gradle && c.toolchain) {
|
|
102
|
+
ctx.addIssue({
|
|
103
|
+
code: "custom",
|
|
104
|
+
path: ["toolchain"],
|
|
105
|
+
message: "Set gradle or toolchain, not both: kit builds Android with one of them"
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
for (const [name, d] of Object.entries(c.cloudflare?.d1 ?? {})) {
|
|
109
|
+
if (!c.targets[d.target]) {
|
|
110
|
+
ctx.addIssue({
|
|
111
|
+
code: "custom",
|
|
112
|
+
path: ["cloudflare", "d1", name, "target"],
|
|
113
|
+
message: `Unknown target "${d.target}"`
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const defaults = Object.entries(c.cloudflare?.d1 ?? {}).filter(([, d]) => d.default);
|
|
118
|
+
if (defaults.length > 1) {
|
|
119
|
+
ctx.addIssue({
|
|
120
|
+
code: "custom",
|
|
121
|
+
path: ["cloudflare", "d1"],
|
|
122
|
+
message: `Only one database can be the default (${defaults.map(([k]) => k).join(", ")})`
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
if (c.targets.workspace) {
|
|
126
|
+
ctx.addIssue({ code: "custom", path: ["targets", "workspace"], message: '"workspace" is reserved' });
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
// src/config/load.ts
|
|
131
|
+
var CONFIG_FILE = "kit.config.ts";
|
|
132
|
+
var KIT_DIR = ".kit";
|
|
133
|
+
function installDir(root, exists = existsSync) {
|
|
134
|
+
return exists(join(root, KIT_DIR, "package.json")) ? KIT_DIR : ".";
|
|
135
|
+
}
|
|
136
|
+
var selfRegistered = false;
|
|
137
|
+
function registerSelf() {
|
|
138
|
+
if (selfRegistered)
|
|
139
|
+
return;
|
|
140
|
+
selfRegistered = true;
|
|
141
|
+
Bun.plugin({
|
|
142
|
+
name: "kit-self",
|
|
143
|
+
setup(build) {
|
|
144
|
+
build.module("@jordond/kit", async () => ({ exports: await import("./index.js"), loader: "object" }));
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function configFile(root, exists = existsSync) {
|
|
149
|
+
return [CONFIG_FILE, join(KIT_DIR, CONFIG_FILE)].find((f) => exists(join(root, f)));
|
|
150
|
+
}
|
|
151
|
+
function findRoot(from = process.cwd()) {
|
|
152
|
+
if (process.env.KIT_ROOT && configFile(process.env.KIT_ROOT))
|
|
153
|
+
return process.env.KIT_ROOT;
|
|
154
|
+
let dir = from;
|
|
155
|
+
while (true) {
|
|
156
|
+
if (basename(dir) !== KIT_DIR && configFile(dir))
|
|
157
|
+
return dir;
|
|
158
|
+
const parent = dirname(dir);
|
|
159
|
+
if (parent === dir)
|
|
160
|
+
return;
|
|
161
|
+
dir = parent;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
async function loadDotEnv(root) {
|
|
165
|
+
const file = Bun.file(join(root, ".env"));
|
|
166
|
+
if (!await file.exists())
|
|
167
|
+
return;
|
|
168
|
+
for (const line of (await file.text()).split(`
|
|
169
|
+
`)) {
|
|
170
|
+
const m = line.match(/^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*?)\s*$/);
|
|
171
|
+
if (!m)
|
|
172
|
+
continue;
|
|
173
|
+
const [, key, raw] = m;
|
|
174
|
+
if (process.env[key] !== undefined)
|
|
175
|
+
continue;
|
|
176
|
+
process.env[key] = raw.replace(/^(['"])(.*)\1$/, "$2");
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
async function loadConfig(root) {
|
|
180
|
+
const file = configFile(root) ?? CONFIG_FILE;
|
|
181
|
+
return loadConfigFile(join(root, file), file);
|
|
182
|
+
}
|
|
183
|
+
async function loadConfigFile(path, label = CONFIG_FILE) {
|
|
184
|
+
registerSelf();
|
|
185
|
+
const mod = await import(pathToFileURL(path).href);
|
|
186
|
+
const result = configSchema.safeParse(mod.default);
|
|
187
|
+
if (!result.success) {
|
|
188
|
+
const issues = result.error.issues.map((i) => ` ${i.path.join(".") || "(root)"}: ${i.message}`).join(`
|
|
189
|
+
`);
|
|
190
|
+
throw new KitError(`Invalid ${label}:
|
|
191
|
+
${issues}`, "Fix the fields above", ExitCode.config);
|
|
192
|
+
}
|
|
193
|
+
return result.data;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export { CONFIG_FILE, KIT_DIR, installDir, registerSelf, configFile, findRoot, loadDotEnv, loadConfig, loadConfigFile };
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
detectPackageManager,
|
|
7
7
|
pmExec
|
|
8
8
|
} from "./cli-qhs8ww91.js";
|
|
9
|
+
import {
|
|
10
|
+
addChildEnv
|
|
11
|
+
} from "./cli-fqfan92n.js";
|
|
9
12
|
import {
|
|
10
13
|
ExitCode,
|
|
11
14
|
KitError
|
|
12
15
|
} from "./cli-7wvrehng.js";
|
|
13
|
-
import {
|
|
14
|
-
addChildEnv
|
|
15
|
-
} from "./cli-fqfan92n.js";
|
|
16
16
|
import {
|
|
17
17
|
__require
|
|
18
18
|
} from "./cli-re3ntm60.js";
|
|
@@ -186,7 +186,7 @@ var remoteArg = {
|
|
|
186
186
|
remote: { type: "boolean", description: "Deployed D1 (default: local)" }
|
|
187
187
|
};
|
|
188
188
|
async function runD1(ctx, action, opts) {
|
|
189
|
-
const { requireProject } = await import("./command-
|
|
189
|
+
const { requireProject } = await import("./command-gtyznw30.js");
|
|
190
190
|
const { confirm } = await import("./prompt-3wwegvqc.js");
|
|
191
191
|
const { emitJson } = await import("./log-g1ebh60s.js");
|
|
192
192
|
const { run, runQuiet } = await import("./proc-jv4bcyyx.js");
|
package/dist/cli.js
CHANGED
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
stripJsonc,
|
|
17
17
|
wrangler,
|
|
18
18
|
wranglerSecretPut
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-dcq8ydz0.js";
|
|
20
20
|
import"./cli-wg35kt5d.js";
|
|
21
21
|
import"./cli-qhs8ww91.js";
|
|
22
|
-
import"./cli-7wvrehng.js";
|
|
23
22
|
import"./cli-fqfan92n.js";
|
|
24
23
|
import"./cli-fqxtcj42.js";
|
|
24
|
+
import"./cli-7wvrehng.js";
|
|
25
25
|
import"./cli-re3ntm60.js";
|
|
26
26
|
export {
|
|
27
27
|
wranglerSecretPut,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
requireProject,
|
|
7
7
|
toGunshi,
|
|
8
8
|
withBuiltin
|
|
9
|
-
} from "./cli-
|
|
10
|
-
import"./cli-7wvrehng.js";
|
|
9
|
+
} from "./cli-6q43d787.js";
|
|
11
10
|
import"./cli-540nme4e.js";
|
|
12
11
|
import"./cli-5wasc5mr.js";
|
|
12
|
+
import"./cli-7wvrehng.js";
|
|
13
13
|
import"./cli-re3ntm60.js";
|
|
14
14
|
export {
|
|
15
15
|
withBuiltin,
|
package/dist/commands/init.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { KitConfig } from '../config/schema';
|
|
2
|
+
import type { CompletionState, Shell } from '../lib/completion';
|
|
2
3
|
import type { PackageManager } from '../lib/pm';
|
|
3
4
|
/**
|
|
4
5
|
* `kit init`, existing-repo mode (brewd `cli init` + WhaleSay `ws init`, generalized): `.env` from
|
|
@@ -8,7 +9,11 @@ import type { PackageManager } from '../lib/pm';
|
|
|
8
9
|
* and `bundle install` where a Gemfile is (the Gradle root, else the repo root). A missing tool
|
|
9
10
|
* skips its step with a hint instead of failing, so a JS-only machine still ends up set up.
|
|
10
11
|
* Idempotent: whatever is already there is skipped. Every step runs even after a failure, so one
|
|
11
|
-
* pass surfaces every problem; the exit code is 1 if any failed.
|
|
12
|
+
* pass surfaces every problem; the exit code is 1 if any failed.
|
|
13
|
+
*
|
|
14
|
+
* New-repo mode (no kit.config.ts yet): `--template toolchain|gradle` writes the kit files first
|
|
15
|
+
* (src/lib/scaffold.ts), then the steps above run against the new config. A Kotlin toolchain
|
|
16
|
+
* project (a `kotlin` wrapper and project.yaml) is offered the toolchain template.
|
|
12
17
|
*/
|
|
13
18
|
export type Scaffold = 'mise' | 'lefthook';
|
|
14
19
|
export declare const SCAFFOLDS: Record<Scaffold, {
|
|
@@ -16,6 +21,13 @@ export declare const SCAFFOLDS: Record<Scaffold, {
|
|
|
16
21
|
alt: string[];
|
|
17
22
|
template: string;
|
|
18
23
|
}>;
|
|
24
|
+
/**
|
|
25
|
+
* The template file of a scaffold, under kit's `templates/`. A Kotlin toolchain repo gets its own
|
|
26
|
+
* mise.toml: bun and ktlint, no java (the toolchain provisions its JDK).
|
|
27
|
+
*/
|
|
28
|
+
export declare function scaffoldTemplate(scaffold: Scaffold, toolchain: boolean): string;
|
|
29
|
+
/** How a git hook reaches kit: the repo's own copy when kit lives in `.kit/`, else the one on PATH. */
|
|
30
|
+
export declare function hookKit(kitDir: string): string;
|
|
19
31
|
export interface InitState {
|
|
20
32
|
root: string;
|
|
21
33
|
config: KitConfig | undefined;
|
|
@@ -38,6 +50,8 @@ export interface InitState {
|
|
|
38
50
|
platform?: NodeJS.Platform;
|
|
39
51
|
/** `--js-only`: skip the Gradle, Kotlin toolchain and bundler steps. */
|
|
40
52
|
jsOnly?: boolean;
|
|
53
|
+
/** Shell completion for the user's shell; undefined (CI, unknown shell) plans nothing. */
|
|
54
|
+
completion?: CompletionState;
|
|
41
55
|
}
|
|
42
56
|
export type InitAction = {
|
|
43
57
|
kind: 'env-file';
|
|
@@ -52,6 +66,12 @@ export type InitAction = {
|
|
|
52
66
|
cmd: string[];
|
|
53
67
|
cwd: string;
|
|
54
68
|
env?: Record<string, string>;
|
|
69
|
+
} | {
|
|
70
|
+
kind: 'completion';
|
|
71
|
+
title: string;
|
|
72
|
+
shell: Shell;
|
|
73
|
+
file: string;
|
|
74
|
+
rc?: string;
|
|
55
75
|
} | {
|
|
56
76
|
kind: 'skip';
|
|
57
77
|
title: string;
|
|
@@ -67,5 +87,13 @@ declare const _default: import("..").KitCommand<{
|
|
|
67
87
|
readonly type: "boolean";
|
|
68
88
|
readonly description: "Skip the Gradle, Kotlin toolchain and bundler steps";
|
|
69
89
|
};
|
|
90
|
+
readonly template: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly description: "New repo: write the kit files first (toolchain: an existing Kotlin toolchain project; gradle)";
|
|
93
|
+
};
|
|
94
|
+
readonly name: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly description: "App name for --template (default: the directory name)";
|
|
97
|
+
};
|
|
70
98
|
}>;
|
|
71
99
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `kit upgrade [version]`: move the repo to another kit release in one step. The npm pin
|
|
3
|
+
* (`package.json`, or `.kit/package.json`) gets the new version, the install runs, and every
|
|
4
|
+
* `jordond/kit/…@<sha> # vX.Y.Z` in `.github/workflows` moves to that release's tag commit, so
|
|
5
|
+
* `kit doctor --ci` keeps passing. Re-running is safe: it also repairs workflow pins that lag
|
|
6
|
+
* the npm pin.
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: import("..").KitCommand<import("gunshi").Args>;
|
|
9
|
+
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-7wvrehng.js";
|
|
4
|
+
} from "./cli-6q43d787.js";
|
|
6
5
|
import"./cli-540nme4e.js";
|
|
7
6
|
import"./cli-5wasc5mr.js";
|
|
7
|
+
import"./cli-7wvrehng.js";
|
|
8
8
|
import {
|
|
9
9
|
__require
|
|
10
10
|
} from "./cli-re3ntm60.js";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"./cli-re3ntm60.js";
|
|
3
|
+
|
|
4
|
+
// src/lib/completion.ts
|
|
5
|
+
import { join } from "path";
|
|
6
|
+
function shellOf(shellPath) {
|
|
7
|
+
const name = shellPath?.split("/").pop();
|
|
8
|
+
return name === "zsh" || name === "bash" || name === "fish" ? name : undefined;
|
|
9
|
+
}
|
|
10
|
+
function completionTargets(shell, env, home, platform = "linux") {
|
|
11
|
+
const config = env.XDG_CONFIG_HOME || join(home, ".config");
|
|
12
|
+
if (shell === "fish")
|
|
13
|
+
return { script: join(config, "fish/completions/kit.fish") };
|
|
14
|
+
const script = join(config, "kit", `completion.${shell}`);
|
|
15
|
+
if (shell === "zsh")
|
|
16
|
+
return { script, rc: join(env.ZDOTDIR || home, ".zshrc") };
|
|
17
|
+
return { script, rc: join(home, platform === "darwin" ? ".bash_profile" : ".bashrc") };
|
|
18
|
+
}
|
|
19
|
+
function rcSnippet(shell, script) {
|
|
20
|
+
const file = JSON.stringify(script);
|
|
21
|
+
const load = shell === "zsh" ? `(( $+functions[compdef] )) || { autoload -Uz compinit && compinit; }; source ${file}` : `source ${file}`;
|
|
22
|
+
return `# kit shell completion
|
|
23
|
+
[ -f ${file} ] && { ${load}; }
|
|
24
|
+
`;
|
|
25
|
+
}
|
|
26
|
+
function completionInstalled(current, rc) {
|
|
27
|
+
if (current === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return rc ? /\bkit[ /]completion\b/.test(current) : true;
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
shellOf,
|
|
33
|
+
rcSnippet,
|
|
34
|
+
completionTargets,
|
|
35
|
+
completionInstalled
|
|
36
|
+
};
|
package/dist/config/load.d.ts
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import { type KitConfig } from './schema';
|
|
2
2
|
export declare const CONFIG_FILE = "kit.config.ts";
|
|
3
|
+
/** Alternative install dir: package.json, bun.lock and node_modules under `<root>/.kit`. */
|
|
4
|
+
export declare const KIT_DIR = ".kit";
|
|
5
|
+
/**
|
|
6
|
+
* Where the repo's kit dependency lives, repo-relative: `.kit` when `.kit/package.json` exists,
|
|
7
|
+
* else `.` (the root package.json). A Kotlin toolchain repo uses `.kit`: a root package.json makes
|
|
8
|
+
* the toolchain's own `pnpm add` (Kotlin/Wasm test browsers) install into the repo root.
|
|
9
|
+
*/
|
|
10
|
+
export declare function installDir(root: string, exists?: (path: string) => boolean): string;
|
|
11
|
+
/**
|
|
12
|
+
* Make `import … from '@jordond/kit'` resolve to this running kit from any file (kit.config.ts,
|
|
13
|
+
* `.kit/commands`, preflights). With the `.kit` install dir a root kit.config.ts has no
|
|
14
|
+
* node_modules above it; and it keeps one kit instance either way.
|
|
15
|
+
*/
|
|
16
|
+
export declare function registerSelf(): void;
|
|
17
|
+
/**
|
|
18
|
+
* The config file of `root`, repo-relative: `kit.config.ts`, else `.kit/kit.config.ts` (next to
|
|
19
|
+
* kit's node_modules, so editors resolve the `@jordond/kit` import). The root file wins. Paths in
|
|
20
|
+
* the config are relative to the repo root in both places.
|
|
21
|
+
*/
|
|
22
|
+
export declare function configFile(root: string, exists?: (path: string) => boolean): string | undefined;
|
|
3
23
|
export declare function findRoot(from?: string): string | undefined;
|
|
4
24
|
/** Load `<root>/.env` into process.env without overriding values already set. */
|
|
5
25
|
export declare function loadDotEnv(root: string): Promise<void>;
|
|
6
26
|
export declare function loadConfig(root: string): Promise<KitConfig>;
|
|
27
|
+
/** Load and validate one config file; `label` names it in errors. */
|
|
28
|
+
export declare function loadConfigFile(path: string, label?: string): Promise<KitConfig>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-7wvrehng.js";
|
|
4
|
+
} from "./cli-6q43d787.js";
|
|
6
5
|
import {
|
|
7
6
|
emitJson
|
|
8
7
|
} from "./cli-540nme4e.js";
|
|
9
8
|
import"./cli-5wasc5mr.js";
|
|
9
|
+
import"./cli-7wvrehng.js";
|
|
10
10
|
import"./cli-re3ntm60.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/config.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
dbArgs
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-dcq8ydz0.js";
|
|
5
5
|
import"./cli-wg35kt5d.js";
|
|
6
6
|
import {
|
|
7
7
|
defineCommand
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-6q43d787.js";
|
|
9
9
|
import"./cli-qhs8ww91.js";
|
|
10
|
-
import"./cli-7wvrehng.js";
|
|
11
10
|
import"./cli-fqfan92n.js";
|
|
12
11
|
import"./cli-fqxtcj42.js";
|
|
13
12
|
import"./cli-540nme4e.js";
|
|
14
13
|
import"./cli-5wasc5mr.js";
|
|
14
|
+
import"./cli-7wvrehng.js";
|
|
15
15
|
import {
|
|
16
16
|
__require
|
|
17
17
|
} from "./cli-re3ntm60.js";
|
|
@@ -24,7 +24,7 @@ var create_default = defineCommand({
|
|
|
24
24
|
examples: `kit db create add_widgets
|
|
25
25
|
kit db create add_events --db analytics`,
|
|
26
26
|
async run(ctx) {
|
|
27
|
-
const { runD1 } = await import("./cloudflare-
|
|
27
|
+
const { runD1 } = await import("./cloudflare-3p8gj4ae.js");
|
|
28
28
|
const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
|
|
29
29
|
const migration = ctx.positionals.join("_").trim();
|
|
30
30
|
if (!migration) {
|
package/dist/creds-2qk71mdx.js
CHANGED
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
renameHints
|
|
15
15
|
} from "./cli-vpzh9t0w.js";
|
|
16
16
|
import"./cli-wg35kt5d.js";
|
|
17
|
-
import"./cli-7wvrehng.js";
|
|
18
17
|
import"./cli-fqfan92n.js";
|
|
19
18
|
import"./cli-fqxtcj42.js";
|
|
19
|
+
import"./cli-7wvrehng.js";
|
|
20
20
|
import"./cli-re3ntm60.js";
|
|
21
21
|
export {
|
|
22
22
|
renameHints,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6q43d787.js";
|
|
5
|
+
import"./cli-540nme4e.js";
|
|
6
|
+
import"./cli-5wasc5mr.js";
|
|
5
7
|
import {
|
|
6
8
|
ExitCode,
|
|
7
9
|
KitError
|
|
8
10
|
} from "./cli-7wvrehng.js";
|
|
9
|
-
import"./cli-540nme4e.js";
|
|
10
|
-
import"./cli-5wasc5mr.js";
|
|
11
11
|
import {
|
|
12
12
|
__require
|
|
13
13
|
} from "./cli-re3ntm60.js";
|
|
@@ -60,8 +60,8 @@ var deploy_default = defineCommand({
|
|
|
60
60
|
].join(`
|
|
61
61
|
`),
|
|
62
62
|
async run(ctx) {
|
|
63
|
-
const { requireProject } = await import("./command-
|
|
64
|
-
const { selectTargets, targetCommands } = await import("./targets-
|
|
63
|
+
const { requireProject } = await import("./command-gtyznw30.js");
|
|
64
|
+
const { selectTargets, targetCommands } = await import("./targets-5z0abrrk.js");
|
|
65
65
|
const { run, runToStderr } = await import("./proc-jv4bcyyx.js");
|
|
66
66
|
const { emitJson } = await import("./log-g1ebh60s.js");
|
|
67
67
|
const { root, config } = requireProject(ctx);
|
|
@@ -70,7 +70,7 @@ var deploy_default = defineCommand({
|
|
|
70
70
|
throw new KitError("kit deploy needs at least one target", `Targets: ${Object.keys(config.targets).join(", ")}`, ExitCode.usage);
|
|
71
71
|
}
|
|
72
72
|
if (config.cloudflare?.accountId)
|
|
73
|
-
(await import("./cloudflare-
|
|
73
|
+
(await import("./cloudflare-3p8gj4ae.js")).pinCloudflareAccount(root, config);
|
|
74
74
|
const envs = envsFor(config, names, ctx.args.env);
|
|
75
75
|
const self = [process.execPath, "--no-env-file", process.argv[1]];
|
|
76
76
|
const seen = new Set;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-7wvrehng.js";
|
|
4
|
+
} from "./cli-6q43d787.js";
|
|
6
5
|
import"./cli-540nme4e.js";
|
|
7
6
|
import"./cli-5wasc5mr.js";
|
|
7
|
+
import"./cli-7wvrehng.js";
|
|
8
8
|
import {
|
|
9
9
|
__require,
|
|
10
10
|
__toESM
|
|
@@ -169,7 +169,7 @@ var deps_default = defineCommand({
|
|
|
169
169
|
].join(`
|
|
170
170
|
`),
|
|
171
171
|
async run(ctx) {
|
|
172
|
-
const { requireProject } = await import("./command-
|
|
172
|
+
const { requireProject } = await import("./command-gtyznw30.js");
|
|
173
173
|
const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
|
|
174
174
|
const { detectPackageManager } = await import("./pm-5q5vz6w3.js");
|
|
175
175
|
const { root } = requireProject(ctx);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-7wvrehng.js";
|
|
4
|
+
} from "./cli-6q43d787.js";
|
|
6
5
|
import"./cli-540nme4e.js";
|
|
7
6
|
import"./cli-5wasc5mr.js";
|
|
7
|
+
import"./cli-7wvrehng.js";
|
|
8
8
|
import {
|
|
9
9
|
__require
|
|
10
10
|
} from "./cli-re3ntm60.js";
|
|
@@ -26,9 +26,9 @@ var dev_default = defineCommand({
|
|
|
26
26
|
`),
|
|
27
27
|
async run(ctx) {
|
|
28
28
|
const { relative } = await import("path");
|
|
29
|
-
const { requireProject } = await import("./command-
|
|
30
|
-
const { selectTargets, targetCommands, WORKSPACE } = await import("./targets-
|
|
31
|
-
const { envsFor } = await import("./deploy-
|
|
29
|
+
const { requireProject } = await import("./command-gtyznw30.js");
|
|
30
|
+
const { selectTargets, targetCommands, WORKSPACE } = await import("./targets-5z0abrrk.js");
|
|
31
|
+
const { envsFor } = await import("./deploy-k21ee2wr.js");
|
|
32
32
|
const { runInteractive, shell } = await import("./proc-jv4bcyyx.js");
|
|
33
33
|
const { interrupted } = await import("./cleanup-hrcvxmh2.js");
|
|
34
34
|
const { emitJson } = await import("./log-g1ebh60s.js");
|
|
@@ -36,7 +36,7 @@ var dev_default = defineCommand({
|
|
|
36
36
|
const { root, config } = requireProject(ctx);
|
|
37
37
|
if (config.cloudflare?.accountId) {
|
|
38
38
|
try {
|
|
39
|
-
(await import("./cloudflare-
|
|
39
|
+
(await import("./cloudflare-3p8gj4ae.js")).pinCloudflareAccount(root, config);
|
|
40
40
|
} catch (e) {
|
|
41
41
|
if (!(e instanceof KitError))
|
|
42
42
|
throw e;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6q43d787.js";
|
|
5
5
|
import {
|
|
6
6
|
wrapperVersion
|
|
7
7
|
} from "./cli-78x6rdyd.js";
|
|
8
|
-
import"./cli-7wvrehng.js";
|
|
9
8
|
import"./cli-540nme4e.js";
|
|
10
9
|
import"./cli-5wasc5mr.js";
|
|
10
|
+
import"./cli-7wvrehng.js";
|
|
11
11
|
import {
|
|
12
12
|
__require,
|
|
13
13
|
__toESM
|
|
@@ -337,7 +337,7 @@ function checkCiPin(workflows, pin, strict) {
|
|
|
337
337
|
label,
|
|
338
338
|
status: strict ? "fail" : "warn",
|
|
339
339
|
detail: `${off.map((f) => `${f.file} v${f.v}`).join(", ")} \u2260 package.json ${want}`,
|
|
340
|
-
hint: "
|
|
340
|
+
hint: "Run `kit upgrade <version>`: it moves the npm pin and the workflow SHAs together"
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
343
|
return { id: "ci-pin", label, status: "ok", detail: want };
|
|
@@ -401,6 +401,7 @@ kit doctor --ci`,
|
|
|
401
401
|
const { detectPackageManager, pmExec } = await import("./pm-5q5vz6w3.js");
|
|
402
402
|
const { parseToml, readToml } = await import("./toml-3fxsdkhr.js");
|
|
403
403
|
const { ExitCode } = await import("./errors-1fjbr7ee.js");
|
|
404
|
+
const { installDir } = await import("./load-x6mekf6y.js");
|
|
404
405
|
const { onGitHubActions, releaseSecrets, renameHints } = await import("./creds-2qk71mdx.js");
|
|
405
406
|
const { androidVersionDrift, iosVersionDrift } = await import("./version-mnds3q7r.js");
|
|
406
407
|
const { accessSync, constants } = await import("fs");
|
|
@@ -474,13 +475,14 @@ kit doctor --ci`,
|
|
|
474
475
|
detected.node = (await probe(["node", "--version"]))?.output.trim().replace(/^v/, "");
|
|
475
476
|
const wfDir = join(root, ".github/workflows");
|
|
476
477
|
const workflows = existsSync(wfDir) ? readdirSync(wfDir).filter((f) => /\.ya?ml$/.test(f)).map((f) => ({ file: f, text: readFileSync(join(wfDir, f), "utf8") })) : [];
|
|
477
|
-
const
|
|
478
|
+
const pkgFile = installDir(root) === "." ? "package.json" : `${installDir(root)}/package.json`;
|
|
479
|
+
const pkg = read(pkgFile);
|
|
478
480
|
let pin;
|
|
479
481
|
let pkgCheck;
|
|
480
482
|
try {
|
|
481
483
|
pin = pkg ? JSON.parse(pkg) : undefined;
|
|
482
484
|
} catch (e) {
|
|
483
|
-
pkgCheck = checkUnreadable("package-json", "package.json",
|
|
485
|
+
pkgCheck = checkUnreadable("package-json", "package.json", pkgFile, e);
|
|
484
486
|
}
|
|
485
487
|
const kitPin = pin?.devDependencies?.["@jordond/kit"] ?? pin?.dependencies?.["@jordond/kit"];
|
|
486
488
|
const catalogFile = catalogPath(config);
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
dbArgs,
|
|
4
4
|
remoteArg
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-dcq8ydz0.js";
|
|
6
6
|
import"./cli-wg35kt5d.js";
|
|
7
7
|
import {
|
|
8
8
|
defineCommand
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-6q43d787.js";
|
|
10
10
|
import"./cli-qhs8ww91.js";
|
|
11
|
-
import"./cli-7wvrehng.js";
|
|
12
11
|
import"./cli-fqfan92n.js";
|
|
13
12
|
import"./cli-fqxtcj42.js";
|
|
14
13
|
import"./cli-540nme4e.js";
|
|
15
14
|
import"./cli-5wasc5mr.js";
|
|
15
|
+
import"./cli-7wvrehng.js";
|
|
16
16
|
import {
|
|
17
17
|
__require
|
|
18
18
|
} from "./cli-re3ntm60.js";
|
|
@@ -33,7 +33,7 @@ var exec_default = defineCommand({
|
|
|
33
33
|
].join(`
|
|
34
34
|
`),
|
|
35
35
|
async run(ctx) {
|
|
36
|
-
const { runD1 } = await import("./cloudflare-
|
|
36
|
+
const { runD1 } = await import("./cloudflare-3p8gj4ae.js");
|
|
37
37
|
const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
|
|
38
38
|
const { resolve } = await import("path");
|
|
39
39
|
const sql = ctx.positionals.join(" ").trim();
|