@reliverse/dler 1.7.152 → 2.0.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/cli.js +1316 -0
- package/package.json +21 -144
- package/LICENSE +0 -21
- package/LICENSES +0 -22
- package/README.md +0 -36
- package/bin/impl/add/add-global/install-impl.d.ts +0 -38
- package/bin/impl/add/add-global/install-impl.js +0 -254
- package/bin/impl/add/add-global/install-mod.d.ts +0 -0
- package/bin/impl/add/add-global/install-mod.js +0 -0
- package/bin/impl/add/add-local/api/orpc.d.ts +0 -1
- package/bin/impl/add/add-local/api/orpc.js +0 -4
- package/bin/impl/add/add-local/api/trpc.d.ts +0 -1
- package/bin/impl/add/add-local/api/trpc.js +0 -4
- package/bin/impl/add/add-local/auth/better-auth.d.ts +0 -1
- package/bin/impl/add/add-local/auth/better-auth.js +0 -4
- package/bin/impl/add/add-local/auth/clerk-auth.d.ts +0 -1
- package/bin/impl/add/add-local/auth/clerk-auth.js +0 -4
- package/bin/impl/add/add-local/auth/next-auth.d.ts +0 -1
- package/bin/impl/add/add-local/auth/next-auth.js +0 -4
- package/bin/impl/add/add-local/core/deps.d.ts +0 -8
- package/bin/impl/add/add-local/core/deps.js +0 -19
- package/bin/impl/add/add-local/core/prompts.d.ts +0 -4
- package/bin/impl/add/add-local/core/prompts.js +0 -12
- package/bin/impl/add/add-local/core/templates.d.ts +0 -29
- package/bin/impl/add/add-local/core/templates.js +0 -85
- package/bin/impl/add/add-local/core/types.d.ts +0 -6
- package/bin/impl/add/add-local/core/types.js +0 -0
- package/bin/impl/add/add-local/db/drizzle.d.ts +0 -1
- package/bin/impl/add/add-local/db/drizzle.js +0 -4
- package/bin/impl/add/add-local/db/prisma.d.ts +0 -1
- package/bin/impl/add/add-local/db/prisma.js +0 -4
- package/bin/impl/add/add-local/files/uploadthing.d.ts +0 -1
- package/bin/impl/add/add-local/files/uploadthing.js +0 -4
- package/bin/impl/add/add-local/form/react-hook-form.d.ts +0 -1
- package/bin/impl/add/add-local/form/react-hook-form.js +0 -4
- package/bin/impl/add/add-local/form/tanstack-form.d.ts +0 -1
- package/bin/impl/add/add-local/form/tanstack-form.js +0 -4
- package/bin/impl/add/add-local/fws/browser/plasmo.d.ts +0 -1
- package/bin/impl/add/add-local/fws/browser/plasmo.js +0 -4
- package/bin/impl/add/add-local/fws/browser/wxt.d.ts +0 -1
- package/bin/impl/add/add-local/fws/browser/wxt.js +0 -4
- package/bin/impl/add/add-local/fws/configs/eslint-config.d.ts +0 -1
- package/bin/impl/add/add-local/fws/configs/eslint-config.js +0 -4
- package/bin/impl/add/add-local/fws/native/lynx.d.ts +0 -1
- package/bin/impl/add/add-local/fws/native/lynx.js +0 -4
- package/bin/impl/add/add-local/fws/native/react.d.ts +0 -1
- package/bin/impl/add/add-local/fws/native/react.js +0 -4
- package/bin/impl/add/add-local/fws/plugins/eslint-plugin.d.ts +0 -1
- package/bin/impl/add/add-local/fws/plugins/eslint-plugin.js +0 -4
- package/bin/impl/add/add-local/fws/vscode/vscode-ext.d.ts +0 -1
- package/bin/impl/add/add-local/fws/vscode/vscode-ext.js +0 -4
- package/bin/impl/add/add-local/fws/web/astro.d.ts +0 -1
- package/bin/impl/add/add-local/fws/web/astro.js +0 -4
- package/bin/impl/add/add-local/fws/web/jstack.d.ts +0 -1
- package/bin/impl/add/add-local/fws/web/jstack.js +0 -4
- package/bin/impl/add/add-local/fws/web/next.d.ts +0 -1
- package/bin/impl/add/add-local/fws/web/next.js +0 -4
- package/bin/impl/add/add-local/fws/web/start.d.ts +0 -1
- package/bin/impl/add/add-local/fws/web/start.js +0 -4
- package/bin/impl/add/add-local/fws/web/vite.d.ts +0 -1
- package/bin/impl/add/add-local/fws/web/vite.js +0 -4
- package/bin/impl/add/add-local/i18n/gt-libs.d.ts +0 -1
- package/bin/impl/add/add-local/i18n/gt-libs.js +0 -4
- package/bin/impl/add/add-local/i18n/languine.d.ts +0 -1
- package/bin/impl/add/add-local/i18n/languine.js +0 -19
- package/bin/impl/add/add-local/i18n/next-intl.d.ts +0 -1
- package/bin/impl/add/add-local/i18n/next-intl.js +0 -4
- package/bin/impl/add/add-local/llm/vercel.d.ts +0 -1
- package/bin/impl/add/add-local/llm/vercel.js +0 -4
- package/bin/impl/add/add-local/mail/resend.d.ts +0 -1
- package/bin/impl/add/add-local/mail/resend.js +0 -4
- package/bin/impl/add/add-local/pay/polar.d.ts +0 -1
- package/bin/impl/add/add-local/pay/polar.js +0 -4
- package/bin/impl/add/add-local/pay/stripe.d.ts +0 -1
- package/bin/impl/add/add-local/pay/stripe.js +0 -4
- package/bin/impl/add/add-local/tool/biome.d.ts +0 -1
- package/bin/impl/add/add-local/tool/biome.js +0 -4
- package/bin/impl/add/add-local/tool/eslint.d.ts +0 -1
- package/bin/impl/add/add-local/tool/eslint.js +0 -4
- package/bin/impl/add/add-local/tool/oxlint.d.ts +0 -4
- package/bin/impl/add/add-local/tool/oxlint.js +0 -4
- package/bin/impl/add/add-local/ui/21st.d.ts +0 -4
- package/bin/impl/add/add-local/ui/21st.js +0 -4
- package/bin/impl/add/add-local/ui/shadcn.d.ts +0 -1
- package/bin/impl/add/add-local/ui/shadcn.js +0 -4
- package/bin/impl/add/add-local/ui/tailwind.d.ts +0 -1
- package/bin/impl/add/add-local/ui/tailwind.js +0 -4
- package/bin/impl/add/add-rule/add-rule-const.d.ts +0 -11
- package/bin/impl/add/add-rule/add-rule-const.js +0 -32
- package/bin/impl/add/add-rule/add-rule-impl.d.ts +0 -21
- package/bin/impl/add/add-rule/add-rule-impl.js +0 -300
- package/bin/impl/add/add-rule/add-rule-types.d.ts +0 -18
- package/bin/impl/add/add-rule/add-rule-types.js +0 -0
- package/bin/impl/add/add-rule/add-rule-utils.d.ts +0 -61
- package/bin/impl/add/add-rule/add-rule-utils.js +0 -324
- package/bin/impl/ai/ai-impl/ai-auth.d.ts +0 -10
- package/bin/impl/ai/ai-impl/ai-auth.js +0 -59
- package/bin/impl/ai/ai-impl/ai-chat.d.ts +0 -5
- package/bin/impl/ai/ai-impl/ai-chat.js +0 -93
- package/bin/impl/ai/ai-impl/ai-const.d.ts +0 -7
- package/bin/impl/ai/ai-impl/ai-const.js +0 -14
- package/bin/impl/ai/ai-impl/ai-tools.d.ts +0 -5
- package/bin/impl/ai/ai-impl/ai-tools.js +0 -32
- package/bin/impl/ai/ai-impl/ai-types.d.ts +0 -12
- package/bin/impl/ai/ai-impl/ai-types.js +0 -0
- package/bin/impl/ai/ai-impl/code/code-mod.d.ts +0 -6
- package/bin/impl/ai/ai-impl/code/code-mod.js +0 -164
- package/bin/impl/ai/ai-impl/mcp/mcp-mod.d.ts +0 -5
- package/bin/impl/ai/ai-impl/mcp/mcp-mod.js +0 -125
- package/bin/impl/ai/ai-impl/relinter/relinter.d.ts +0 -27
- package/bin/impl/ai/ai-impl/relinter/relinter.js +0 -309
- package/bin/impl/ai/ai-menu.d.ts +0 -3
- package/bin/impl/ai/ai-menu.js +0 -40
- package/bin/impl/auth/consts.d.ts +0 -2
- package/bin/impl/auth/consts.js +0 -2
- package/bin/impl/auth/generators/auth-config.d.ts +0 -32
- package/bin/impl/auth/generators/auth-config.js +0 -533
- package/bin/impl/auth/generators/drizzle.d.ts +0 -3
- package/bin/impl/auth/generators/drizzle.js +0 -137
- package/bin/impl/auth/generators/index.d.ts +0 -16
- package/bin/impl/auth/generators/index.js +0 -18
- package/bin/impl/auth/generators/kysely.d.ts +0 -2
- package/bin/impl/auth/generators/kysely.js +0 -9
- package/bin/impl/auth/generators/prisma.d.ts +0 -2
- package/bin/impl/auth/generators/prisma.js +0 -154
- package/bin/impl/auth/generators/types.d.ts +0 -11
- package/bin/impl/auth/generators/types.js +0 -0
- package/bin/impl/auth/impl/init.d.ts +0 -183
- package/bin/impl/auth/impl/init.js +0 -367
- package/bin/impl/auth/impl/migrate.d.ts +0 -6
- package/bin/impl/auth/impl/migrate.js +0 -90
- package/bin/impl/auth/impl/types.d.ts +0 -12
- package/bin/impl/auth/impl/types.js +0 -0
- package/bin/impl/auth/utils/add-svelte-kit-env-modules.d.ts +0 -3
- package/bin/impl/auth/utils/add-svelte-kit-env-modules.js +0 -91
- package/bin/impl/auth/utils/check-package-managers.d.ts +0 -4
- package/bin/impl/auth/utils/check-package-managers.js +0 -20
- package/bin/impl/auth/utils/format-ms.d.ts +0 -4
- package/bin/impl/auth/utils/format-ms.js +0 -11
- package/bin/impl/auth/utils/generate-secret.d.ts +0 -1
- package/bin/impl/auth/utils/generate-secret.js +0 -2
- package/bin/impl/auth/utils/get-config.d.ts +0 -8
- package/bin/impl/auth/utils/get-config.js +0 -169
- package/bin/impl/auth/utils/get-package-info.d.ts +0 -1
- package/bin/impl/auth/utils/get-package-info.js +0 -6
- package/bin/impl/auth/utils/get-tsconfig-info.d.ts +0 -2
- package/bin/impl/auth/utils/get-tsconfig-info.js +0 -15
- package/bin/impl/auth/utils/install-dependencies.d.ts +0 -5
- package/bin/impl/auth/utils/install-dependencies.js +0 -34
- package/bin/impl/build/binary-flow.d.ts +0 -6
- package/bin/impl/build/binary-flow.js +0 -173
- package/bin/impl/build/build-library.d.ts +0 -42
- package/bin/impl/build/build-library.js +0 -626
- package/bin/impl/build/build-regular.d.ts +0 -20
- package/bin/impl/build/build-regular.js +0 -398
- package/bin/impl/build/impl.d.ts +0 -19
- package/bin/impl/build/impl.js +0 -104
- package/bin/impl/build/library-flow.d.ts +0 -26
- package/bin/impl/build/library-flow.js +0 -252
- package/bin/impl/build/postbuild.d.ts +0 -3
- package/bin/impl/build/postbuild.js +0 -173
- package/bin/impl/build/ppb-utils.d.ts +0 -16
- package/bin/impl/build/ppb-utils.js +0 -99
- package/bin/impl/build/prebuild.d.ts +0 -2
- package/bin/impl/build/prebuild.js +0 -108
- package/bin/impl/build/providers/auto.d.ts +0 -3
- package/bin/impl/build/providers/auto.js +0 -105
- package/bin/impl/build/providers/build.d.ts +0 -8
- package/bin/impl/build/providers/build.js +0 -351
- package/bin/impl/build/providers/bun/bun-build.d.ts +0 -0
- package/bin/impl/build/providers/bun/bun-build.js +0 -0
- package/bin/impl/build/providers/bun/single-file.d.ts +0 -25
- package/bin/impl/build/providers/bun/single-file.js +0 -146
- package/bin/impl/build/providers/copy/copy-mod.d.ts +0 -2
- package/bin/impl/build/providers/copy/copy-mod.js +0 -49
- package/bin/impl/build/providers/mkdist/mkdist-impl/loader.d.ts +0 -4
- package/bin/impl/build/providers/mkdist/mkdist-impl/loader.js +0 -26
- package/bin/impl/build/providers/mkdist/mkdist-impl/loaders/js.d.ts +0 -2
- package/bin/impl/build/providers/mkdist/mkdist-impl/loaders/js.js +0 -50
- package/bin/impl/build/providers/mkdist/mkdist-impl/loaders/loaders-mod.d.ts +0 -12
- package/bin/impl/build/providers/mkdist/mkdist-impl/loaders/loaders-mod.js +0 -30
- package/bin/impl/build/providers/mkdist/mkdist-impl/loaders/postcss.d.ts +0 -3
- package/bin/impl/build/providers/mkdist/mkdist-impl/loaders/postcss.js +0 -28
- package/bin/impl/build/providers/mkdist/mkdist-impl/loaders/sass.d.ts +0 -2
- package/bin/impl/build/providers/mkdist/mkdist-impl/loaders/sass.js +0 -31
- package/bin/impl/build/providers/mkdist/mkdist-impl/loaders/vue.d.ts +0 -17
- package/bin/impl/build/providers/mkdist/mkdist-impl/loaders/vue.js +0 -145
- package/bin/impl/build/providers/mkdist/mkdist-impl/make.d.ts +0 -11
- package/bin/impl/build/providers/mkdist/mkdist-impl/make.js +0 -192
- package/bin/impl/build/providers/mkdist/mkdist-impl/utils/dts.d.ts +0 -11
- package/bin/impl/build/providers/mkdist/mkdist-impl/utils/dts.js +0 -94
- package/bin/impl/build/providers/mkdist/mkdist-impl/utils/fs.d.ts +0 -1
- package/bin/impl/build/providers/mkdist/mkdist-impl/utils/fs.js +0 -15
- package/bin/impl/build/providers/mkdist/mkdist-impl/utils/vue-dts.d.ts +0 -3
- package/bin/impl/build/providers/mkdist/mkdist-impl/utils/vue-dts.js +0 -175
- package/bin/impl/build/providers/mkdist/mkdist-mod.d.ts +0 -2
- package/bin/impl/build/providers/mkdist/mkdist-mod.js +0 -92
- package/bin/impl/build/providers/rollup/build.d.ts +0 -2
- package/bin/impl/build/providers/rollup/build.js +0 -100
- package/bin/impl/build/providers/rollup/config.d.ts +0 -2
- package/bin/impl/build/providers/rollup/config.js +0 -112
- package/bin/impl/build/providers/rollup/plugins/cjs.d.ts +0 -4
- package/bin/impl/build/providers/rollup/plugins/cjs.js +0 -47
- package/bin/impl/build/providers/rollup/plugins/esbuild.d.ts +0 -3
- package/bin/impl/build/providers/rollup/plugins/esbuild.js +0 -91
- package/bin/impl/build/providers/rollup/plugins/json.d.ts +0 -3
- package/bin/impl/build/providers/rollup/plugins/json.js +0 -17
- package/bin/impl/build/providers/rollup/plugins/raw.d.ts +0 -8
- package/bin/impl/build/providers/rollup/plugins/raw.js +0 -20
- package/bin/impl/build/providers/rollup/plugins/shebang.d.ts +0 -5
- package/bin/impl/build/providers/rollup/plugins/shebang.js +0 -42
- package/bin/impl/build/providers/rollup/stub.d.ts +0 -2
- package/bin/impl/build/providers/rollup/stub.js +0 -125
- package/bin/impl/build/providers/rollup/utils.d.ts +0 -5
- package/bin/impl/build/providers/rollup/utils.js +0 -38
- package/bin/impl/build/providers/rollup/watch.d.ts +0 -2
- package/bin/impl/build/providers/rollup/watch.js +0 -30
- package/bin/impl/build/providers/untyped/untyped-mod.d.ts +0 -2
- package/bin/impl/build/providers/untyped/untyped-mod.js +0 -111
- package/bin/impl/build/providers/utils.d.ts +0 -19
- package/bin/impl/build/providers/utils.js +0 -148
- package/bin/impl/build/providers/validate.d.ts +0 -4
- package/bin/impl/build/providers/validate.js +0 -52
- package/bin/impl/build/regular-flow.d.ts +0 -10
- package/bin/impl/build/regular-flow.js +0 -246
- package/bin/impl/clone/firecrawl/firecrawl-mod.d.ts +0 -1
- package/bin/impl/clone/firecrawl/firecrawl-mod.js +0 -11
- package/bin/impl/cmod/cmod-impl.d.ts +0 -9
- package/bin/impl/cmod/cmod-impl.js +0 -21
- package/bin/impl/config/biome.d.ts +0 -2
- package/bin/impl/config/biome.js +0 -34
- package/bin/impl/config/comments.d.ts +0 -1
- package/bin/impl/config/comments.js +0 -57
- package/bin/impl/config/constants.d.ts +0 -45
- package/bin/impl/config/constants.js +0 -60
- package/bin/impl/config/content.d.ts +0 -14
- package/bin/impl/config/content.js +0 -15
- package/bin/impl/config/core.d.ts +0 -14
- package/bin/impl/config/core.js +0 -79
- package/bin/impl/config/create.d.ts +0 -35
- package/bin/impl/config/create.js +0 -274
- package/bin/impl/config/def-utils.d.ts +0 -6
- package/bin/impl/config/def-utils.js +0 -227
- package/bin/impl/config/detect.d.ts +0 -24
- package/bin/impl/config/detect.js +0 -371
- package/bin/impl/config/gen-cfg.d.ts +0 -3
- package/bin/impl/config/gen-cfg.js +0 -180
- package/bin/impl/config/load.d.ts +0 -15
- package/bin/impl/config/load.js +0 -87
- package/bin/impl/config/migrate.d.ts +0 -5
- package/bin/impl/config/migrate.js +0 -60
- package/bin/impl/config/path.d.ts +0 -11
- package/bin/impl/config/path.js +0 -28
- package/bin/impl/config/prepare.d.ts +0 -3
- package/bin/impl/config/prepare.js +0 -832
- package/bin/impl/config/prompts.d.ts +0 -5
- package/bin/impl/config/prompts.js +0 -12
- package/bin/impl/config/read.d.ts +0 -11
- package/bin/impl/config/read.js +0 -62
- package/bin/impl/config/repair.d.ts +0 -15
- package/bin/impl/config/repair.js +0 -101
- package/bin/impl/config/unstable.d.ts +0 -11
- package/bin/impl/config/unstable.js +0 -29
- package/bin/impl/config/update.d.ts +0 -10
- package/bin/impl/config/update.js +0 -145
- package/bin/impl/config/utils.d.ts +0 -17
- package/bin/impl/config/utils.js +0 -85
- package/bin/impl/conv/mod.d.ts +0 -26
- package/bin/impl/conv/mod.js +0 -193
- package/bin/impl/db/client.d.ts +0 -4
- package/bin/impl/db/client.js +0 -32
- package/bin/impl/db/config.d.ts +0 -2
- package/bin/impl/db/config.js +0 -59
- package/bin/impl/db/messages.d.ts +0 -13
- package/bin/impl/db/messages.js +0 -81
- package/bin/impl/db/schema.d.ts +0 -90
- package/bin/impl/db/schema.js +0 -9
- package/bin/impl/env/env-impl.d.ts +0 -1
- package/bin/impl/env/env-impl.js +0 -28
- package/bin/impl/get/get-core.d.ts +0 -3
- package/bin/impl/get/get-core.js +0 -453
- package/bin/impl/init/init-utils/init-impl.d.ts +0 -6
- package/bin/impl/init/init-utils/init-impl.js +0 -31
- package/bin/impl/init/init-utils/init-utils.d.ts +0 -35
- package/bin/impl/init/init-utils/init-utils.js +0 -255
- package/bin/impl/init/init-utils/mm-deprecated/editor-menu.d.ts +0 -4
- package/bin/impl/init/init-utils/mm-deprecated/editor-menu.js +0 -400
- package/bin/impl/init/mm-deprecated/drizzle/manageDrizzleConstants.d.ts +0 -2
- package/bin/impl/init/mm-deprecated/drizzle/manageDrizzleConstants.js +0 -36
- package/bin/impl/init/mm-deprecated/drizzle/manageDrizzleSchema.d.ts +0 -1
- package/bin/impl/init/mm-deprecated/drizzle/manageDrizzleSchema.js +0 -81
- package/bin/impl/init/mm-deprecated/drizzle/manageDrizzleSchemaUtils.d.ts +0 -16
- package/bin/impl/init/mm-deprecated/drizzle/manageDrizzleSchemaUtils.js +0 -474
- package/bin/impl/init/mm-deprecated/editor-impl.d.ts +0 -1
- package/bin/impl/init/mm-deprecated/editor-impl.js +0 -153
- package/bin/impl/init/mm-deprecated/editor-mod.d.ts +0 -18
- package/bin/impl/init/mm-deprecated/editor-mod.js +0 -184
- package/bin/impl/init/mm-deprecated/feature-add.d.ts +0 -2
- package/bin/impl/init/mm-deprecated/feature-add.js +0 -591
- package/bin/impl/init/mm-deprecated/feature-rm.d.ts +0 -2
- package/bin/impl/init/mm-deprecated/feature-rm.js +0 -98
- package/bin/impl/init/mm-deprecated/shadcn/shadcn-mod.d.ts +0 -1
- package/bin/impl/init/mm-deprecated/shadcn/shadcn-mod.js +0 -87
- package/bin/impl/init/use-template/cp-impl.d.ts +0 -39
- package/bin/impl/init/use-template/cp-impl.js +0 -286
- package/bin/impl/init/use-template/cp-mod.d.ts +0 -31
- package/bin/impl/init/use-template/cp-mod.js +0 -233
- package/bin/impl/init/use-template/cp-modules/cli-main-modules/cli-menu-items/showCloneProjectMenu.d.ts +0 -11
- package/bin/impl/init/use-template/cp-modules/cli-main-modules/cli-menu-items/showCloneProjectMenu.js +0 -206
- package/bin/impl/init/use-template/cp-modules/cli-main-modules/modules/showAnykeyPrompt.d.ts +0 -1
- package/bin/impl/init/use-template/cp-modules/cli-main-modules/modules/showAnykeyPrompt.js +0 -9
- package/bin/impl/init/use-template/cp-modules/compose-env-file/cef-impl.d.ts +0 -16
- package/bin/impl/init/use-template/cp-modules/compose-env-file/cef-impl.js +0 -400
- package/bin/impl/init/use-template/cp-modules/compose-env-file/cef-keys.d.ts +0 -17
- package/bin/impl/init/use-template/cp-modules/compose-env-file/cef-keys.js +0 -142
- package/bin/impl/init/use-template/cp-modules/compose-env-file/cef-mod.d.ts +0 -2
- package/bin/impl/init/use-template/cp-modules/compose-env-file/cef-mod.js +0 -167
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/deploy.d.ts +0 -12
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/deploy.js +0 -91
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/gdp-mod.d.ts +0 -55
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/gdp-mod.js +0 -449
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/git.d.ts +0 -51
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/git.js +0 -311
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/github.d.ts +0 -8
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/github.js +0 -113
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/helpers/domainHelpers.d.ts +0 -1
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/helpers/domainHelpers.js +0 -25
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/helpers/handlePkgJsonScripts.d.ts +0 -1
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/helpers/handlePkgJsonScripts.js +0 -52
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/helpers/promptForDomain.d.ts +0 -4
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/helpers/promptForDomain.js +0 -39
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/utils-git-github.d.ts +0 -8
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/utils-git-github.js +0 -75
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/utils-private-repo.d.ts +0 -12
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/utils-private-repo.js +0 -168
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/utils-repo-exists.d.ts +0 -10
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/utils-repo-exists.js +0 -62
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-api.d.ts +0 -10
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-api.js +0 -36
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-check.d.ts +0 -14
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-check.js +0 -29
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-config.d.ts +0 -27
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-config.js +0 -104
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-create.d.ts +0 -17
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-create.js +0 -129
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-deploy.d.ts +0 -20
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-deploy.js +0 -151
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-domain.d.ts +0 -5
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-domain.js +0 -44
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-env.d.ts +0 -3
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-env.js +0 -58
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-team.d.ts +0 -15
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-team.js +0 -74
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-types.d.ts +0 -28
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-types.js +0 -0
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-utils.d.ts +0 -26
- package/bin/impl/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-utils.js +0 -134
- package/bin/impl/inject/inject-impl-mod.d.ts +0 -112
- package/bin/impl/inject/inject-impl-mod.js +0 -716
- package/bin/impl/invoke/mod.d.ts +0 -59
- package/bin/impl/invoke/mod.js +0 -353
- package/bin/impl/login/login-impl.d.ts +0 -6
- package/bin/impl/login/login-impl.js +0 -179
- package/bin/impl/logout/logout-impl.d.ts +0 -1
- package/bin/impl/logout/logout-impl.js +0 -20
- package/bin/impl/magic/magic-apply.d.ts +0 -88
- package/bin/impl/magic/magic-apply.js +0 -669
- package/bin/impl/magic/magic-spells.d.ts +0 -46
- package/bin/impl/magic/magic-spells.js +0 -144
- package/bin/impl/merge/mod.d.ts +0 -8
- package/bin/impl/merge/mod.js +0 -160
- package/bin/impl/migrate/codemods/anything-bun.d.ts +0 -5
- package/bin/impl/migrate/codemods/anything-bun.js +0 -577
- package/bin/impl/migrate/codemods/commander-rempts.d.ts +0 -4
- package/bin/impl/migrate/codemods/commander-rempts.js +0 -250
- package/bin/impl/migrate/codemods/console-relinka.d.ts +0 -3
- package/bin/impl/migrate/codemods/console-relinka.js +0 -142
- package/bin/impl/migrate/codemods/fs-relifso.d.ts +0 -8
- package/bin/impl/migrate/codemods/fs-relifso.js +0 -156
- package/bin/impl/migrate/codemods/monorepo-catalog.d.ts +0 -96
- package/bin/impl/migrate/codemods/monorepo-catalog.js +0 -517
- package/bin/impl/migrate/codemods/nodenext-bundler.d.ts +0 -10
- package/bin/impl/migrate/codemods/nodenext-bundler.js +0 -222
- package/bin/impl/migrate/codemods/path-pathkit.d.ts +0 -8
- package/bin/impl/migrate/codemods/path-pathkit.js +0 -143
- package/bin/impl/migrate/codemods/readdir-glob.d.ts +0 -8
- package/bin/impl/migrate/codemods/readdir-glob.js +0 -133
- package/bin/impl/monorepo/cache-mod.d.ts +0 -29
- package/bin/impl/monorepo/cache-mod.js +0 -61
- package/bin/impl/monorepo/commands-mod.d.ts +0 -24
- package/bin/impl/monorepo/commands-mod.js +0 -159
- package/bin/impl/monorepo/graph-mod.d.ts +0 -29
- package/bin/impl/monorepo/graph-mod.js +0 -106
- package/bin/impl/monorepo/mod.d.ts +0 -5
- package/bin/impl/monorepo/mod.js +0 -5
- package/bin/impl/monorepo/monorepo-mod.d.ts +0 -26
- package/bin/impl/monorepo/monorepo-mod.js +0 -152
- package/bin/impl/mrse/mrse-impl.d.ts +0 -53
- package/bin/impl/mrse/mrse-impl.js +0 -132
- package/bin/impl/pack/mod.d.ts +0 -43
- package/bin/impl/pack/mod.js +0 -200
- package/bin/impl/providers/better-t-stack/better-t-stack-mod.d.ts +0 -14
- package/bin/impl/providers/better-t-stack/better-t-stack-mod.js +0 -35
- package/bin/impl/providers/better-t-stack/better-t-stack-types.d.ts +0 -21
- package/bin/impl/providers/better-t-stack/better-t-stack-types.js +0 -0
- package/bin/impl/providers/better-t-stack/constants.d.ts +0 -61
- package/bin/impl/providers/better-t-stack/constants.js +0 -81
- package/bin/impl/providers/better-t-stack/helpers/database-providers/mongodb-atlas-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/database-providers/mongodb-atlas-setup.js +0 -133
- package/bin/impl/providers/better-t-stack/helpers/database-providers/neon-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/database-providers/neon-setup.js +0 -168
- package/bin/impl/providers/better-t-stack/helpers/database-providers/prisma-postgres-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/database-providers/prisma-postgres-setup.js +0 -161
- package/bin/impl/providers/better-t-stack/helpers/database-providers/supabase-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/database-providers/supabase-setup.js +0 -162
- package/bin/impl/providers/better-t-stack/helpers/database-providers/turso-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/database-providers/turso-setup.js +0 -250
- package/bin/impl/providers/better-t-stack/helpers/project-generation/create-project.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/project-generation/create-project.js +0 -82
- package/bin/impl/providers/better-t-stack/helpers/project-generation/create-readme.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/project-generation/create-readme.js +0 -245
- package/bin/impl/providers/better-t-stack/helpers/project-generation/env-setup.d.ts +0 -8
- package/bin/impl/providers/better-t-stack/helpers/project-generation/env-setup.js +0 -193
- package/bin/impl/providers/better-t-stack/helpers/project-generation/install-dependencies.d.ts +0 -6
- package/bin/impl/providers/better-t-stack/helpers/project-generation/install-dependencies.js +0 -25
- package/bin/impl/providers/better-t-stack/helpers/project-generation/post-installation.d.ts +0 -4
- package/bin/impl/providers/better-t-stack/helpers/project-generation/post-installation.js +0 -228
- package/bin/impl/providers/better-t-stack/helpers/project-generation/project-config.d.ts +0 -3
- package/bin/impl/providers/better-t-stack/helpers/project-generation/project-config.js +0 -224
- package/bin/impl/providers/better-t-stack/helpers/project-generation/template-manager.d.ts +0 -9
- package/bin/impl/providers/better-t-stack/helpers/project-generation/template-manager.js +0 -484
- package/bin/impl/providers/better-t-stack/helpers/setup/addons-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/setup/addons-setup.js +0 -99
- package/bin/impl/providers/better-t-stack/helpers/setup/api-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/setup/api-setup.js +0 -236
- package/bin/impl/providers/better-t-stack/helpers/setup/auth-setup.d.ts +0 -3
- package/bin/impl/providers/better-t-stack/helpers/setup/auth-setup.js +0 -67
- package/bin/impl/providers/better-t-stack/helpers/setup/backend-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/setup/backend-setup.js +0 -52
- package/bin/impl/providers/better-t-stack/helpers/setup/db-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/setup/db-setup.js +0 -84
- package/bin/impl/providers/better-t-stack/helpers/setup/examples-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/setup/examples-setup.js +0 -38
- package/bin/impl/providers/better-t-stack/helpers/setup/runtime-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/setup/runtime-setup.js +0 -79
- package/bin/impl/providers/better-t-stack/helpers/setup/starlight-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/setup/starlight-setup.js +0 -41
- package/bin/impl/providers/better-t-stack/helpers/setup/tauri-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/helpers/setup/tauri-setup.js +0 -67
- package/bin/impl/providers/better-t-stack/packed/addons.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/packed/addons.js +0 -263
- package/bin/impl/providers/better-t-stack/packed/api.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/packed/api.js +0 -678
- package/bin/impl/providers/better-t-stack/packed/auth.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/packed/auth.js +0 -4277
- package/bin/impl/providers/better-t-stack/packed/backend.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/packed/backend.js +0 -996
- package/bin/impl/providers/better-t-stack/packed/base.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/packed/base.js +0 -32
- package/bin/impl/providers/better-t-stack/packed/binaries/01dad80fc2.png +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/0ba5eb8b0a.png +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/19b53640a9.png +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/206a875d5d.png +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/2dc8b34485.png +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/3f71f5a845.png +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/6eda863d14.ico +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/70aadde45a.png +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/9ecfcc8f0e.ico +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/9fc7a0c84f.ico +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/b72f6b7339.png +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/cb25ca74dd.png +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/dee83fc2fb.png +0 -0
- package/bin/impl/providers/better-t-stack/packed/binaries/eda53e30fe.svg +0 -6
- package/bin/impl/providers/better-t-stack/packed/db.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/packed/db.js +0 -329
- package/bin/impl/providers/better-t-stack/packed/examples.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/packed/examples.js +0 -3470
- package/bin/impl/providers/better-t-stack/packed/extras.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/packed/extras.js +0 -33
- package/bin/impl/providers/better-t-stack/packed/frontend.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/packed/frontend.js +0 -6116
- package/bin/impl/providers/better-t-stack/packed/runtime.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/packed/runtime.js +0 -35
- package/bin/impl/providers/better-t-stack/prompts/addons.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/prompts/addons.js +0 -62
- package/bin/impl/providers/better-t-stack/prompts/api.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/prompts/api.js +0 -52
- package/bin/impl/providers/better-t-stack/prompts/auth.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/prompts/auth.js +0 -19
- package/bin/impl/providers/better-t-stack/prompts/backend.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/prompts/backend.js +0 -60
- package/bin/impl/providers/better-t-stack/prompts/config-prompts.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/prompts/config-prompts.js +0 -88
- package/bin/impl/providers/better-t-stack/prompts/database-setup.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/prompts/database-setup.js +0 -67
- package/bin/impl/providers/better-t-stack/prompts/database.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/prompts/database.js +0 -48
- package/bin/impl/providers/better-t-stack/prompts/examples.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/prompts/examples.js +0 -44
- package/bin/impl/providers/better-t-stack/prompts/frontend.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/prompts/frontend.js +0 -107
- package/bin/impl/providers/better-t-stack/prompts/git.d.ts +0 -1
- package/bin/impl/providers/better-t-stack/prompts/git.js +0 -15
- package/bin/impl/providers/better-t-stack/prompts/install.d.ts +0 -1
- package/bin/impl/providers/better-t-stack/prompts/install.js +0 -15
- package/bin/impl/providers/better-t-stack/prompts/orm.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/prompts/orm.js +0 -43
- package/bin/impl/providers/better-t-stack/prompts/package-manager.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/prompts/package-manager.js +0 -29
- package/bin/impl/providers/better-t-stack/prompts/project-name.d.ts +0 -1
- package/bin/impl/providers/better-t-stack/prompts/project-name.js +0 -62
- package/bin/impl/providers/better-t-stack/prompts/runtime.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/prompts/runtime.js +0 -41
- package/bin/impl/providers/better-t-stack/types.d.ts +0 -124
- package/bin/impl/providers/better-t-stack/types.js +0 -29
- package/bin/impl/providers/better-t-stack/utils/add-package-deps.d.ts +0 -6
- package/bin/impl/providers/better-t-stack/utils/add-package-deps.js +0 -31
- package/bin/impl/providers/better-t-stack/utils/analytics.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/utils/analytics.js +0 -32
- package/bin/impl/providers/better-t-stack/utils/command-exists.d.ts +0 -1
- package/bin/impl/providers/better-t-stack/utils/command-exists.js +0 -14
- package/bin/impl/providers/better-t-stack/utils/display-config.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/utils/display-config.js +0 -59
- package/bin/impl/providers/better-t-stack/utils/generate-reproducible-command.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/utils/generate-reproducible-command.js +0 -39
- package/bin/impl/providers/better-t-stack/utils/get-latest-cli-version.d.ts +0 -1
- package/bin/impl/providers/better-t-stack/utils/get-latest-cli-version.js +0 -8
- package/bin/impl/providers/better-t-stack/utils/get-package-execution-command.d.ts +0 -10
- package/bin/impl/providers/better-t-stack/utils/get-package-execution-command.js +0 -10
- package/bin/impl/providers/better-t-stack/utils/get-package-manager.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/utils/get-package-manager.js +0 -10
- package/bin/impl/providers/better-t-stack/utils/open-url.d.ts +0 -1
- package/bin/impl/providers/better-t-stack/utils/open-url.js +0 -22
- package/bin/impl/providers/better-t-stack/utils/render-title.d.ts +0 -2
- package/bin/impl/providers/better-t-stack/utils/render-title.js +0 -43
- package/bin/impl/providers/better-t-stack/utils/sponsors.d.ts +0 -16
- package/bin/impl/providers/better-t-stack/utils/sponsors.js +0 -37
- package/bin/impl/providers/better-t-stack/utils/template-processor.d.ts +0 -8
- package/bin/impl/providers/better-t-stack/utils/template-processor.js +0 -23
- package/bin/impl/providers/better-t-stack/validation.d.ts +0 -4
- package/bin/impl/providers/better-t-stack/validation.js +0 -436
- package/bin/impl/providers/package.json +0 -3
- package/bin/impl/providers/reliverse-stack/reliverse-stack-mod.d.ts +0 -6
- package/bin/impl/providers/reliverse-stack/reliverse-stack-mod.js +0 -146
- package/bin/impl/providers/reliverse-stack/rs-impl.d.ts +0 -37
- package/bin/impl/providers/reliverse-stack/rs-impl.js +0 -367
- package/bin/impl/pub/impl.d.ts +0 -8
- package/bin/impl/pub/impl.js +0 -87
- package/bin/impl/pub/pub-library.d.ts +0 -5
- package/bin/impl/pub/pub-library.js +0 -149
- package/bin/impl/pub/pub-regular.d.ts +0 -9
- package/bin/impl/pub/pub-regular.js +0 -87
- package/bin/impl/remdn/mod.d.ts +0 -45
- package/bin/impl/remdn/mod.js +0 -648
- package/bin/impl/rempts/cmd.d.ts +0 -18
- package/bin/impl/rempts/cmd.js +0 -260
- package/bin/impl/rules/reliverse/dler-config-health/dler-config-health.d.ts +0 -2
- package/bin/impl/rules/reliverse/dler-config-health/dler-config-health.js +0 -37
- package/bin/impl/rules/reliverse/file-extensions/file-extensions.d.ts +0 -2
- package/bin/impl/rules/reliverse/file-extensions/file-extensions.js +0 -62
- package/bin/impl/rules/reliverse/missing-deps/analyzer.d.ts +0 -2
- package/bin/impl/rules/reliverse/missing-deps/analyzer.js +0 -49
- package/bin/impl/rules/reliverse/missing-deps/deps-mod.d.ts +0 -2
- package/bin/impl/rules/reliverse/missing-deps/deps-mod.js +0 -57
- package/bin/impl/rules/reliverse/missing-deps/deps-types.d.ts +0 -28
- package/bin/impl/rules/reliverse/missing-deps/deps-types.js +0 -0
- package/bin/impl/rules/reliverse/missing-deps/filesystem.d.ts +0 -4
- package/bin/impl/rules/reliverse/missing-deps/filesystem.js +0 -39
- package/bin/impl/rules/reliverse/missing-deps/formatter.d.ts +0 -2
- package/bin/impl/rules/reliverse/missing-deps/formatter.js +0 -101
- package/bin/impl/rules/reliverse/missing-deps/parser.d.ts +0 -5
- package/bin/impl/rules/reliverse/missing-deps/parser.js +0 -57
- package/bin/impl/rules/reliverse/no-dynamic-imports/no-dynamic-imports.d.ts +0 -7
- package/bin/impl/rules/reliverse/no-dynamic-imports/no-dynamic-imports.js +0 -89
- package/bin/impl/rules/reliverse/no-index-files/no-index-files.d.ts +0 -2
- package/bin/impl/rules/reliverse/no-index-files/no-index-files.js +0 -31
- package/bin/impl/rules/reliverse/package-json-health/package-json-health.d.ts +0 -2
- package/bin/impl/rules/reliverse/package-json-health/package-json-health.js +0 -61
- package/bin/impl/rules/reliverse/path-extensions/path-extensions.d.ts +0 -2
- package/bin/impl/rules/reliverse/path-extensions/path-extensions.js +0 -87
- package/bin/impl/rules/reliverse/self-include/self-include.d.ts +0 -2
- package/bin/impl/rules/reliverse/self-include/self-include.js +0 -93
- package/bin/impl/rules/reliverse/tsconfig-health/tsconfig-health.d.ts +0 -2
- package/bin/impl/rules/reliverse/tsconfig-health/tsconfig-health.js +0 -35
- package/bin/impl/rules/rules-consts.d.ts +0 -29
- package/bin/impl/rules/rules-consts.js +0 -48
- package/bin/impl/rules/rules-mod.d.ts +0 -2
- package/bin/impl/rules/rules-mod.js +0 -87
- package/bin/impl/rules/rules-utils.d.ts +0 -4
- package/bin/impl/rules/rules-utils.js +0 -49
- package/bin/impl/schema/gen.d.ts +0 -3
- package/bin/impl/schema/gen.js +0 -1493
- package/bin/impl/schema/mod.d.ts +0 -1329
- package/bin/impl/schema/mod.js +0 -344
- package/bin/impl/schema/utils.d.ts +0 -17
- package/bin/impl/schema/utils.js +0 -86
- package/bin/impl/split/impl.d.ts +0 -18
- package/bin/impl/split/impl.js +0 -89
- package/bin/impl/toolbox/toolbox-impl.d.ts +0 -5
- package/bin/impl/toolbox/toolbox-impl.js +0 -78
- package/bin/impl/toolbox/toolbox-vercel.d.ts +0 -6
- package/bin/impl/toolbox/toolbox-vercel.js +0 -97
- package/bin/impl/transform/transform-impl-mod.d.ts +0 -117
- package/bin/impl/transform/transform-impl-mod.js +0 -172
- package/bin/impl/types/mod.d.ts +0 -634
- package/bin/impl/types/mod.js +0 -0
- package/bin/impl/update/impl.d.ts +0 -21
- package/bin/impl/update/impl.js +0 -142
- package/bin/impl/update/utils.d.ts +0 -87
- package/bin/impl/update/utils.js +0 -448
- package/bin/impl/upload/providers/providers-mod.d.ts +0 -20
- package/bin/impl/upload/providers/providers-mod.js +0 -40
- package/bin/impl/upload/providers/uploadcare.d.ts +0 -13
- package/bin/impl/upload/providers/uploadcare.js +0 -26
- package/bin/impl/upload/providers/uploadthing.d.ts +0 -11
- package/bin/impl/upload/providers/uploadthing.js +0 -31
- package/bin/impl/upload/upload-utils.d.ts +0 -1
- package/bin/impl/upload/upload-utils.js +0 -7
- package/bin/impl/utils/agg/agg-1.d.ts +0 -1
- package/bin/impl/utils/agg/agg-1.js +0 -196
- package/bin/impl/utils/agg/agg-2.d.ts +0 -35
- package/bin/impl/utils/agg/agg-2.js +0 -148
- package/bin/impl/utils/agg/agg-3.d.ts +0 -41
- package/bin/impl/utils/agg/agg-3.js +0 -197
- package/bin/impl/utils/agg/agg-4.d.ts +0 -8
- package/bin/impl/utils/agg/agg-4.js +0 -26
- package/bin/impl/utils/agg/agg-5.d.ts +0 -4
- package/bin/impl/utils/agg/agg-5.js +0 -10
- package/bin/impl/utils/b-exts.d.ts +0 -5
- package/bin/impl/utils/b-exts.js +0 -406
- package/bin/impl/utils/badgeNotifiers.d.ts +0 -2
- package/bin/impl/utils/badgeNotifiers.js +0 -3
- package/bin/impl/utils/binary.d.ts +0 -4
- package/bin/impl/utils/binary.js +0 -11
- package/bin/impl/utils/codemods/convertCjsToEsm.d.ts +0 -1
- package/bin/impl/utils/codemods/convertCjsToEsm.js +0 -27
- package/bin/impl/utils/codemods/convertDatabase.d.ts +0 -2
- package/bin/impl/utils/codemods/convertDatabase.js +0 -229
- package/bin/impl/utils/codemods/convertDefinitions.d.ts +0 -1
- package/bin/impl/utils/codemods/convertDefinitions.js +0 -42
- package/bin/impl/utils/codemods/convertImportStyle.d.ts +0 -1
- package/bin/impl/utils/codemods/convertImportStyle.js +0 -30
- package/bin/impl/utils/codemods/convertJsToTs.d.ts +0 -1
- package/bin/impl/utils/codemods/convertJsToTs.js +0 -99
- package/bin/impl/utils/codemods/convertQuoteStyle.d.ts +0 -1
- package/bin/impl/utils/codemods/convertQuoteStyle.js +0 -31
- package/bin/impl/utils/codemods/convertRuntime.d.ts +0 -1
- package/bin/impl/utils/codemods/convertRuntime.js +0 -116
- package/bin/impl/utils/codemods/convertToMonorepo.d.ts +0 -2
- package/bin/impl/utils/codemods/convertToMonorepo.js +0 -137
- package/bin/impl/utils/codemods/removeComments.d.ts +0 -1
- package/bin/impl/utils/codemods/removeComments.js +0 -13
- package/bin/impl/utils/codemods/removeUnusedDeps.d.ts +0 -1
- package/bin/impl/utils/codemods/removeUnusedDeps.js +0 -29
- package/bin/impl/utils/codemods/replaceImportSymbol.d.ts +0 -1
- package/bin/impl/utils/codemods/replaceImportSymbol.js +0 -57
- package/bin/impl/utils/codemods/replaceWithModern.d.ts +0 -1
- package/bin/impl/utils/codemods/replaceWithModern.js +0 -122
- package/bin/impl/utils/comments.d.ts +0 -6
- package/bin/impl/utils/comments.js +0 -41
- package/bin/impl/utils/common.d.ts +0 -9
- package/bin/impl/utils/common.js +0 -37
- package/bin/impl/utils/createPackageJSON.d.ts +0 -6
- package/bin/impl/utils/createPackageJSON.js +0 -20
- package/bin/impl/utils/decideHelper.d.ts +0 -12
- package/bin/impl/utils/decideHelper.js +0 -32
- package/bin/impl/utils/dependencies/getUserPkgManager.d.ts +0 -13
- package/bin/impl/utils/dependencies/getUserPkgManager.js +0 -178
- package/bin/impl/utils/downloading/downloadI18nFiles.d.ts +0 -1
- package/bin/impl/utils/downloading/downloadI18nFiles.js +0 -98
- package/bin/impl/utils/downloading/downloadRepo.d.ts +0 -41
- package/bin/impl/utils/downloading/downloadRepo.js +0 -412
- package/bin/impl/utils/downloading/handleDownload.d.ts +0 -17
- package/bin/impl/utils/downloading/handleDownload.js +0 -160
- package/bin/impl/utils/exec/exec-enoent.d.ts +0 -15
- package/bin/impl/utils/exec/exec-enoent.js +0 -38
- package/bin/impl/utils/exec/exec-env.d.ts +0 -6
- package/bin/impl/utils/exec/exec-env.js +0 -34
- package/bin/impl/utils/exec/exec-error.d.ts +0 -7
- package/bin/impl/utils/exec/exec-error.js +0 -15
- package/bin/impl/utils/exec/exec-escape.d.ts +0 -2
- package/bin/impl/utils/exec/exec-escape.js +0 -15
- package/bin/impl/utils/exec/exec-mod.d.ts +0 -58
- package/bin/impl/utils/exec/exec-mod.js +0 -224
- package/bin/impl/utils/exec/exec-parse.d.ts +0 -2
- package/bin/impl/utils/exec/exec-parse.js +0 -71
- package/bin/impl/utils/exec/exec-resolve.d.ts +0 -2
- package/bin/impl/utils/exec/exec-resolve.js +0 -39
- package/bin/impl/utils/exec/exec-shebang.d.ts +0 -1
- package/bin/impl/utils/exec/exec-shebang.js +0 -14
- package/bin/impl/utils/exec/exec-spawn.d.ts +0 -3
- package/bin/impl/utils/exec/exec-spawn.js +0 -18
- package/bin/impl/utils/exec/exec-stream.d.ts +0 -4
- package/bin/impl/utils/exec/exec-stream.js +0 -18
- package/bin/impl/utils/exec/exec-types.d.ts +0 -13
- package/bin/impl/utils/exec/exec-types.js +0 -9
- package/bin/impl/utils/file-type.d.ts +0 -21
- package/bin/impl/utils/file-type.js +0 -78
- package/bin/impl/utils/finalize.d.ts +0 -10
- package/bin/impl/utils/finalize.js +0 -33
- package/bin/impl/utils/finish-text.d.ts +0 -6
- package/bin/impl/utils/finish-text.js +0 -41
- package/bin/impl/utils/fs-rename.d.ts +0 -2
- package/bin/impl/utils/fs-rename.js +0 -108
- package/bin/impl/utils/getEffectiveDir.d.ts +0 -5
- package/bin/impl/utils/getEffectiveDir.js +0 -4
- package/bin/impl/utils/getPackageManager.d.ts +0 -3
- package/bin/impl/utils/getPackageManager.js +0 -14
- package/bin/impl/utils/handlers/dependencies.d.ts +0 -1
- package/bin/impl/utils/handlers/dependencies.js +0 -19
- package/bin/impl/utils/handlers/handleCleanup.d.ts +0 -1
- package/bin/impl/utils/handlers/handleCleanup.js +0 -84
- package/bin/impl/utils/handlers/handleCodemods.d.ts +0 -2
- package/bin/impl/utils/handlers/handleCodemods.js +0 -203
- package/bin/impl/utils/handlers/isAppInstalled.d.ts +0 -1
- package/bin/impl/utils/handlers/isAppInstalled.js +0 -17
- package/bin/impl/utils/handlers/promptPackageJsonScripts.d.ts +0 -8
- package/bin/impl/utils/handlers/promptPackageJsonScripts.js +0 -130
- package/bin/impl/utils/handlers/shadcn.d.ts +0 -19
- package/bin/impl/utils/handlers/shadcn.js +0 -299
- package/bin/impl/utils/hasOnlyReliverseConfig.d.ts +0 -6
- package/bin/impl/utils/hasOnlyReliverseConfig.js +0 -15
- package/bin/impl/utils/init/init-const.d.ts +0 -34
- package/bin/impl/utils/init/init-const.js +0 -17
- package/bin/impl/utils/init/init-impl.d.ts +0 -22
- package/bin/impl/utils/init/init-impl.js +0 -229
- package/bin/impl/utils/init/init-tmpl.d.ts +0 -3
- package/bin/impl/utils/init/init-tmpl.js +0 -68
- package/bin/impl/utils/init/init-types.d.ts +0 -41
- package/bin/impl/utils/init/init-types.js +0 -0
- package/bin/impl/utils/instanceGithub.d.ts +0 -28
- package/bin/impl/utils/instanceGithub.js +0 -50
- package/bin/impl/utils/instanceVercel.d.ts +0 -16
- package/bin/impl/utils/instanceVercel.js +0 -39
- package/bin/impl/utils/microHelpers.d.ts +0 -11
- package/bin/impl/utils/microHelpers.js +0 -8
- package/bin/impl/utils/mrseHelpers.d.ts +0 -6
- package/bin/impl/utils/mrseHelpers.js +0 -21
- package/bin/impl/utils/pkgJsonHelpers.d.ts +0 -7
- package/bin/impl/utils/pkgJsonHelpers.js +0 -15
- package/bin/impl/utils/pm/pm-api.d.ts +0 -87
- package/bin/impl/utils/pm/pm-api.js +0 -170
- package/bin/impl/utils/pm/pm-catalog.d.ts +0 -36
- package/bin/impl/utils/pm/pm-catalog.js +0 -237
- package/bin/impl/utils/pm/pm-detect.d.ts +0 -12
- package/bin/impl/utils/pm/pm-detect.js +0 -99
- package/bin/impl/utils/pm/pm-meta.d.ts +0 -27
- package/bin/impl/utils/pm/pm-meta.js +0 -86
- package/bin/impl/utils/pm/pm-parse.d.ts +0 -8
- package/bin/impl/utils/pm/pm-parse.js +0 -29
- package/bin/impl/utils/pm/pm-types.d.ts +0 -46
- package/bin/impl/utils/pm/pm-types.js +0 -0
- package/bin/impl/utils/pm/pm-utils.d.ts +0 -12
- package/bin/impl/utils/pm/pm-utils.js +0 -115
- package/bin/impl/utils/projectRepository.d.ts +0 -58
- package/bin/impl/utils/projectRepository.js +0 -228
- package/bin/impl/utils/prompts/askAppOrLib.d.ts +0 -1
- package/bin/impl/utils/prompts/askAppOrLib.js +0 -30
- package/bin/impl/utils/prompts/askInstallDeps.d.ts +0 -7
- package/bin/impl/utils/prompts/askInstallDeps.js +0 -40
- package/bin/impl/utils/prompts/askOpenInIDE.d.ts +0 -5
- package/bin/impl/utils/prompts/askOpenInIDE.js +0 -43
- package/bin/impl/utils/prompts/askProjectName.d.ts +0 -3
- package/bin/impl/utils/prompts/askProjectName.js +0 -21
- package/bin/impl/utils/prompts/askUsernameFrontend.d.ts +0 -2
- package/bin/impl/utils/prompts/askUsernameFrontend.js +0 -28
- package/bin/impl/utils/prompts/askUsernameGithub.d.ts +0 -2
- package/bin/impl/utils/prompts/askUsernameGithub.js +0 -29
- package/bin/impl/utils/prompts/shouldInitGit.d.ts +0 -1
- package/bin/impl/utils/prompts/shouldInitGit.js +0 -8
- package/bin/impl/utils/reliverseMemory.d.ts +0 -3
- package/bin/impl/utils/reliverseMemory.js +0 -122
- package/bin/impl/utils/replacements/reps-impl.d.ts +0 -35
- package/bin/impl/utils/replacements/reps-impl.js +0 -220
- package/bin/impl/utils/replacements/reps-keys.d.ts +0 -16
- package/bin/impl/utils/replacements/reps-keys.js +0 -14
- package/bin/impl/utils/replacements/reps-mod.d.ts +0 -5
- package/bin/impl/utils/replacements/reps-mod.js +0 -211
- package/bin/impl/utils/replacements.d.ts +0 -0
- package/bin/impl/utils/replacements.js +0 -0
- package/bin/impl/utils/resolve-cross-libs.d.ts +0 -1
- package/bin/impl/utils/resolve-cross-libs.js +0 -641
- package/bin/impl/utils/schemaMemory.d.ts +0 -17
- package/bin/impl/utils/schemaMemory.js +0 -0
- package/bin/impl/utils/schemaTemplate.d.ts +0 -27
- package/bin/impl/utils/schemaTemplate.js +0 -98
- package/bin/impl/utils/startEndPrompts.d.ts +0 -8
- package/bin/impl/utils/startEndPrompts.js +0 -53
- package/bin/impl/utils/terminalHelpers.d.ts +0 -19
- package/bin/impl/utils/terminalHelpers.js +0 -43
- package/bin/impl/utils/testsRuntime.d.ts +0 -5
- package/bin/impl/utils/testsRuntime.js +0 -11
- package/bin/impl/utils/tsconfigHelpers.d.ts +0 -5
- package/bin/impl/utils/tsconfigHelpers.js +0 -14
- package/bin/impl/utils/utils-build.d.ts +0 -33
- package/bin/impl/utils/utils-build.js +0 -97
- package/bin/impl/utils/utils-clean.d.ts +0 -11
- package/bin/impl/utils/utils-clean.js +0 -70
- package/bin/impl/utils/utils-deps.d.ts +0 -5
- package/bin/impl/utils/utils-deps.js +0 -126
- package/bin/impl/utils/utils-determine.d.ts +0 -12
- package/bin/impl/utils/utils-determine.js +0 -25
- package/bin/impl/utils/utils-error-cwd.d.ts +0 -19
- package/bin/impl/utils/utils-error-cwd.js +0 -49
- package/bin/impl/utils/utils-fs.d.ts +0 -25
- package/bin/impl/utils/utils-fs.js +0 -183
- package/bin/impl/utils/utils-jsr-json.d.ts +0 -9
- package/bin/impl/utils/utils-jsr-json.js +0 -75
- package/bin/impl/utils/utils-misc.d.ts +0 -7
- package/bin/impl/utils/utils-misc.js +0 -7
- package/bin/impl/utils/utils-package-json-libraries.d.ts +0 -10
- package/bin/impl/utils/utils-package-json-libraries.js +0 -316
- package/bin/impl/utils/utils-package-json-regular.d.ts +0 -8
- package/bin/impl/utils/utils-package-json-regular.js +0 -165
- package/bin/impl/utils/utils-perf.d.ts +0 -5
- package/bin/impl/utils/utils-perf.js +0 -22
- package/bin/impl/utils/utils-security.d.ts +0 -12
- package/bin/impl/utils/utils-security.js +0 -95
- package/bin/impl/utils/utils-tsconfig.d.ts +0 -10
- package/bin/impl/utils/utils-tsconfig.js +0 -81
- package/bin/mod.d.ts +0 -437
- package/bin/mod.js +0 -1039
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
import path from "@reliverse/pathkit";
|
|
2
|
-
import { relinka } from "@reliverse/relinka";
|
|
3
|
-
import { createSpinnerGroup } from "@reliverse/rempts";
|
|
4
|
-
import pAll from "p-all";
|
|
5
|
-
import { library_buildLibrary } from "./build-library.js";
|
|
6
|
-
import { CONCURRENCY_DEFAULT, PROJECT_ROOT } from "../config/constants.js";
|
|
7
|
-
import { library_publishLibrary } from "../pub/pub-library.js";
|
|
8
|
-
import { resumePerfTimer } from "../utils/utils-perf.js";
|
|
9
|
-
export async function library_buildFlow(timer, isDev, config) {
|
|
10
|
-
relinka("verbose", "\u2014 \u2014 \u2014 library_buildFlow \u2014 \u2014 \u2014");
|
|
11
|
-
if (config.libsActMode !== "libs-only" && config.libsActMode !== "main-and-libs") {
|
|
12
|
-
relinka("verbose", "Skipping libs build as libsActMode is set to 'main-project-only'");
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
await libraries_build(
|
|
16
|
-
isDev,
|
|
17
|
-
timer,
|
|
18
|
-
config.libsList,
|
|
19
|
-
config.libsDirDist,
|
|
20
|
-
config.libsDirSrc,
|
|
21
|
-
config.commonPubRegistry,
|
|
22
|
-
config.distNpmOutFilesExt,
|
|
23
|
-
config.distNpmBuilder,
|
|
24
|
-
config.coreEntrySrcDir,
|
|
25
|
-
config.filterDepsPatterns,
|
|
26
|
-
config.transpileEsbuild,
|
|
27
|
-
config.transpileTarget,
|
|
28
|
-
config.transpileFormat,
|
|
29
|
-
config.transpileSplitting,
|
|
30
|
-
config.transpileSourcemap,
|
|
31
|
-
config.transpilePublicPath,
|
|
32
|
-
config.distJsrBuilder,
|
|
33
|
-
config.transpileStub,
|
|
34
|
-
config.transpileWatch,
|
|
35
|
-
config.distJsrOutFilesExt,
|
|
36
|
-
config
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
export async function library_pubFlow(timer, isDev, config) {
|
|
40
|
-
relinka("verbose", "\u2014 \u2014 \u2014 library_pubFlow \u2014 \u2014 \u2014");
|
|
41
|
-
if (config.libsActMode !== "libs-only" && config.libsActMode !== "main-and-libs") {
|
|
42
|
-
relinka("verbose", "Skipping libs publish as libsActMode is set to 'main-project-only'");
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
await libraries_publish(
|
|
46
|
-
isDev,
|
|
47
|
-
timer,
|
|
48
|
-
config.libsList,
|
|
49
|
-
config.distJsrDryRun,
|
|
50
|
-
config.distJsrFailOnWarn,
|
|
51
|
-
config.libsDirDist,
|
|
52
|
-
config.commonPubPause,
|
|
53
|
-
config.commonPubRegistry,
|
|
54
|
-
config.distJsrAllowDirty,
|
|
55
|
-
config.distJsrSlowTypes,
|
|
56
|
-
config.displayBuildPubLogs === false
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
function extractFolderName(libName, libConfig) {
|
|
60
|
-
if (libConfig?.libDirName) {
|
|
61
|
-
return libConfig.libDirName;
|
|
62
|
-
}
|
|
63
|
-
const parts = libName.split("/");
|
|
64
|
-
let baseName = parts[parts.length - 1];
|
|
65
|
-
if (baseName?.includes("-")) {
|
|
66
|
-
const dashParts = baseName.split("-");
|
|
67
|
-
baseName = dashParts[dashParts.length - 1];
|
|
68
|
-
}
|
|
69
|
-
if (!baseName) {
|
|
70
|
-
baseName = libName;
|
|
71
|
-
}
|
|
72
|
-
return baseName;
|
|
73
|
-
}
|
|
74
|
-
export async function libraries_build(isDev, timer, libsList, libsDirDist, libsDirSrc, commonPubRegistry, unifiedBundlerOutExt, distNpmBuilder, coreEntrySrcDir, filterDepsPatterns, transpileEsbuild, transpileTarget, transpileFormat, transpileSplitting, transpileSourcemap, transpilePublicPath, distJsrBuilder, transpileStub, transpileWatch, distJsrOutFilesExt, config) {
|
|
75
|
-
relinka("verbose", "Starting libraries_build");
|
|
76
|
-
if (!libsList || Object.keys(libsList).length === 0) {
|
|
77
|
-
relinka("verbose", "No lib configs found in config, skipping libs build.");
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const libsEntries = Object.entries(libsList);
|
|
81
|
-
const shouldShowSpinner = config.displayBuildPubLogs === false;
|
|
82
|
-
let spinnerGroup = null;
|
|
83
|
-
if (shouldShowSpinner) {
|
|
84
|
-
const libraryNames = libsEntries.map(([libName]) => `Building ${libName}`);
|
|
85
|
-
spinnerGroup = createSpinnerGroup({
|
|
86
|
-
items: libraryNames,
|
|
87
|
-
concurrent: true,
|
|
88
|
-
color: "green"
|
|
89
|
-
});
|
|
90
|
-
for (const spinner of spinnerGroup.spinners) {
|
|
91
|
-
spinner.start();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
const tasks = libsEntries.map(([libName, libConfig], index) => {
|
|
95
|
-
return async () => {
|
|
96
|
-
const librarySpinner = spinnerGroup?.spinners[index];
|
|
97
|
-
try {
|
|
98
|
-
if (!libConfig.libMainFile) {
|
|
99
|
-
throw new Error(`Library ${libName} is missing "libMainFile" property.`);
|
|
100
|
-
}
|
|
101
|
-
const folderName = extractFolderName(libName, libConfig);
|
|
102
|
-
const libBaseDir = path.resolve(PROJECT_ROOT, libsDirDist, folderName);
|
|
103
|
-
const npmOutDir = path.join(libBaseDir, "npm");
|
|
104
|
-
const jsrOutDir = path.join(libBaseDir, "jsr");
|
|
105
|
-
const libMainPath = path.parse(libConfig.libMainFile);
|
|
106
|
-
const libMainFile = libMainPath.base;
|
|
107
|
-
let libMainDir;
|
|
108
|
-
if (libConfig.libMainFile.startsWith(libsDirSrc)) {
|
|
109
|
-
libMainDir = libMainPath.dir || ".";
|
|
110
|
-
} else if (libMainPath.dir) {
|
|
111
|
-
libMainDir = path.join(libsDirSrc, libMainPath.dir);
|
|
112
|
-
} else {
|
|
113
|
-
libMainDir = path.join(libsDirSrc, folderName);
|
|
114
|
-
}
|
|
115
|
-
relinka(
|
|
116
|
-
"verbose",
|
|
117
|
-
`Processing library ${libName}: libMainDir=${libMainDir}, libMainFile=${libMainFile}`
|
|
118
|
-
);
|
|
119
|
-
const libTranspileMinify = libConfig?.libTranspileMinify === true;
|
|
120
|
-
await library_buildLibrary({
|
|
121
|
-
...config,
|
|
122
|
-
effectivePubRegistry: libConfig.libPubRegistry || commonPubRegistry,
|
|
123
|
-
libName,
|
|
124
|
-
mainDir: libMainDir,
|
|
125
|
-
npm: {
|
|
126
|
-
npmOutDir,
|
|
127
|
-
distNpmBuilder,
|
|
128
|
-
coreEntrySrcDir
|
|
129
|
-
},
|
|
130
|
-
jsr: {
|
|
131
|
-
jsrOutDir,
|
|
132
|
-
distJsrBuilder,
|
|
133
|
-
distJsrOutFilesExt
|
|
134
|
-
},
|
|
135
|
-
libMainFile,
|
|
136
|
-
isDev,
|
|
137
|
-
libsList,
|
|
138
|
-
unifiedBundlerOutExt,
|
|
139
|
-
filterDepsPatterns,
|
|
140
|
-
transpileEsbuild,
|
|
141
|
-
transpileTarget,
|
|
142
|
-
transpileFormat,
|
|
143
|
-
transpileSplitting,
|
|
144
|
-
libTranspileMinify,
|
|
145
|
-
transpileSourcemap,
|
|
146
|
-
transpilePublicPath,
|
|
147
|
-
timer,
|
|
148
|
-
transpileStub,
|
|
149
|
-
transpileWatch
|
|
150
|
-
});
|
|
151
|
-
if (librarySpinner) {
|
|
152
|
-
librarySpinner.succeed(`${libName} built successfully`);
|
|
153
|
-
}
|
|
154
|
-
} catch (error) {
|
|
155
|
-
if (librarySpinner) {
|
|
156
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
157
|
-
librarySpinner.fail(`${libName} build failed: ${errorMessage}`);
|
|
158
|
-
}
|
|
159
|
-
relinka(
|
|
160
|
-
"error",
|
|
161
|
-
`Failed to build library ${libName}: ${error instanceof Error ? error.message : String(error)}`
|
|
162
|
-
);
|
|
163
|
-
throw error;
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
});
|
|
167
|
-
try {
|
|
168
|
-
await pAll(tasks, {
|
|
169
|
-
concurrency: CONCURRENCY_DEFAULT
|
|
170
|
-
});
|
|
171
|
-
relinka("verbose", "Completed libraries_build");
|
|
172
|
-
} catch (error) {
|
|
173
|
-
if (timer) resumePerfTimer(timer);
|
|
174
|
-
throw error;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
export async function libraries_publish(isDev, timer, libsList, distJsrDryRun, distJsrFailOnWarn, libsDirDist, commonPubPause, commonPubRegistry, distJsrAllowDirty, distJsrSlowTypes, shouldShowSpinner = false) {
|
|
178
|
-
relinka("verbose", "Starting libraries_publish");
|
|
179
|
-
if (!libsList || Object.keys(libsList).length === 0) {
|
|
180
|
-
relinka("verbose", "No lib configs found in config, skipping libs publish.");
|
|
181
|
-
return;
|
|
182
|
-
}
|
|
183
|
-
const libsEntries = Object.entries(libsList);
|
|
184
|
-
let publishSpinnerGroup = null;
|
|
185
|
-
if (!commonPubPause) {
|
|
186
|
-
const libraryNames = libsEntries.filter(([, libConfig]) => !libConfig.libPubPause).map(([libName]) => `Publishing ${libName} to ${commonPubRegistry}`);
|
|
187
|
-
if (libraryNames.length > 0) {
|
|
188
|
-
publishSpinnerGroup = createSpinnerGroup({
|
|
189
|
-
items: libraryNames,
|
|
190
|
-
concurrent: true,
|
|
191
|
-
color: "magenta"
|
|
192
|
-
});
|
|
193
|
-
for (const spinner of publishSpinnerGroup.spinners) {
|
|
194
|
-
spinner.start();
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
const tasks = libsEntries.map(([libName, libConfig], index) => {
|
|
199
|
-
return async () => {
|
|
200
|
-
const publishSpinner = publishSpinnerGroup?.spinners[index];
|
|
201
|
-
try {
|
|
202
|
-
const folderName = extractFolderName(libName, libConfig);
|
|
203
|
-
const libBaseDir = path.resolve(PROJECT_ROOT, libsDirDist, folderName);
|
|
204
|
-
const npmOutDir = path.join(libBaseDir, "npm");
|
|
205
|
-
const jsrOutDir = path.join(libBaseDir, "jsr");
|
|
206
|
-
if (!commonPubPause && !libConfig.libPubPause) {
|
|
207
|
-
const effectivePubRegistry = libConfig.libPubRegistry || commonPubRegistry;
|
|
208
|
-
await library_publishLibrary(
|
|
209
|
-
effectivePubRegistry,
|
|
210
|
-
libName,
|
|
211
|
-
npmOutDir,
|
|
212
|
-
jsrOutDir,
|
|
213
|
-
distJsrDryRun,
|
|
214
|
-
distJsrFailOnWarn,
|
|
215
|
-
distJsrAllowDirty,
|
|
216
|
-
distJsrSlowTypes,
|
|
217
|
-
isDev,
|
|
218
|
-
timer,
|
|
219
|
-
shouldShowSpinner
|
|
220
|
-
);
|
|
221
|
-
if (publishSpinner) {
|
|
222
|
-
publishSpinner.succeed(`${libName} published to ${effectivePubRegistry} successfully`);
|
|
223
|
-
}
|
|
224
|
-
} else if (libConfig.libPubPause && !commonPubPause) {
|
|
225
|
-
relinka("verbose", `Publishing is paused for lib ${libName} (libPubPause: true)`);
|
|
226
|
-
if (publishSpinner) {
|
|
227
|
-
publishSpinner.info(`${libName} publish paused by configuration`);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
} catch (error) {
|
|
231
|
-
if (publishSpinner) {
|
|
232
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
233
|
-
publishSpinner.fail(`${libName} publish failed: ${errorMessage}`);
|
|
234
|
-
}
|
|
235
|
-
relinka(
|
|
236
|
-
"error",
|
|
237
|
-
`Failed to publish library ${libName}: ${error instanceof Error ? error.message : String(error)}`
|
|
238
|
-
);
|
|
239
|
-
throw error;
|
|
240
|
-
}
|
|
241
|
-
};
|
|
242
|
-
});
|
|
243
|
-
try {
|
|
244
|
-
await pAll(tasks, {
|
|
245
|
-
concurrency: CONCURRENCY_DEFAULT
|
|
246
|
-
});
|
|
247
|
-
relinka("verbose", "Completed libraries_publish");
|
|
248
|
-
} catch (error) {
|
|
249
|
-
if (timer) resumePerfTimer(timer);
|
|
250
|
-
throw error;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import path from "@reliverse/pathkit";
|
|
2
|
-
import fs from "@reliverse/relifso";
|
|
3
|
-
import { relinka } from "@reliverse/relinka";
|
|
4
|
-
import { glob } from "tinyglobby";
|
|
5
|
-
import { PROJECT_ROOT } from "../config/constants.js";
|
|
6
|
-
import { getConfigDler } from "../config/load.js";
|
|
7
|
-
import { applyMagicSpells } from "../magic/magic-apply.js";
|
|
8
|
-
import { resolveAllCrossLibs } from "../utils/resolve-cross-libs.js";
|
|
9
|
-
import { directoryExists, executeDlerHooks } from "./ppb-utils.js";
|
|
10
|
-
const ALIAS_TO_REPLACE = "~";
|
|
11
|
-
export async function dlerPostBuild(isDev, debugDontCopyNonBuildFiles) {
|
|
12
|
-
relinka("verbose", "\u2014 \u2014 \u2014 dlerPostBuild \u2014 \u2014 \u2014");
|
|
13
|
-
const config = await getConfigDler();
|
|
14
|
-
await resolveAllCrossLibs(
|
|
15
|
-
"package",
|
|
16
|
-
ALIAS_TO_REPLACE,
|
|
17
|
-
["npm", "jsr"],
|
|
18
|
-
config.buildPreExtensions,
|
|
19
|
-
config.buildTemplatesDir
|
|
20
|
-
);
|
|
21
|
-
if (!debugDontCopyNonBuildFiles) {
|
|
22
|
-
await wrapper_CopyNonBuildFiles(config);
|
|
23
|
-
}
|
|
24
|
-
if (isDev) {
|
|
25
|
-
await applyMagicSpells(["dist-jsr", "dist-npm", "dist-libs"]);
|
|
26
|
-
}
|
|
27
|
-
await executeDlerHooks(config?.hooksAfterBuild ?? [], "post-build");
|
|
28
|
-
if (config?.runAfterBuild?.length) {
|
|
29
|
-
const tools = createPostBuildToolRunner();
|
|
30
|
-
const availableTools = config.runAfterBuild.filter((toolName) => toolName in tools).map((toolName) => ({ toolName, ...tools[toolName] }));
|
|
31
|
-
for (const { name, run } of availableTools) {
|
|
32
|
-
relinka("verbose", `Running ${name}...`);
|
|
33
|
-
await run();
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
const distJsrPath = path.join(PROJECT_ROOT, config.distJsrDirName);
|
|
37
|
-
const distJsrBinPath = path.join(distJsrPath, "bin");
|
|
38
|
-
if (await directoryExists(distJsrPath) && await directoryExists(distJsrBinPath)) {
|
|
39
|
-
await compareFileStructures(
|
|
40
|
-
path.join(PROJECT_ROOT, config.coreEntrySrcDir),
|
|
41
|
-
distJsrPath,
|
|
42
|
-
isDev
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
export async function wrapper_CopyNonBuildFiles(config) {
|
|
47
|
-
if (config.commonPubRegistry === "npm" || config.commonPubRegistry === "npm-jsr") {
|
|
48
|
-
await copyNonBuildFiles(
|
|
49
|
-
path.join(PROJECT_ROOT, config.coreEntrySrcDir),
|
|
50
|
-
path.join(PROJECT_ROOT, config.distNpmDirName),
|
|
51
|
-
config.buildPreExtensions,
|
|
52
|
-
config.buildTemplatesDir
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
if (config.commonPubRegistry === "jsr" || config.commonPubRegistry === "npm-jsr") {
|
|
56
|
-
await copyNonBuildFiles(
|
|
57
|
-
path.join(PROJECT_ROOT, config.coreEntrySrcDir),
|
|
58
|
-
path.join(PROJECT_ROOT, config.distJsrDirName),
|
|
59
|
-
config.buildPreExtensions,
|
|
60
|
-
config.buildTemplatesDir
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
if (config.libsActMode === "libs-only" || config.libsActMode === "main-and-libs") {
|
|
64
|
-
for (const [_, libConfig] of Object.entries(config.libsList)) {
|
|
65
|
-
const srcPath = path.join(PROJECT_ROOT, config.libsDirSrc, libConfig.libDirName);
|
|
66
|
-
const distPath = path.join(PROJECT_ROOT, config.libsDirDist, libConfig.libDirName);
|
|
67
|
-
if (libConfig.libPubRegistry === "npm" || libConfig.libPubRegistry === "npm-jsr") {
|
|
68
|
-
await copyNonBuildFiles(
|
|
69
|
-
srcPath,
|
|
70
|
-
path.join(distPath, "npm"),
|
|
71
|
-
config.buildPreExtensions,
|
|
72
|
-
config.buildTemplatesDir
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
if (libConfig.libPubRegistry === "jsr" || libConfig.libPubRegistry === "npm-jsr") {
|
|
76
|
-
await copyNonBuildFiles(
|
|
77
|
-
srcPath,
|
|
78
|
-
path.join(distPath, "jsr"),
|
|
79
|
-
config.buildPreExtensions,
|
|
80
|
-
config.buildTemplatesDir
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
async function copyNonBuildFiles(srcDir, distDir, preExtensions, templatesDir) {
|
|
87
|
-
try {
|
|
88
|
-
const templatesDirs = await glob(`**/${templatesDir}`, {
|
|
89
|
-
cwd: srcDir,
|
|
90
|
-
onlyDirectories: true,
|
|
91
|
-
absolute: true
|
|
92
|
-
});
|
|
93
|
-
for (const templateDir of templatesDirs) {
|
|
94
|
-
const relativePath = path.relative(srcDir, templateDir);
|
|
95
|
-
const templatesDestPath = path.join(distDir, "bin", relativePath);
|
|
96
|
-
await fs.ensureDir(path.dirname(templatesDestPath));
|
|
97
|
-
await fs.copy(templateDir, templatesDestPath);
|
|
98
|
-
}
|
|
99
|
-
const files = await glob("**/*", {
|
|
100
|
-
cwd: srcDir,
|
|
101
|
-
ignore: [`**/${templatesDir}/**`]
|
|
102
|
-
});
|
|
103
|
-
for (const file of files) {
|
|
104
|
-
const ext = path.extname(file).slice(1);
|
|
105
|
-
if (!preExtensions.includes(ext)) {
|
|
106
|
-
const srcPath = path.join(srcDir, file);
|
|
107
|
-
const binDir = path.join(distDir, "bin");
|
|
108
|
-
const destPath = path.join(binDir, file);
|
|
109
|
-
await fs.ensureDir(path.dirname(destPath));
|
|
110
|
-
await fs.copy(srcPath, destPath);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
} catch (error) {
|
|
114
|
-
relinka(
|
|
115
|
-
"error",
|
|
116
|
-
`Error copying non-build files: ${error instanceof Error ? error.message : String(error)}`
|
|
117
|
-
);
|
|
118
|
-
throw error;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
async function compareFileStructures(srcDir, distDir, isDev) {
|
|
122
|
-
try {
|
|
123
|
-
const srcFiles = await glob("**/*", {
|
|
124
|
-
cwd: srcDir,
|
|
125
|
-
onlyFiles: true,
|
|
126
|
-
dot: true
|
|
127
|
-
});
|
|
128
|
-
const distBinDir = path.join(distDir, "bin");
|
|
129
|
-
const distFiles = await glob("**/*", {
|
|
130
|
-
cwd: distBinDir,
|
|
131
|
-
onlyFiles: true,
|
|
132
|
-
dot: true
|
|
133
|
-
});
|
|
134
|
-
const filteredSrcFiles = srcFiles.filter(
|
|
135
|
-
(file) => !file.endsWith(".test.ts") && !file.endsWith(".test.js")
|
|
136
|
-
);
|
|
137
|
-
const filteredDistFiles = distFiles.filter(
|
|
138
|
-
(file) => !file.endsWith(".test.ts") && !file.endsWith(".test.js")
|
|
139
|
-
);
|
|
140
|
-
const srcSet = new Set(filteredSrcFiles);
|
|
141
|
-
const distSet = new Set(filteredDistFiles);
|
|
142
|
-
const onlyInSrc = [...srcSet].filter((x) => !distSet.has(x));
|
|
143
|
-
const onlyInDist = [...distSet].filter((x) => !srcSet.has(x));
|
|
144
|
-
if ((onlyInSrc.length > 0 || onlyInDist.length > 0) && isDev) {
|
|
145
|
-
relinka("warn", "File structure differences detected between src and dist-jsr/bin:");
|
|
146
|
-
if (onlyInSrc.length > 0) {
|
|
147
|
-
relinka("warn", "Files only in src:");
|
|
148
|
-
for (const file of onlyInSrc) {
|
|
149
|
-
relinka("warn", ` - ${file}`);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
if (onlyInDist.length > 0) {
|
|
153
|
-
relinka("warn", "Files only in dist-jsr/bin:");
|
|
154
|
-
for (const file of onlyInDist) {
|
|
155
|
-
relinka("warn", ` - ${file}`);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
} catch (error) {
|
|
160
|
-
relinka(
|
|
161
|
-
"error",
|
|
162
|
-
`Error comparing file structures: ${error instanceof Error ? error.message : String(error)}`
|
|
163
|
-
);
|
|
164
|
-
throw error;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
const createPostBuildToolRunner = () => ({
|
|
168
|
-
"dler-check": {
|
|
169
|
-
name: "Dler Check",
|
|
170
|
-
async run() {
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type PackageManager = "bun" | "npm" | "yarn" | "pnpm";
|
|
2
|
-
export declare function getPackageManager(): Promise<PackageManager>;
|
|
3
|
-
/**
|
|
4
|
-
* Checks if a command is available in the system or package.json
|
|
5
|
-
* First checks package.json dependencies, then falls back to global command detection
|
|
6
|
-
*/
|
|
7
|
-
export declare function isCommandAvailable(command: string): Promise<boolean>;
|
|
8
|
-
/**
|
|
9
|
-
* Executes a shell command using the appropriate method based on the environment
|
|
10
|
-
*/
|
|
11
|
-
export declare function executeCommand(command: string): Promise<void>;
|
|
12
|
-
export declare function directoryExists(dirPath: string): Promise<boolean>;
|
|
13
|
-
/**
|
|
14
|
-
* Executes hooks with consistent error handling and logging
|
|
15
|
-
*/
|
|
16
|
-
export declare function executeDlerHooks(hooks: (() => Promise<void>)[], phase: "pre-build" | "post-build"): Promise<void>;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import fs from "@reliverse/relifso";
|
|
2
|
-
import { relinka } from "@reliverse/relinka";
|
|
3
|
-
import { selectPrompt } from "@reliverse/rempts";
|
|
4
|
-
import { $ } from "bun";
|
|
5
|
-
import { execa } from "execa";
|
|
6
|
-
import { lookpath } from "lookpath";
|
|
7
|
-
import { readPackageJSON } from "pkg-types";
|
|
8
|
-
const COMMAND_TO_PACKAGE = {
|
|
9
|
-
tsc: "typescript",
|
|
10
|
-
eslint: "eslint",
|
|
11
|
-
biome: "@biomejs/biome",
|
|
12
|
-
knip: "knip"
|
|
13
|
-
};
|
|
14
|
-
let selectedPackageManager = null;
|
|
15
|
-
export async function getPackageManager() {
|
|
16
|
-
if (selectedPackageManager) return selectedPackageManager;
|
|
17
|
-
if (process.versions.bun) {
|
|
18
|
-
selectedPackageManager = "bun";
|
|
19
|
-
return selectedPackageManager;
|
|
20
|
-
}
|
|
21
|
-
const result = await selectPrompt({
|
|
22
|
-
title: "Select package manager to use for running tools:",
|
|
23
|
-
options: [
|
|
24
|
-
{ label: "npm", value: "npm" },
|
|
25
|
-
{ label: "yarn", value: "yarn" },
|
|
26
|
-
{ label: "pnpm", value: "pnpm" }
|
|
27
|
-
]
|
|
28
|
-
});
|
|
29
|
-
selectedPackageManager = result;
|
|
30
|
-
return selectedPackageManager;
|
|
31
|
-
}
|
|
32
|
-
async function isCommandInPackageJson(command) {
|
|
33
|
-
try {
|
|
34
|
-
const packageJson = await readPackageJSON();
|
|
35
|
-
const packageName = COMMAND_TO_PACKAGE[command];
|
|
36
|
-
if (!packageName) return false;
|
|
37
|
-
return packageName in (packageJson.dependencies || {}) || packageName in (packageJson.devDependencies || {});
|
|
38
|
-
} catch (_error) {
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export async function isCommandAvailable(command) {
|
|
43
|
-
const packageName = COMMAND_TO_PACKAGE[command];
|
|
44
|
-
if (!packageName) return false;
|
|
45
|
-
if (await isCommandInPackageJson(command)) {
|
|
46
|
-
relinka("verbose", `[dlerPreBuild] Package "${packageName}" found in package.json`);
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
relinka(
|
|
50
|
-
"warn",
|
|
51
|
-
`[dlerPreBuild] Package "${packageName}" not found in package.json. Consider installing it as a dependency.`
|
|
52
|
-
);
|
|
53
|
-
return await lookpath(command) !== void 0;
|
|
54
|
-
}
|
|
55
|
-
export async function executeCommand(command) {
|
|
56
|
-
const [firstWord, ...rest] = command.split(" ").filter(Boolean);
|
|
57
|
-
if (!firstWord) return;
|
|
58
|
-
const pkgManagers = ["bun", "yarn", "pnpm", "npm"];
|
|
59
|
-
const isPkgManager = pkgManagers.includes(firstWord);
|
|
60
|
-
const cmd = isPkgManager ? rest[0] : firstWord;
|
|
61
|
-
const args = isPkgManager ? rest.slice(1) : rest;
|
|
62
|
-
if (!cmd) return;
|
|
63
|
-
const packageName = COMMAND_TO_PACKAGE[cmd];
|
|
64
|
-
if (packageName && await isCommandInPackageJson(cmd)) {
|
|
65
|
-
const pkgManager = isPkgManager ? firstWord : await getPackageManager();
|
|
66
|
-
if (process.versions.bun) {
|
|
67
|
-
await $`${pkgManager} ${cmd} ${args.join(" ")}`;
|
|
68
|
-
} else {
|
|
69
|
-
await execa(pkgManager, [cmd, ...args], { stdio: "inherit" });
|
|
70
|
-
}
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
if (process.versions.bun) {
|
|
74
|
-
await $`${cmd} ${args.join(" ")}`;
|
|
75
|
-
} else {
|
|
76
|
-
await execa(cmd, args, { stdio: "inherit" });
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
export async function directoryExists(dirPath) {
|
|
80
|
-
try {
|
|
81
|
-
return (await fs.stat(dirPath)).isDirectory();
|
|
82
|
-
} catch (error) {
|
|
83
|
-
if (error.code === "ENOENT") return false;
|
|
84
|
-
throw error;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
export async function executeDlerHooks(hooks, phase) {
|
|
88
|
-
if (!hooks.length) return;
|
|
89
|
-
relinka("verbose", `[dlerPreBuild] Running ${phase} hooks...`);
|
|
90
|
-
for (const hook of hooks) {
|
|
91
|
-
try {
|
|
92
|
-
await hook();
|
|
93
|
-
} catch (error) {
|
|
94
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
95
|
-
relinka("error", `[dlerPreBuild] Error in ${phase} hook: ${message}`);
|
|
96
|
-
throw error;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import path from "@reliverse/pathkit";
|
|
2
|
-
import fs from "@reliverse/relifso";
|
|
3
|
-
import { relinka } from "@reliverse/relinka";
|
|
4
|
-
import { glob } from "tinyglobby";
|
|
5
|
-
import { PROJECT_ROOT } from "../config/constants.js";
|
|
6
|
-
import { executeCommand, executeDlerHooks, isCommandAvailable } from "./ppb-utils.js";
|
|
7
|
-
const createToolRunner = () => ({
|
|
8
|
-
tsc: {
|
|
9
|
-
name: "TypeScript compiler",
|
|
10
|
-
run: () => executeCommand("tsc --noEmit")
|
|
11
|
-
},
|
|
12
|
-
eslint: {
|
|
13
|
-
name: "ESLint",
|
|
14
|
-
run: () => executeCommand("eslint --cache --fix .")
|
|
15
|
-
},
|
|
16
|
-
biome: {
|
|
17
|
-
name: "Biome",
|
|
18
|
-
run: () => executeCommand("biome check --fix --unsafe .")
|
|
19
|
-
},
|
|
20
|
-
knip: {
|
|
21
|
-
name: "Knip",
|
|
22
|
-
run: () => executeCommand("knip")
|
|
23
|
-
},
|
|
24
|
-
"dler-check": {
|
|
25
|
-
name: "Dler Check",
|
|
26
|
-
async run() {
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
async function copyFilesToTempDir(srcDir, tempDir, extensions, excludeDir) {
|
|
31
|
-
try {
|
|
32
|
-
await fs.ensureDir(tempDir);
|
|
33
|
-
const files = await glob("**/*", {
|
|
34
|
-
cwd: srcDir,
|
|
35
|
-
ignore: [`**/${excludeDir}/**`],
|
|
36
|
-
onlyFiles: true
|
|
37
|
-
});
|
|
38
|
-
for (const file of files) {
|
|
39
|
-
const ext = path.extname(file).slice(1);
|
|
40
|
-
if (extensions.includes(ext)) {
|
|
41
|
-
const srcPath = path.join(srcDir, file);
|
|
42
|
-
const destPath = path.join(tempDir, file);
|
|
43
|
-
await fs.ensureDir(path.dirname(destPath));
|
|
44
|
-
await fs.copy(srcPath, destPath);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
} catch (error) {
|
|
48
|
-
relinka(
|
|
49
|
-
"error",
|
|
50
|
-
`Error copying files to temp directory: ${error instanceof Error ? error.message : String(error)}`
|
|
51
|
-
);
|
|
52
|
-
throw error;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
export async function dlerPreBuild(config) {
|
|
56
|
-
relinka("verbose", "\u2014 \u2014 \u2014 dlerPreBuild \u2014 \u2014 \u2014");
|
|
57
|
-
await executeDlerHooks(config?.hooksBeforeBuild ?? [], "pre-build");
|
|
58
|
-
const tempDirs = {
|
|
59
|
-
npm: path.join(PROJECT_ROOT, "dist-tmp", "tmp-npm"),
|
|
60
|
-
jsr: path.join(PROJECT_ROOT, "dist-tmp", "tmp-jsr"),
|
|
61
|
-
libs: path.join(PROJECT_ROOT, "dist-tmp", "tmp-libs")
|
|
62
|
-
};
|
|
63
|
-
for (const dir of Object.values(tempDirs)) {
|
|
64
|
-
await fs.remove(dir);
|
|
65
|
-
}
|
|
66
|
-
if (config.commonPubRegistry === "npm" || config.commonPubRegistry === "npm-jsr") {
|
|
67
|
-
await copyFilesToTempDir(
|
|
68
|
-
path.join(PROJECT_ROOT, config.coreEntrySrcDir),
|
|
69
|
-
tempDirs.npm,
|
|
70
|
-
config.buildPreExtensions,
|
|
71
|
-
config.buildTemplatesDir
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
if (config.commonPubRegistry === "jsr" || config.commonPubRegistry === "npm-jsr") {
|
|
75
|
-
await copyFilesToTempDir(
|
|
76
|
-
path.join(PROJECT_ROOT, config.coreEntrySrcDir),
|
|
77
|
-
tempDirs.jsr,
|
|
78
|
-
config.buildPreExtensions,
|
|
79
|
-
config.buildTemplatesDir
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
if (config.libsActMode === "libs-only" || config.libsActMode === "main-and-libs") {
|
|
83
|
-
await copyFilesToTempDir(
|
|
84
|
-
path.join(PROJECT_ROOT, config.libsDirSrc),
|
|
85
|
-
tempDirs.libs,
|
|
86
|
-
config.buildPreExtensions,
|
|
87
|
-
config.buildTemplatesDir
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
if (!config?.runBeforeBuild?.length) return;
|
|
91
|
-
const tools = createToolRunner();
|
|
92
|
-
const availableTools = await Promise.all(
|
|
93
|
-
config.runBeforeBuild.map(async (toolName) => {
|
|
94
|
-
const tool = tools[toolName];
|
|
95
|
-
if (!tool) return null;
|
|
96
|
-
if (toolName === "dler-check") {
|
|
97
|
-
return { toolName, ...tool };
|
|
98
|
-
}
|
|
99
|
-
const isAvailable = await isCommandAvailable(toolName);
|
|
100
|
-
return isAvailable ? { toolName, ...tool } : null;
|
|
101
|
-
})
|
|
102
|
-
);
|
|
103
|
-
const commandsToRun = availableTools.filter(Boolean);
|
|
104
|
-
for (const { name, run } of commandsToRun) {
|
|
105
|
-
relinka("verbose", `Running ${name}...`);
|
|
106
|
-
await run();
|
|
107
|
-
}
|
|
108
|
-
}
|