@reliverse/dler 1.7.153 → 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 -145
- 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 -25
- package/bin/impl/build/impl.js +0 -264
- 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/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 -13
- package/bin/impl/pub/impl.js +0 -261
- 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 -1469
- package/bin/impl/schema/mod.js +0 -366
- 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/impl/utils/workspace-prompt.d.ts +0 -9
- package/bin/impl/utils/workspace-prompt.js +0 -46
- package/bin/impl/utils/workspace-utils.d.ts +0 -28
- package/bin/impl/utils/workspace-utils.js +0 -127
- package/bin/mod.d.ts +0 -430
- package/bin/mod.js +0 -1025
package/bin/impl/rempts/cmd.js
DELETED
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
import path from "@reliverse/pathkit";
|
|
2
|
-
import fs from "@reliverse/relifso";
|
|
3
|
-
import { relinka } from "@reliverse/relinka";
|
|
4
|
-
import { createJiti } from "jiti";
|
|
5
|
-
export async function handleReliverseConfig() {
|
|
6
|
-
const dlerConfigPath = path.resolve("reliverse.ts");
|
|
7
|
-
let cmdsRoot = "src/app";
|
|
8
|
-
let cliFilePath = "";
|
|
9
|
-
try {
|
|
10
|
-
const jiti = createJiti(import.meta.url);
|
|
11
|
-
const dlerConfig = await jiti.import(dlerConfigPath, {
|
|
12
|
-
default: true
|
|
13
|
-
});
|
|
14
|
-
const coreIsCLI = dlerConfig?.coreIsCLI;
|
|
15
|
-
if (!coreIsCLI?.enabled || !coreIsCLI?.scripts) {
|
|
16
|
-
cliFilePath = await ensureCliFile("src/cli.ts");
|
|
17
|
-
cmdsRoot = "src/app";
|
|
18
|
-
} else {
|
|
19
|
-
const firstScript = Object.values(coreIsCLI.scripts)[0];
|
|
20
|
-
const scriptPath = path.resolve(firstScript);
|
|
21
|
-
if (await fs.pathExists(scriptPath)) {
|
|
22
|
-
const content = await fs.readFile(scriptPath, "utf8");
|
|
23
|
-
if (content.includes("@reliverse/rempts")) {
|
|
24
|
-
if (content.includes("runMain")) {
|
|
25
|
-
const cmdsRootMatch = content.match(/cmdsRootPath:\s*["']([^"']+)["']/);
|
|
26
|
-
if (cmdsRootMatch?.[1]) {
|
|
27
|
-
cmdsRoot = path.resolve(cmdsRootMatch[1]);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
} else {
|
|
31
|
-
relinka("warn", `${scriptPath} doesn't use @reliverse/rempts`);
|
|
32
|
-
cmdsRoot = "src/app";
|
|
33
|
-
}
|
|
34
|
-
} else {
|
|
35
|
-
cliFilePath = await ensureCliFile(scriptPath);
|
|
36
|
-
cmdsRoot = "src/app";
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
} catch {
|
|
40
|
-
cliFilePath = await ensureCliFile("src/cli.ts");
|
|
41
|
-
cmdsRoot = "src/app";
|
|
42
|
-
}
|
|
43
|
-
return { cmdsRoot: path.resolve(cmdsRoot), cliFile: cliFilePath };
|
|
44
|
-
}
|
|
45
|
-
export async function ensureCliFile(filePath) {
|
|
46
|
-
const resolvedPath = path.resolve(filePath);
|
|
47
|
-
if (!await fs.pathExists(resolvedPath)) {
|
|
48
|
-
await fs.ensureDir(path.dirname(resolvedPath));
|
|
49
|
-
await fs.writeFile(resolvedPath, cliTemplate, "utf8");
|
|
50
|
-
relinka("verbose", `\u2705 Created CLI entry file: ${resolvedPath}`);
|
|
51
|
-
return resolvedPath;
|
|
52
|
-
}
|
|
53
|
-
return "";
|
|
54
|
-
}
|
|
55
|
-
export async function findCommandDirs(root) {
|
|
56
|
-
const cmdDirs = [];
|
|
57
|
-
async function scan(dir) {
|
|
58
|
-
const entries = await fs.readdir(dir, { withFileTypes: true });
|
|
59
|
-
for (const entry of entries) {
|
|
60
|
-
const fullPath = path.join(dir, entry.name);
|
|
61
|
-
if (entry.isDirectory()) {
|
|
62
|
-
const hasCmdTs = await fs.pathExists(path.join(fullPath, "cmd.ts"));
|
|
63
|
-
const hasCmdJs = await fs.pathExists(path.join(fullPath, "cmd.js"));
|
|
64
|
-
if (hasCmdTs || hasCmdJs) {
|
|
65
|
-
const relPath = path.relative(root, fullPath);
|
|
66
|
-
cmdDirs.push(relPath);
|
|
67
|
-
}
|
|
68
|
-
await scan(fullPath);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
await scan(root);
|
|
73
|
-
return cmdDirs;
|
|
74
|
-
}
|
|
75
|
-
export async function generateCommandArgsMap(cmdDirs) {
|
|
76
|
-
let interfaceContent = "// Argument types for each command based on their defineArgs\ninterface CommandArgsMap {\n";
|
|
77
|
-
for (const dir of cmdDirs) {
|
|
78
|
-
const cmdPath = path.join("src/app", dir, "cmd.ts");
|
|
79
|
-
try {
|
|
80
|
-
if (await fs.pathExists(cmdPath)) {
|
|
81
|
-
const content = await fs.readFile(cmdPath, "utf-8");
|
|
82
|
-
const args = extractArgsFromContent(content);
|
|
83
|
-
const keyName = dir.replace(/[/\\]/g, "_");
|
|
84
|
-
interfaceContent += ` "${keyName}": {
|
|
85
|
-
`;
|
|
86
|
-
if (args.length > 0) {
|
|
87
|
-
for (const arg of args) {
|
|
88
|
-
let tsType;
|
|
89
|
-
switch (arg.type) {
|
|
90
|
-
case "boolean":
|
|
91
|
-
tsType = "boolean";
|
|
92
|
-
break;
|
|
93
|
-
case "number":
|
|
94
|
-
tsType = "number";
|
|
95
|
-
break;
|
|
96
|
-
case "array":
|
|
97
|
-
tsType = "string[]";
|
|
98
|
-
break;
|
|
99
|
-
case "string":
|
|
100
|
-
if (arg.allowed) {
|
|
101
|
-
tsType = arg.allowed.map((v) => `"${v}"`).join(" | ");
|
|
102
|
-
} else {
|
|
103
|
-
tsType = "string";
|
|
104
|
-
}
|
|
105
|
-
break;
|
|
106
|
-
default:
|
|
107
|
-
tsType = "string";
|
|
108
|
-
}
|
|
109
|
-
const optional = arg.required ? "" : "?";
|
|
110
|
-
interfaceContent += ` ${arg.name}${optional}: ${tsType};
|
|
111
|
-
`;
|
|
112
|
-
}
|
|
113
|
-
} else {
|
|
114
|
-
interfaceContent += ` // No arguments defined
|
|
115
|
-
`;
|
|
116
|
-
}
|
|
117
|
-
interfaceContent += " };\n";
|
|
118
|
-
} else {
|
|
119
|
-
const keyName = dir.replace(/[/\\]/g, "_");
|
|
120
|
-
interfaceContent += ` "${keyName}": Record<string, unknown>;
|
|
121
|
-
`;
|
|
122
|
-
}
|
|
123
|
-
} catch (error) {
|
|
124
|
-
const keyName = dir.replace(/[/\\]/g, "_");
|
|
125
|
-
interfaceContent += ` "${keyName}": Record<string, unknown>;
|
|
126
|
-
`;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
interfaceContent += "}";
|
|
130
|
-
return interfaceContent;
|
|
131
|
-
}
|
|
132
|
-
export function extractArgsFromContent(content) {
|
|
133
|
-
const args = [];
|
|
134
|
-
const defineArgsMatch = content.match(/defineArgs\(\s*\{([\s\S]*?)\}\s*\)/);
|
|
135
|
-
if (!defineArgsMatch?.[1]) return args;
|
|
136
|
-
const argsBlock = defineArgsMatch[1];
|
|
137
|
-
const argMatches = argsBlock.matchAll(/(\w+):\s*\{([^}]*)\}/g);
|
|
138
|
-
for (const match of argMatches) {
|
|
139
|
-
const argName = match[1];
|
|
140
|
-
const argProps = match[2];
|
|
141
|
-
if (!argName || !argProps) continue;
|
|
142
|
-
const typeMatch = argProps.match(/type:\s*["']([^"']+)["']/);
|
|
143
|
-
const type = typeMatch?.[1] || "string";
|
|
144
|
-
const requiredMatch = argProps.match(/required:\s*(true|false)/);
|
|
145
|
-
const required = requiredMatch?.[1] === "true";
|
|
146
|
-
const defaultMatch = argProps.match(/default:\s*([^,\n]+)/);
|
|
147
|
-
let defaultValue;
|
|
148
|
-
if (defaultMatch?.[1]) {
|
|
149
|
-
const defaultStr = defaultMatch[1].trim();
|
|
150
|
-
try {
|
|
151
|
-
defaultValue = JSON.parse(defaultStr);
|
|
152
|
-
} catch {
|
|
153
|
-
defaultValue = defaultStr.replace(/["']/g, "");
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
const allowedMatch = argProps.match(/allowed:\s*\[([^\]]+)\]/);
|
|
157
|
-
let allowed;
|
|
158
|
-
if (allowedMatch?.[1]) {
|
|
159
|
-
allowed = allowedMatch[1].split(",").map((s) => s.trim().replace(/["']/g, ""));
|
|
160
|
-
}
|
|
161
|
-
args.push({
|
|
162
|
-
name: argName,
|
|
163
|
-
type,
|
|
164
|
-
required,
|
|
165
|
-
default: defaultValue,
|
|
166
|
-
allowed
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
return args;
|
|
170
|
-
}
|
|
171
|
-
export async function generateExports(cmdDirs) {
|
|
172
|
-
const lines = [
|
|
173
|
-
"// autogenerated by `dler rempts`",
|
|
174
|
-
"// don't edit this file manually",
|
|
175
|
-
"",
|
|
176
|
-
'import type { Command } from "@reliverse/rempts";',
|
|
177
|
-
"",
|
|
178
|
-
'import { callCmdImpl, getTypedCmdImpl, loadCommand } from "@reliverse/rempts";'
|
|
179
|
-
];
|
|
180
|
-
lines.push("", "// ========== TYPED COMMAND SYSTEM ==========", "");
|
|
181
|
-
const commandArgsMap = await generateCommandArgsMap(cmdDirs);
|
|
182
|
-
lines.push(commandArgsMap);
|
|
183
|
-
lines.push(
|
|
184
|
-
"",
|
|
185
|
-
"// Typed loadCommand wrapper with intellisense",
|
|
186
|
-
"export async function loadTypedCommand<T extends keyof CommandArgsMap>(",
|
|
187
|
-
" cmdName: T",
|
|
188
|
-
"): Promise<Command> {",
|
|
189
|
-
" return await loadCommand(cmdName as string);",
|
|
190
|
-
"}",
|
|
191
|
-
""
|
|
192
|
-
);
|
|
193
|
-
const traditionalExports = [
|
|
194
|
-
"",
|
|
195
|
-
"// ========== TRADITIONAL COMMAND EXPORTS (with typed intellisense) ==========",
|
|
196
|
-
""
|
|
197
|
-
];
|
|
198
|
-
for (const dir of cmdDirs) {
|
|
199
|
-
const funcName = "get" + dir.split(/[/\\]/).map((part) => part.charAt(0).toUpperCase() + part.slice(1).replace(/[^a-zA-Z0-9]/g, "")).join("") + "Cmd";
|
|
200
|
-
const keyName = dir.replace(/[/\\]/g, "_");
|
|
201
|
-
traditionalExports.push(
|
|
202
|
-
`export const ${funcName} = async (): Promise<Command> => loadTypedCommand("${keyName}");`
|
|
203
|
-
);
|
|
204
|
-
}
|
|
205
|
-
lines.push(...traditionalExports);
|
|
206
|
-
lines.push(
|
|
207
|
-
"",
|
|
208
|
-
"// Typed command functions with type safety",
|
|
209
|
-
"export async function callCmd<T extends keyof CommandArgsMap>(",
|
|
210
|
-
" cmdName: T,",
|
|
211
|
-
" args?: CommandArgsMap[T]",
|
|
212
|
-
"): Promise<void> {",
|
|
213
|
-
" await callCmdImpl<CommandArgsMap>(cmdName, args);",
|
|
214
|
-
"}",
|
|
215
|
-
"",
|
|
216
|
-
"export async function getTypedCmd<T extends keyof CommandArgsMap>(",
|
|
217
|
-
" cmdName: T",
|
|
218
|
-
"): Promise<{",
|
|
219
|
-
" command: Command;",
|
|
220
|
-
" run: (args?: CommandArgsMap[T]) => Promise<void>;",
|
|
221
|
-
"}> {",
|
|
222
|
-
" return await getTypedCmdImpl<CommandArgsMap>(cmdName);",
|
|
223
|
-
"}",
|
|
224
|
-
"",
|
|
225
|
-
"// Export type for external use",
|
|
226
|
-
"export type { CommandArgsMap };",
|
|
227
|
-
""
|
|
228
|
-
);
|
|
229
|
-
return lines.join("\n");
|
|
230
|
-
}
|
|
231
|
-
export function generateCommandTemplate(cmdName) {
|
|
232
|
-
return `import { defineCommand, defineArgs } from "@reliverse/rempts";
|
|
233
|
-
export default defineCommand({
|
|
234
|
-
meta: {
|
|
235
|
-
name: "${cmdName}",
|
|
236
|
-
version: "1.0.0",
|
|
237
|
-
description: "Describe what ${cmdName} command does.",
|
|
238
|
-
},
|
|
239
|
-
args: defineArgs({
|
|
240
|
-
exampleArg: {
|
|
241
|
-
type: "string",
|
|
242
|
-
default: "defaultValue",
|
|
243
|
-
description: "An example argument",
|
|
244
|
-
},
|
|
245
|
-
}),
|
|
246
|
-
async run({ args }) {
|
|
247
|
-
console.log("Command '${cmdName}' executed.");
|
|
248
|
-
console.log("Received args:", args);
|
|
249
|
-
},
|
|
250
|
-
});
|
|
251
|
-
`;
|
|
252
|
-
}
|
|
253
|
-
const cliTemplate = `import { defineCommand, runMain } from "@reliverse/rempts";
|
|
254
|
-
await runMain(
|
|
255
|
-
defineCommand({
|
|
256
|
-
// empty object activates file-based
|
|
257
|
-
// commands in the src/app directory
|
|
258
|
-
}),
|
|
259
|
-
);
|
|
260
|
-
`;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { getConfigDler } from "../../../config/load.js";
|
|
2
|
-
export async function checkReliverseConfigHealth() {
|
|
3
|
-
const startTime = Date.now();
|
|
4
|
-
const issues = [];
|
|
5
|
-
try {
|
|
6
|
-
const config = await getConfigDler();
|
|
7
|
-
const libsList = config.libsList || {};
|
|
8
|
-
for (const [, libConfig] of Object.entries(libsList)) {
|
|
9
|
-
const typedConfig = libConfig;
|
|
10
|
-
const mainFile = typedConfig.libMainFile;
|
|
11
|
-
if (mainFile && !mainFile.includes("/")) {
|
|
12
|
-
issues.push({
|
|
13
|
-
type: "dler-config-health",
|
|
14
|
-
message: `currently you should specify libsMainFile like "sdk/sdk-mod.ts" to get correct build, please correct "${mainFile}" to "${typedConfig.libDirName}/${mainFile}" to continue checks.`,
|
|
15
|
-
file: "reliverse.ts",
|
|
16
|
-
line: 0
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
} catch (error) {
|
|
21
|
-
issues.push({
|
|
22
|
-
type: "dler-config-health",
|
|
23
|
-
message: `failed to check libsMainFile format: ${error instanceof Error ? error.message : "unknown error"}`,
|
|
24
|
-
file: "reliverse.ts",
|
|
25
|
-
line: 0
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
success: issues.length === 0,
|
|
30
|
-
issues,
|
|
31
|
-
stats: {
|
|
32
|
-
filesChecked: 1,
|
|
33
|
-
importsChecked: 0,
|
|
34
|
-
timeElapsed: Date.now() - startTime
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { extname } from "@reliverse/pathkit";
|
|
2
|
-
import { ALLOWED_FILE_EXTENSIONS, STRICT_FILE_EXTENSIONS } from "../../rules-consts.js";
|
|
3
|
-
import { getAllFiles } from "../../rules-utils.js";
|
|
4
|
-
function getAllowedFileExtensions(directory, strict, moduleResolution) {
|
|
5
|
-
if (!strict) {
|
|
6
|
-
return ALLOWED_FILE_EXTENSIONS[directory];
|
|
7
|
-
}
|
|
8
|
-
if (moduleResolution === "bundler") {
|
|
9
|
-
return STRICT_FILE_EXTENSIONS[directory];
|
|
10
|
-
}
|
|
11
|
-
return STRICT_FILE_EXTENSIONS[directory];
|
|
12
|
-
}
|
|
13
|
-
export async function checkFileExtensions(options) {
|
|
14
|
-
const startTime = Date.now();
|
|
15
|
-
const issues = [];
|
|
16
|
-
const { directory, strict, moduleResolution, onProgress } = options;
|
|
17
|
-
const allowedExts = getAllowedFileExtensions(directory, strict, moduleResolution);
|
|
18
|
-
try {
|
|
19
|
-
const files = await getAllFiles(directory, onProgress);
|
|
20
|
-
const batchSize = 50;
|
|
21
|
-
const batches = [];
|
|
22
|
-
for (let i = 0; i < files.length; i += batchSize) {
|
|
23
|
-
batches.push(files.slice(i, i + batchSize));
|
|
24
|
-
}
|
|
25
|
-
for (const [batchIndex, batch] of batches.entries()) {
|
|
26
|
-
const batchPromises = batch.map(async (file, fileIndex) => {
|
|
27
|
-
const globalIndex = batchIndex * batchSize + fileIndex;
|
|
28
|
-
onProgress?.(globalIndex + 1, files.length, file);
|
|
29
|
-
const ext = extname(file);
|
|
30
|
-
if (!allowedExts.includes(ext)) {
|
|
31
|
-
let message = `file has disallowed extension "${ext}" (allowed: ${allowedExts.join(", ")})`;
|
|
32
|
-
if (ext === ".ts" && (directory === "dist-npm" || directory === "dist-libs/npm")) {
|
|
33
|
-
message = `typescript file found in javascript environment: ${file} (should be compiled to .js)`;
|
|
34
|
-
} else if (ext === ".js" && (directory === "src" || directory === "dist-jsr" || directory === "dist-libs/jsr")) {
|
|
35
|
-
message = `javascript file found in typescript environment: ${file} (should be .ts)`;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
file,
|
|
39
|
-
message,
|
|
40
|
-
type: "file-extension"
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
return null;
|
|
44
|
-
});
|
|
45
|
-
const batchResults = await Promise.all(batchPromises);
|
|
46
|
-
issues.push(...batchResults.filter(Boolean));
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
success: issues.length === 0,
|
|
50
|
-
issues,
|
|
51
|
-
stats: {
|
|
52
|
-
filesChecked: files.length,
|
|
53
|
-
importsChecked: 0,
|
|
54
|
-
timeElapsed: Date.now() - startTime
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
} catch (error) {
|
|
58
|
-
throw new Error(
|
|
59
|
-
`failed to check file extensions: ${error instanceof Error ? error.message : "unknown error"}`
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { findSourceFiles, readFile, readPackageJson } from "./filesystem.js";
|
|
2
|
-
import { extractPackageNames, getBuiltinModules, getListedDependencies } from "./parser.js";
|
|
3
|
-
export const analyzeDependencies = async (options) => {
|
|
4
|
-
const packageJson = await readPackageJson(options.directory);
|
|
5
|
-
const listedDependencies = getListedDependencies(packageJson);
|
|
6
|
-
const sourceFiles = await findSourceFiles(options.directory, options.ignorePatterns);
|
|
7
|
-
const builtinModules = getBuiltinModules();
|
|
8
|
-
const allDependencies = /* @__PURE__ */ new Set();
|
|
9
|
-
const devOnlyDependencies = /* @__PURE__ */ new Set();
|
|
10
|
-
const duplicateDependencies = /* @__PURE__ */ new Set();
|
|
11
|
-
if (packageJson.dependencies && packageJson.devDependencies) {
|
|
12
|
-
for (const dep of Object.keys(packageJson.dependencies)) {
|
|
13
|
-
if (packageJson.devDependencies[dep]) {
|
|
14
|
-
duplicateDependencies.add(dep);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
for (const filePath of sourceFiles) {
|
|
19
|
-
const fileContent = await readFile(filePath);
|
|
20
|
-
const packageNames = extractPackageNames(fileContent);
|
|
21
|
-
for (const packageName of packageNames) {
|
|
22
|
-
allDependencies.add(packageName);
|
|
23
|
-
if (packageJson.devDependencies?.[packageName] && !packageJson.dependencies?.[packageName] && !packageJson.peerDependencies?.[packageName] && !packageJson.optionalDependencies?.[packageName] && !builtinModules.has(packageName)) {
|
|
24
|
-
devOnlyDependencies.add(packageName);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const missingDependencies = /* @__PURE__ */ new Set();
|
|
29
|
-
const builtinModulesList = [];
|
|
30
|
-
for (const dependency of allDependencies) {
|
|
31
|
-
if (!listedDependencies.has(dependency)) {
|
|
32
|
-
if (builtinModules.has(dependency)) {
|
|
33
|
-
if (options.builtins) {
|
|
34
|
-
builtinModulesList.push(dependency);
|
|
35
|
-
}
|
|
36
|
-
} else {
|
|
37
|
-
missingDependencies.add(dependency);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
missingDependencies: Array.from(missingDependencies).sort(),
|
|
43
|
-
allDependencies: Array.from(allDependencies).sort(),
|
|
44
|
-
listedDependencies: Array.from(listedDependencies).sort(),
|
|
45
|
-
builtinModules: builtinModulesList.sort(),
|
|
46
|
-
devOnlyDependencies: Array.from(devOnlyDependencies).sort(),
|
|
47
|
-
duplicateDependencies: Array.from(duplicateDependencies).sort()
|
|
48
|
-
};
|
|
49
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { IGNORE_PATTERNS } from "../../../config/constants.js";
|
|
2
|
-
import { analyzeDependencies } from "./analyzer.js";
|
|
3
|
-
export async function checkMissingDependencies(options) {
|
|
4
|
-
const startTime = Date.now();
|
|
5
|
-
const issues = [];
|
|
6
|
-
const {
|
|
7
|
-
directory,
|
|
8
|
-
json = false,
|
|
9
|
-
builtins = true,
|
|
10
|
-
dev = false,
|
|
11
|
-
peer = false,
|
|
12
|
-
optional = false,
|
|
13
|
-
fix = false,
|
|
14
|
-
depth = 0
|
|
15
|
-
} = options;
|
|
16
|
-
try {
|
|
17
|
-
const result = await analyzeDependencies({
|
|
18
|
-
directory,
|
|
19
|
-
showAll: false,
|
|
20
|
-
ignorePatterns: Array.from(IGNORE_PATTERNS),
|
|
21
|
-
json,
|
|
22
|
-
builtins,
|
|
23
|
-
dev,
|
|
24
|
-
peer,
|
|
25
|
-
optional,
|
|
26
|
-
fix,
|
|
27
|
-
depth
|
|
28
|
-
});
|
|
29
|
-
for (const dep of result.missingDependencies) {
|
|
30
|
-
issues.push({
|
|
31
|
-
file: "package.json",
|
|
32
|
-
message: `missing dependency: ${dep}`,
|
|
33
|
-
type: "missing-dependency"
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
for (const dep of result.builtinModules) {
|
|
37
|
-
issues.push({
|
|
38
|
-
file: "package.json",
|
|
39
|
-
message: `using builtin module: ${dep}`,
|
|
40
|
-
type: "builtin-module"
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
success: issues.length === 0,
|
|
45
|
-
issues,
|
|
46
|
-
stats: {
|
|
47
|
-
filesChecked: result.allDependencies.length,
|
|
48
|
-
importsChecked: result.allDependencies.length,
|
|
49
|
-
timeElapsed: Date.now() - startTime
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
} catch (error) {
|
|
53
|
-
throw new Error(
|
|
54
|
-
`failed to check missing dependencies: ${error instanceof Error ? error.message : "unknown error"}`
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export type MissingDepsFileType = ".js" | ".jsx" | ".ts" | ".tsx";
|
|
2
|
-
export interface PackageJson {
|
|
3
|
-
name?: string;
|
|
4
|
-
dependencies?: Record<string, string>;
|
|
5
|
-
devDependencies?: Record<string, string>;
|
|
6
|
-
peerDependencies?: Record<string, string>;
|
|
7
|
-
optionalDependencies?: Record<string, string>;
|
|
8
|
-
}
|
|
9
|
-
export interface FinderOptions {
|
|
10
|
-
directory: string;
|
|
11
|
-
showAll: boolean;
|
|
12
|
-
ignorePatterns: string[];
|
|
13
|
-
json: boolean;
|
|
14
|
-
builtins: boolean;
|
|
15
|
-
dev: boolean;
|
|
16
|
-
peer: boolean;
|
|
17
|
-
optional: boolean;
|
|
18
|
-
fix: boolean;
|
|
19
|
-
depth: number;
|
|
20
|
-
}
|
|
21
|
-
export interface DependencyResult {
|
|
22
|
-
missingDependencies: string[];
|
|
23
|
-
allDependencies: string[];
|
|
24
|
-
listedDependencies: string[];
|
|
25
|
-
builtinModules: string[];
|
|
26
|
-
devOnlyDependencies: string[];
|
|
27
|
-
duplicateDependencies: string[];
|
|
28
|
-
}
|
|
File without changes
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { PackageJson } from "./deps-types";
|
|
2
|
-
export declare const findSourceFiles: (directory: string, ignorePatterns: string[]) => Promise<string[]>;
|
|
3
|
-
export declare const readFile: (filePath: string) => Promise<string>;
|
|
4
|
-
export declare const readPackageJson: (directory: string) => Promise<PackageJson>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import path from "@reliverse/pathkit";
|
|
2
|
-
import fs from "@reliverse/relifso";
|
|
3
|
-
import { glob } from "tinyglobby";
|
|
4
|
-
export const findSourceFiles = async (directory, ignorePatterns) => {
|
|
5
|
-
const pattern = `${directory}/**/*.{js,jsx,ts,tsx}`;
|
|
6
|
-
const defaultIgnores = [
|
|
7
|
-
"**/node_modules/**",
|
|
8
|
-
"**/.git/**",
|
|
9
|
-
"**/build/**",
|
|
10
|
-
"**/dist/**",
|
|
11
|
-
"**/dist-npm/**",
|
|
12
|
-
"**/dist-jsr/**",
|
|
13
|
-
"**/dist-libs/**",
|
|
14
|
-
"**/coverage/**"
|
|
15
|
-
];
|
|
16
|
-
const allIgnores = [...defaultIgnores, ...ignorePatterns];
|
|
17
|
-
return await glob(pattern, {
|
|
18
|
-
ignore: allIgnores,
|
|
19
|
-
absolute: true
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
export const readFile = async (filePath) => {
|
|
23
|
-
try {
|
|
24
|
-
return await fs.readFile(filePath, "utf8");
|
|
25
|
-
} catch (error) {
|
|
26
|
-
console.error(`Error reading file ${filePath}:`, error);
|
|
27
|
-
return "";
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
export const readPackageJson = async (directory) => {
|
|
31
|
-
const packageJsonPath = path.join(directory, "package.json");
|
|
32
|
-
try {
|
|
33
|
-
const content = await readFile(packageJsonPath);
|
|
34
|
-
return JSON.parse(content);
|
|
35
|
-
} catch (error) {
|
|
36
|
-
console.error("Error reading package.json:", error);
|
|
37
|
-
return {};
|
|
38
|
-
}
|
|
39
|
-
};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { re } from "@reliverse/relico";
|
|
2
|
-
export const formatOutput = (result, options) => {
|
|
3
|
-
if (options.json) {
|
|
4
|
-
return JSON.stringify(result, null, 2);
|
|
5
|
-
}
|
|
6
|
-
let output = "";
|
|
7
|
-
output += re.blueBright("\nMissing Dependencies Finder Results\n");
|
|
8
|
-
output += re.gray("---------------------------------------\n\n");
|
|
9
|
-
output += re.bold("Statistics:\n");
|
|
10
|
-
output += `${re.gray("\u2022 ")}Total dependencies found: ${result.allDependencies.length}
|
|
11
|
-
`;
|
|
12
|
-
output += `${re.gray("\u2022 ")}Listed in package.json: ${result.listedDependencies.length}
|
|
13
|
-
`;
|
|
14
|
-
output += `${re.gray("\u2022 ")}Missing from package.json: ${result.missingDependencies.length}
|
|
15
|
-
`;
|
|
16
|
-
if (options.builtins) {
|
|
17
|
-
output += `${re.gray("\u2022 ")}Node.js built-in modules: ${result.builtinModules.length}
|
|
18
|
-
`;
|
|
19
|
-
}
|
|
20
|
-
output += `${re.gray("\u2022 ")}Dev-only dependencies used in production: ${result.devOnlyDependencies.length}
|
|
21
|
-
`;
|
|
22
|
-
output += `${re.gray("\u2022 ")}Duplicate dependencies: ${result.duplicateDependencies.length}
|
|
23
|
-
`;
|
|
24
|
-
output += "\n";
|
|
25
|
-
if (result.duplicateDependencies.length > 0) {
|
|
26
|
-
output += re.yellowBright("\u26A0\uFE0F Duplicate Dependencies Found:\n");
|
|
27
|
-
output += re.yellow("These packages are listed in both dependencies and devDependencies.\n");
|
|
28
|
-
output += re.yellow(
|
|
29
|
-
"This can cause confusion and potential issues. Consider keeping them in only one section.\n\n"
|
|
30
|
-
);
|
|
31
|
-
for (const dep of result.duplicateDependencies) {
|
|
32
|
-
output += `${re.gray("\u2022 ")}${re.yellow(dep)}
|
|
33
|
-
`;
|
|
34
|
-
}
|
|
35
|
-
output += "\n";
|
|
36
|
-
}
|
|
37
|
-
if (result.devOnlyDependencies.length > 0) {
|
|
38
|
-
output += re.yellowBright("\u26A0\uFE0F Dev-only Dependencies Used in Production Code:\n");
|
|
39
|
-
output += re.yellow(
|
|
40
|
-
"These packages are only in devDependencies but are imported in your code.\n"
|
|
41
|
-
);
|
|
42
|
-
output += re.yellow("They will cause errors in production after bundling!\n\n");
|
|
43
|
-
for (const dep of result.devOnlyDependencies) {
|
|
44
|
-
output += `${re.gray("\u2022 ")}${re.yellow(dep)}
|
|
45
|
-
`;
|
|
46
|
-
}
|
|
47
|
-
output += "\n";
|
|
48
|
-
output += re.gray("To fix, move these to dependencies:\n");
|
|
49
|
-
output += re.cyan(`npm install ${result.devOnlyDependencies.join(" ")} --save
|
|
50
|
-
`);
|
|
51
|
-
}
|
|
52
|
-
if (result.missingDependencies.length > 0) {
|
|
53
|
-
output += re.redBright("Missing Dependencies:\n");
|
|
54
|
-
for (const dep of result.missingDependencies) {
|
|
55
|
-
output += `${re.gray("\u2022 ")}${re.yellow(dep)}
|
|
56
|
-
`;
|
|
57
|
-
}
|
|
58
|
-
output += "\n";
|
|
59
|
-
output += re.gray("To install, run:\n");
|
|
60
|
-
output += re.cyan(`npm install ${result.missingDependencies.join(" ")}
|
|
61
|
-
`);
|
|
62
|
-
} else {
|
|
63
|
-
output += re.greenBright("No missing dependencies found! \u2705\n\n");
|
|
64
|
-
}
|
|
65
|
-
if (options.builtins && result.builtinModules.length > 0) {
|
|
66
|
-
output += re.blueBright("Node.js Built-in Modules Used:\n");
|
|
67
|
-
for (const dep of result.builtinModules) {
|
|
68
|
-
output += `${re.gray("\u2022 ")}${re.blue(dep)}
|
|
69
|
-
`;
|
|
70
|
-
}
|
|
71
|
-
output += "\n";
|
|
72
|
-
}
|
|
73
|
-
if (options.showAll) {
|
|
74
|
-
output += re.bold("All Dependencies:\n");
|
|
75
|
-
output += re.gray("(\u2713 = listed in package.json, \u2717 = missing, \u26A0\uFE0F = dev-only, \u{1F504} = duplicate)\n");
|
|
76
|
-
for (const dep of result.allDependencies) {
|
|
77
|
-
const isListed = result.listedDependencies.includes(dep);
|
|
78
|
-
const isBuiltin = result.builtinModules.includes(dep);
|
|
79
|
-
const isDevOnly = result.devOnlyDependencies.includes(dep);
|
|
80
|
-
const isDuplicate = result.duplicateDependencies.includes(dep);
|
|
81
|
-
if (isDuplicate) {
|
|
82
|
-
output += `${re.gray("\u2022 ")}${re.yellow("\u{1F504} ")}${re.yellow(dep)}${re.gray(" (duplicate)")}
|
|
83
|
-
`;
|
|
84
|
-
} else if (isListed && !isDevOnly) {
|
|
85
|
-
output += `${re.gray("\u2022 ") + re.green("\u2713 ") + dep}
|
|
86
|
-
`;
|
|
87
|
-
} else if (isBuiltin) {
|
|
88
|
-
output += `${re.gray("\u2022 ")}${re.blue("\u26A1 ")}${dep}${re.gray(" (built-in)")}
|
|
89
|
-
`;
|
|
90
|
-
} else if (isDevOnly) {
|
|
91
|
-
output += `${re.gray("\u2022 ")}${re.yellow("\u26A0\uFE0F ")}${re.yellow(dep)}${re.gray(" (dev-only)")}
|
|
92
|
-
`;
|
|
93
|
-
} else {
|
|
94
|
-
output += `${re.gray("\u2022 ")}${re.red("\u2717 ")}${re.yellow(dep)}
|
|
95
|
-
`;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
output += "\n";
|
|
99
|
-
}
|
|
100
|
-
return output;
|
|
101
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { PackageJson } from "./deps-types";
|
|
2
|
-
export declare const extractPackageNames: (fileContent: string) => Set<string>;
|
|
3
|
-
export declare const normalizePackageName: (importPath: string) => string | null;
|
|
4
|
-
export declare const getListedDependencies: (packageJson: PackageJson) => Set<string>;
|
|
5
|
-
export declare const getBuiltinModules: () => Set<string>;
|