@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
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { builtinModules } from "node:module";
|
|
2
|
-
const importRegexes = [
|
|
3
|
-
// ES modules
|
|
4
|
-
/import\s+(?:{[^}]*}|\*\s+as\s+[^,]*|[^,{]*)\s+from\s+["']([^"']+)["']/g,
|
|
5
|
-
// Dynamic imports
|
|
6
|
-
/import\(["']([^"']+)["']\)/g,
|
|
7
|
-
// CommonJS requires
|
|
8
|
-
/require\(["']([^"']+)["']\)/g,
|
|
9
|
-
// Export from
|
|
10
|
-
/export\s+(?:{[^}]*}|\*)\s+from\s+["']([^"']+)["']/g
|
|
11
|
-
];
|
|
12
|
-
export const extractPackageNames = (fileContent) => {
|
|
13
|
-
const packageNames = /* @__PURE__ */ new Set();
|
|
14
|
-
for (const regex of importRegexes) {
|
|
15
|
-
let match;
|
|
16
|
-
const clonedRegex = new RegExp(regex.source, regex.flags);
|
|
17
|
-
for (; ; ) {
|
|
18
|
-
match = clonedRegex.exec(fileContent);
|
|
19
|
-
if (match === null) {
|
|
20
|
-
break;
|
|
21
|
-
}
|
|
22
|
-
const importPath = match[1];
|
|
23
|
-
if (importPath) {
|
|
24
|
-
const packageName = normalizePackageName(importPath);
|
|
25
|
-
if (packageName) {
|
|
26
|
-
packageNames.add(packageName);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return packageNames;
|
|
32
|
-
};
|
|
33
|
-
export const normalizePackageName = (importPath) => {
|
|
34
|
-
if (importPath.startsWith(".") || importPath.startsWith("/")) {
|
|
35
|
-
return null;
|
|
36
|
-
}
|
|
37
|
-
if (importPath.startsWith("@")) {
|
|
38
|
-
const scopedMatch = importPath.match(/^(@[^/]+\/[^/]+)/);
|
|
39
|
-
return scopedMatch ? scopedMatch[1] ?? null : null;
|
|
40
|
-
}
|
|
41
|
-
const match = importPath.match(/^([^/]+)/);
|
|
42
|
-
return match ? match[1] ?? null : null;
|
|
43
|
-
};
|
|
44
|
-
export const getListedDependencies = (packageJson) => {
|
|
45
|
-
const listedDependencies = /* @__PURE__ */ new Set();
|
|
46
|
-
const allDependencies = {
|
|
47
|
-
...packageJson.dependencies,
|
|
48
|
-
...packageJson.devDependencies,
|
|
49
|
-
...packageJson.peerDependencies,
|
|
50
|
-
...packageJson.optionalDependencies
|
|
51
|
-
};
|
|
52
|
-
for (const dep of Object.keys(allDependencies || {})) {
|
|
53
|
-
listedDependencies.add(dep);
|
|
54
|
-
}
|
|
55
|
-
return listedDependencies;
|
|
56
|
-
};
|
|
57
|
-
export const getBuiltinModules = () => new Set(builtinModules);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CheckResult, DirectoryType } from "../../../types/mod.js";
|
|
2
|
-
interface CheckNoDynamicImportsOptions {
|
|
3
|
-
directory: DirectoryType;
|
|
4
|
-
onProgress?: (current: number, total: number) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function checkNoDynamicImports(options: CheckNoDynamicImportsOptions): Promise<CheckResult>;
|
|
7
|
-
export {};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { promises as fs } from "node:fs";
|
|
2
|
-
import path from "@reliverse/pathkit";
|
|
3
|
-
import { relinka } from "@reliverse/relinka";
|
|
4
|
-
import { glob } from "tinyglobby";
|
|
5
|
-
import { validateDirectory } from "../../../utils/utils-fs.js";
|
|
6
|
-
function isDirectoryType(value) {
|
|
7
|
-
return typeof value === "string" && ["src", "dist-npm", "dist-jsr", "dist-libs/npm", "dist-libs/jsr"].includes(value);
|
|
8
|
-
}
|
|
9
|
-
export async function checkNoDynamicImports(options) {
|
|
10
|
-
const { directory, onProgress } = options;
|
|
11
|
-
if (!isDirectoryType(directory)) {
|
|
12
|
-
relinka("error", `Invalid directory type: ${directory}`);
|
|
13
|
-
return {
|
|
14
|
-
success: false,
|
|
15
|
-
issues: [
|
|
16
|
-
{
|
|
17
|
-
type: "file-extension",
|
|
18
|
-
file: String(directory),
|
|
19
|
-
line: 0,
|
|
20
|
-
column: 0,
|
|
21
|
-
message: `Invalid directory type: ${directory}`
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
stats: {
|
|
25
|
-
filesChecked: 0,
|
|
26
|
-
importsChecked: 0,
|
|
27
|
-
timeElapsed: 0
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
if (!await validateDirectory(directory)) {
|
|
32
|
-
relinka("error", `Directory "${directory}" does not exist or is not accessible`);
|
|
33
|
-
return {
|
|
34
|
-
success: false,
|
|
35
|
-
issues: [
|
|
36
|
-
{
|
|
37
|
-
type: "file-extension",
|
|
38
|
-
file: directory,
|
|
39
|
-
line: 0,
|
|
40
|
-
column: 0,
|
|
41
|
-
message: `Directory "${directory}" does not exist or is not accessible`
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
stats: {
|
|
45
|
-
filesChecked: 0,
|
|
46
|
-
importsChecked: 0,
|
|
47
|
-
timeElapsed: 0
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
const startTime = Date.now();
|
|
52
|
-
const issues = [];
|
|
53
|
-
const files = await glob("**/*.{ts,tsx,js,jsx}", {
|
|
54
|
-
cwd: directory,
|
|
55
|
-
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
56
|
-
});
|
|
57
|
-
for (let i = 0; i < files.length; i++) {
|
|
58
|
-
const file = files[i];
|
|
59
|
-
onProgress?.(i + 1, files.length);
|
|
60
|
-
const filePath = path.join(directory, file);
|
|
61
|
-
const content = await fs.readFile(filePath, "utf-8");
|
|
62
|
-
const lines = content.split("\n");
|
|
63
|
-
const dynamicImportRegex = /await\s+import\s*\(/g;
|
|
64
|
-
let match;
|
|
65
|
-
while (true) {
|
|
66
|
-
match = dynamicImportRegex.exec(content);
|
|
67
|
-
if (!match) break;
|
|
68
|
-
const lineNumber = content.substring(0, match.index).split("\n").length;
|
|
69
|
-
const lineContent = lines[lineNumber - 1] ?? "";
|
|
70
|
-
const column = match.index - content.lastIndexOf("\n", match.index);
|
|
71
|
-
issues.push({
|
|
72
|
-
type: "file-extension",
|
|
73
|
-
file,
|
|
74
|
-
line: lineNumber,
|
|
75
|
-
column,
|
|
76
|
-
message: `Dynamic import found: ${lineContent.trim()}. Consider using static imports for better tree-shaking, type inference, and performance.`
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return {
|
|
81
|
-
success: issues.length === 0,
|
|
82
|
-
issues,
|
|
83
|
-
stats: {
|
|
84
|
-
filesChecked: files.length,
|
|
85
|
-
importsChecked: 0,
|
|
86
|
-
timeElapsed: Date.now() - startTime
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import path from "@reliverse/pathkit";
|
|
2
|
-
import { glob } from "tinyglobby";
|
|
3
|
-
export async function checkNoIndexFiles(options) {
|
|
4
|
-
const { directory } = options;
|
|
5
|
-
const startTime = Date.now();
|
|
6
|
-
const indexFiles = await glob("**/index.{ts,js}", {
|
|
7
|
-
cwd: directory,
|
|
8
|
-
ignore: ["node_modules/**", "dist/**", ".git/**"]
|
|
9
|
-
});
|
|
10
|
-
const issues = [];
|
|
11
|
-
const stats = {
|
|
12
|
-
filesChecked: indexFiles.length,
|
|
13
|
-
importsChecked: 0,
|
|
14
|
-
timeElapsed: Date.now() - startTime
|
|
15
|
-
};
|
|
16
|
-
for (const file of indexFiles) {
|
|
17
|
-
const fullPath = path.join(directory, file);
|
|
18
|
-
const dirName = path.basename(path.dirname(file));
|
|
19
|
-
issues.push({
|
|
20
|
-
type: "no-index-files",
|
|
21
|
-
file: fullPath,
|
|
22
|
-
line: 1,
|
|
23
|
-
message: `Avoid using index.{ts,js} file names. Use descriptive names like mod.{ts,js} or ${dirName}-mod.{ts,js} instead. This reduces confusion, especially since TypeScript can resolve index files implicitly depending on the module resolution strategy.`
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return {
|
|
27
|
-
success: issues.length === 0,
|
|
28
|
-
issues,
|
|
29
|
-
stats
|
|
30
|
-
};
|
|
31
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { readPackageJSON } from "pkg-types";
|
|
2
|
-
export async function checkPackageJsonHealth() {
|
|
3
|
-
const startTime = Date.now();
|
|
4
|
-
const issues = [];
|
|
5
|
-
try {
|
|
6
|
-
const packageJson = await readPackageJSON();
|
|
7
|
-
if (!packageJson.name) {
|
|
8
|
-
issues.push({
|
|
9
|
-
type: "dler-config-health",
|
|
10
|
-
message: "package.json is missing 'name' field",
|
|
11
|
-
file: "package.json"
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
if (!packageJson.version) {
|
|
15
|
-
issues.push({
|
|
16
|
-
type: "dler-config-health",
|
|
17
|
-
message: "package.json is missing 'version' field",
|
|
18
|
-
file: "package.json"
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
if (packageJson.type !== "module") {
|
|
22
|
-
issues.push({
|
|
23
|
-
type: "dler-config-health",
|
|
24
|
-
message: "package.json must have 'type': 'module'",
|
|
25
|
-
file: "package.json"
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
if (!packageJson.keywords || !Array.isArray(packageJson.keywords) || packageJson.keywords.length === 0) {
|
|
29
|
-
issues.push({
|
|
30
|
-
type: "dler-config-health",
|
|
31
|
-
message: "package.json must have 'keywords' array with at least one keyword",
|
|
32
|
-
file: "package.json"
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
const forbiddenFields = ["bin", "exports", "files", "main", "module"];
|
|
36
|
-
for (const field of forbiddenFields) {
|
|
37
|
-
if (field in packageJson) {
|
|
38
|
-
issues.push({
|
|
39
|
-
type: "dler-config-health",
|
|
40
|
-
message: `package.json must not have '${field}' field (it is auto-generated by dler)`,
|
|
41
|
-
file: "package.json"
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
} catch (error) {
|
|
46
|
-
issues.push({
|
|
47
|
-
type: "dler-config-health",
|
|
48
|
-
message: `Failed to read/parse package.json: ${error instanceof Error ? error.message : "unknown error"}`,
|
|
49
|
-
file: "package.json"
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
success: issues.length === 0,
|
|
54
|
-
issues,
|
|
55
|
-
stats: {
|
|
56
|
-
filesChecked: 1,
|
|
57
|
-
importsChecked: 0,
|
|
58
|
-
timeElapsed: Date.now() - startTime
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { extname, getFileImportsExports } from "@reliverse/pathkit";
|
|
2
|
-
import fs from "@reliverse/relifso";
|
|
3
|
-
import { relinka } from "@reliverse/relinka";
|
|
4
|
-
import { ALLOWED_IMPORT_EXTENSIONS, STRICT_IMPORT_EXTENSIONS } from "../../rules-consts.js";
|
|
5
|
-
import { getAllFiles, getLineNumber } from "../../rules-utils.js";
|
|
6
|
-
function getAllowedImportExtensions(directory, strict) {
|
|
7
|
-
if (strict) {
|
|
8
|
-
return STRICT_IMPORT_EXTENSIONS[directory];
|
|
9
|
-
}
|
|
10
|
-
return ALLOWED_IMPORT_EXTENSIONS[directory];
|
|
11
|
-
}
|
|
12
|
-
export async function checkPathExtensions(options) {
|
|
13
|
-
const startTime = Date.now();
|
|
14
|
-
const issues = [];
|
|
15
|
-
const { directory, strict, onProgress } = options;
|
|
16
|
-
const allowedExts = getAllowedImportExtensions(directory, strict);
|
|
17
|
-
try {
|
|
18
|
-
const files = await getAllFiles(directory);
|
|
19
|
-
let totalImports = 0;
|
|
20
|
-
const importableFiles = files.filter((file) => {
|
|
21
|
-
const ext = extname(file);
|
|
22
|
-
return [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs"].includes(ext);
|
|
23
|
-
});
|
|
24
|
-
const batchSize = 20;
|
|
25
|
-
const batches = [];
|
|
26
|
-
for (let i = 0; i < importableFiles.length; i += batchSize) {
|
|
27
|
-
batches.push(importableFiles.slice(i, i + batchSize));
|
|
28
|
-
}
|
|
29
|
-
for (const [batchIndex, batch] of batches.entries()) {
|
|
30
|
-
const batchPromises = batch.map(async (file, fileIndex) => {
|
|
31
|
-
const globalIndex = batchIndex * batchSize + fileIndex;
|
|
32
|
-
onProgress?.(globalIndex + 1, importableFiles.length, file);
|
|
33
|
-
try {
|
|
34
|
-
const content = await fs.readFile(file, "utf8");
|
|
35
|
-
const imports = getFileImportsExports(content, {
|
|
36
|
-
kind: "import",
|
|
37
|
-
pathTypes: ["relative", "alias"]
|
|
38
|
-
});
|
|
39
|
-
totalImports += imports.length;
|
|
40
|
-
const fileIssues = [];
|
|
41
|
-
for (const imp of imports) {
|
|
42
|
-
if (!imp.source) continue;
|
|
43
|
-
const ext = extname(imp.source);
|
|
44
|
-
if (!allowedExts.includes(ext)) {
|
|
45
|
-
const isTypeScriptImport = ext === ".ts";
|
|
46
|
-
const isJsEnvironment = directory === "src" || directory === "dist-npm" || directory === "dist-libs/npm";
|
|
47
|
-
let message;
|
|
48
|
-
if (isTypeScriptImport && isJsEnvironment) {
|
|
49
|
-
message = `import uses .ts extension in javascript environment: ${imp.source} (use .js extension instead)`;
|
|
50
|
-
} else {
|
|
51
|
-
message = `import has disallowed extension "${ext}": ${imp.source} (allowed: ${allowedExts.join(", ")})`;
|
|
52
|
-
}
|
|
53
|
-
fileIssues.push({
|
|
54
|
-
file,
|
|
55
|
-
message,
|
|
56
|
-
type: "path-extension",
|
|
57
|
-
line: getLineNumber(content, imp.start)
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return { issues: fileIssues, importCount: imports.length };
|
|
62
|
-
} catch {
|
|
63
|
-
relinka("warn", `skipping unreadable file: ${file}`);
|
|
64
|
-
return { issues: [], importCount: 0 };
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
const batchResults = await Promise.all(batchPromises);
|
|
68
|
-
for (const result of batchResults) {
|
|
69
|
-
issues.push(...result.issues);
|
|
70
|
-
totalImports += result.importCount;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return {
|
|
74
|
-
success: issues.length === 0,
|
|
75
|
-
issues,
|
|
76
|
-
stats: {
|
|
77
|
-
filesChecked: importableFiles.length,
|
|
78
|
-
importsChecked: totalImports,
|
|
79
|
-
timeElapsed: Date.now() - startTime
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
} catch (error) {
|
|
83
|
-
throw new Error(
|
|
84
|
-
`failed to check path extensions: ${error instanceof Error ? error.message : "unknown error"}`
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { extname, getFileImportsExports } from "@reliverse/pathkit";
|
|
2
|
-
import fs from "@reliverse/relifso";
|
|
3
|
-
import { relinka } from "@reliverse/relinka";
|
|
4
|
-
import { getConfigDler } from "../../../config/load.js";
|
|
5
|
-
import { getAllFiles, getLineNumber } from "../../rules-utils.js";
|
|
6
|
-
export async function checkSelfInclude(options) {
|
|
7
|
-
const startTime = Date.now();
|
|
8
|
-
const issues = [];
|
|
9
|
-
const { directory, onProgress } = options;
|
|
10
|
-
const dirPath = directory;
|
|
11
|
-
try {
|
|
12
|
-
const packageJson = JSON.parse(await fs.readFile("package.json", "utf8"));
|
|
13
|
-
const packageName = packageJson.name;
|
|
14
|
-
const config = await getConfigDler();
|
|
15
|
-
const libsList = config.libsList || {};
|
|
16
|
-
let forbiddenImports = [];
|
|
17
|
-
if (dirPath === "dist-npm" || dirPath === "dist-jsr" || dirPath === "src") {
|
|
18
|
-
forbiddenImports = [packageName, ...Object.keys(libsList)];
|
|
19
|
-
} else if (dirPath === "dist-libs/npm" || dirPath === "dist-libs/jsr" || dirPath.startsWith("src/libs/")) {
|
|
20
|
-
const libDirName = dirPath.split("/").pop() || "";
|
|
21
|
-
const currentLib = Object.entries(libsList).find(
|
|
22
|
-
([, config2]) => config2.libDirName === libDirName
|
|
23
|
-
)?.[0];
|
|
24
|
-
if (currentLib) {
|
|
25
|
-
forbiddenImports = [packageName, currentLib];
|
|
26
|
-
} else {
|
|
27
|
-
forbiddenImports = [packageName];
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
const files = await getAllFiles(directory);
|
|
31
|
-
let totalImports = 0;
|
|
32
|
-
const importableFiles = files.filter((file) => {
|
|
33
|
-
const ext = extname(file);
|
|
34
|
-
return [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs"].includes(ext);
|
|
35
|
-
});
|
|
36
|
-
const batchSize = 20;
|
|
37
|
-
const batches = [];
|
|
38
|
-
for (let i = 0; i < importableFiles.length; i += batchSize) {
|
|
39
|
-
batches.push(importableFiles.slice(i, i + batchSize));
|
|
40
|
-
}
|
|
41
|
-
for (const [batchIndex, batch] of batches.entries()) {
|
|
42
|
-
const batchPromises = batch.map(async (file, fileIndex) => {
|
|
43
|
-
const globalIndex = batchIndex * batchSize + fileIndex;
|
|
44
|
-
onProgress?.(globalIndex + 1, importableFiles.length, file);
|
|
45
|
-
try {
|
|
46
|
-
const content = await fs.readFile(file, "utf8");
|
|
47
|
-
const imports = getFileImportsExports(content, {
|
|
48
|
-
kind: "import",
|
|
49
|
-
pathTypes: ["bare"]
|
|
50
|
-
});
|
|
51
|
-
totalImports += imports.length;
|
|
52
|
-
const fileIssues = [];
|
|
53
|
-
for (const imp of imports) {
|
|
54
|
-
if (!imp.source) continue;
|
|
55
|
-
for (const forbidden of forbiddenImports) {
|
|
56
|
-
if (imp.source.startsWith(forbidden)) {
|
|
57
|
-
fileIssues.push({
|
|
58
|
-
file,
|
|
59
|
-
message: `self-include detected: importing "${imp.source}" in ${directory} directory`,
|
|
60
|
-
type: "self-include",
|
|
61
|
-
line: getLineNumber(content, imp.start)
|
|
62
|
-
});
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return { issues: fileIssues, importCount: imports.length };
|
|
68
|
-
} catch {
|
|
69
|
-
relinka("warn", `skipping unreadable file: ${file}`);
|
|
70
|
-
return { issues: [], importCount: 0 };
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
const batchResults = await Promise.all(batchPromises);
|
|
74
|
-
for (const result of batchResults) {
|
|
75
|
-
issues.push(...result.issues);
|
|
76
|
-
totalImports += result.importCount;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
success: issues.length === 0,
|
|
81
|
-
issues,
|
|
82
|
-
stats: {
|
|
83
|
-
filesChecked: importableFiles.length,
|
|
84
|
-
importsChecked: totalImports,
|
|
85
|
-
timeElapsed: Date.now() - startTime
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
} catch (error) {
|
|
89
|
-
throw new Error(
|
|
90
|
-
`failed to check self-includes: ${error instanceof Error ? error.message : "unknown error"}`
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { readTSConfig } from "pkg-types";
|
|
2
|
-
export async function checkTsConfigHealth() {
|
|
3
|
-
const startTime = Date.now();
|
|
4
|
-
const issues = [];
|
|
5
|
-
try {
|
|
6
|
-
const tsconfig = await readTSConfig();
|
|
7
|
-
const moduleResolution = tsconfig?.compilerOptions?.moduleResolution;
|
|
8
|
-
if (!moduleResolution) {
|
|
9
|
-
issues.push({
|
|
10
|
-
type: "tsconfig-health",
|
|
11
|
-
message: "moduleResolution is not specified in tsconfig.json",
|
|
12
|
-
file: "tsconfig.json"
|
|
13
|
-
});
|
|
14
|
-
} else if (moduleResolution !== "bundler" && moduleResolution !== "nodenext") {
|
|
15
|
-
issues.push({
|
|
16
|
-
type: "tsconfig-health",
|
|
17
|
-
message: `unsupported moduleResolution: ${moduleResolution}. Only "bundler" and "nodenext" are supported`,
|
|
18
|
-
file: "tsconfig.json"
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
success: issues.length === 0,
|
|
23
|
-
issues,
|
|
24
|
-
stats: {
|
|
25
|
-
filesChecked: 1,
|
|
26
|
-
importsChecked: 0,
|
|
27
|
-
timeElapsed: Date.now() - startTime
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
} catch (error) {
|
|
31
|
-
throw new Error(
|
|
32
|
-
`failed to read tsconfig.json: ${error instanceof Error ? error.message : "unknown error"}`
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const ALLOWED_FILE_EXTENSIONS: {
|
|
2
|
-
readonly src: string[];
|
|
3
|
-
readonly "dist-npm": string[];
|
|
4
|
-
readonly "dist-jsr": string[];
|
|
5
|
-
readonly "dist-libs/npm": string[];
|
|
6
|
-
readonly "dist-libs/jsr": string[];
|
|
7
|
-
};
|
|
8
|
-
export declare const STRICT_FILE_EXTENSIONS: {
|
|
9
|
-
readonly src: string[];
|
|
10
|
-
readonly "dist-npm": string[];
|
|
11
|
-
readonly "dist-jsr": string[];
|
|
12
|
-
readonly "dist-libs/npm": string[];
|
|
13
|
-
readonly "dist-libs/jsr": string[];
|
|
14
|
-
};
|
|
15
|
-
export declare const ALLOWED_IMPORT_EXTENSIONS: {
|
|
16
|
-
readonly src: string[];
|
|
17
|
-
readonly "dist-npm": string[];
|
|
18
|
-
readonly "dist-jsr": string[];
|
|
19
|
-
readonly "dist-libs/npm": string[];
|
|
20
|
-
readonly "dist-libs/jsr": string[];
|
|
21
|
-
};
|
|
22
|
-
export declare const STRICT_IMPORT_EXTENSIONS: {
|
|
23
|
-
readonly src: string[];
|
|
24
|
-
readonly "dist-npm": string[];
|
|
25
|
-
readonly "dist-jsr": string[];
|
|
26
|
-
readonly "dist-libs/npm": string[];
|
|
27
|
-
readonly "dist-libs/jsr": string[];
|
|
28
|
-
};
|
|
29
|
-
export type AllowedFileExtensionsType = keyof typeof ALLOWED_FILE_EXTENSIONS;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export const ALLOWED_FILE_EXTENSIONS = {
|
|
2
|
-
src: ["", ".ts", ".css", ".json"],
|
|
3
|
-
// ✅ .ts files allowed in src
|
|
4
|
-
"dist-npm": ["", ".js", ".css", ".json"],
|
|
5
|
-
// ❌ no .ts files in npm dist
|
|
6
|
-
"dist-jsr": ["", ".ts", ".css", ".json"],
|
|
7
|
-
// ✅ .ts files allowed in jsr dist
|
|
8
|
-
"dist-libs/npm": ["", ".js", ".css", ".json"],
|
|
9
|
-
// ❌ no .ts files in npm libs
|
|
10
|
-
"dist-libs/jsr": ["", ".ts", ".css", ".json"]
|
|
11
|
-
// ✅ .ts files allowed in jsr libs
|
|
12
|
-
};
|
|
13
|
-
export const STRICT_FILE_EXTENSIONS = {
|
|
14
|
-
src: [".ts", ".css", ".json"],
|
|
15
|
-
// ✅ .ts files required in src
|
|
16
|
-
"dist-npm": [".js", ".css", ".json"],
|
|
17
|
-
// ❌ no .ts files in npm dist
|
|
18
|
-
"dist-jsr": [".ts", ".css", ".json"],
|
|
19
|
-
// ✅ .ts files required in jsr dist
|
|
20
|
-
"dist-libs/npm": [".js", ".css", ".json"],
|
|
21
|
-
// ❌ no .ts files in npm libs
|
|
22
|
-
"dist-libs/jsr": [".ts", ".css", ".json"]
|
|
23
|
-
// ✅ .ts files required in jsr libs
|
|
24
|
-
};
|
|
25
|
-
export const ALLOWED_IMPORT_EXTENSIONS = {
|
|
26
|
-
src: ["", ".js", ".css", ".json"],
|
|
27
|
-
// ❌ no .ts imports (use .js)
|
|
28
|
-
"dist-npm": ["", ".js", ".css", ".json"],
|
|
29
|
-
// ❌ no .ts imports
|
|
30
|
-
"dist-jsr": ["", ".ts", ".css", ".json"],
|
|
31
|
-
// ✅ .ts imports allowed
|
|
32
|
-
"dist-libs/npm": ["", ".js", ".css", ".json"],
|
|
33
|
-
// ❌ no .ts imports
|
|
34
|
-
"dist-libs/jsr": ["", ".ts", ".css", ".json"]
|
|
35
|
-
// ✅ .ts imports allowed
|
|
36
|
-
};
|
|
37
|
-
export const STRICT_IMPORT_EXTENSIONS = {
|
|
38
|
-
src: [".js", ".css", ".json"],
|
|
39
|
-
// ❌ no .ts imports, no empty
|
|
40
|
-
"dist-npm": [".js", ".css", ".json"],
|
|
41
|
-
// ❌ no .ts imports
|
|
42
|
-
"dist-jsr": [".ts", ".css", ".json"],
|
|
43
|
-
// ✅ .ts imports required
|
|
44
|
-
"dist-libs/npm": [".js", ".css", ".json"],
|
|
45
|
-
// ❌ no .ts imports
|
|
46
|
-
"dist-libs/jsr": [".ts", ".css", ".json"]
|
|
47
|
-
// ✅ .ts imports required
|
|
48
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { relinka } from "@reliverse/relinka";
|
|
2
|
-
export function displayCheckResults(checkType, directory, result) {
|
|
3
|
-
const { success, issues, stats } = result;
|
|
4
|
-
if (success) {
|
|
5
|
-
relinka("success", `\u2713 ${checkType} check passed for ${directory}`);
|
|
6
|
-
relinka(
|
|
7
|
-
"info",
|
|
8
|
-
` files checked: ${stats.filesChecked}, imports: ${stats.importsChecked}, time: ${stats.timeElapsed}ms`
|
|
9
|
-
);
|
|
10
|
-
} else {
|
|
11
|
-
relinka("error", `\u2717 ${checkType} check failed for ${directory} (${issues.length} issues)`);
|
|
12
|
-
const fileIssues = issues.filter((i) => i.type === "file-extension");
|
|
13
|
-
const pathIssues = issues.filter((i) => i.type === "path-extension");
|
|
14
|
-
const missingDepIssues = issues.filter((i) => i.type === "missing-dependency");
|
|
15
|
-
const builtinIssues = issues.filter((i) => i.type === "builtin-module");
|
|
16
|
-
const dlerConfigIssues = issues.filter((i) => i.type === "dler-config-health");
|
|
17
|
-
const selfIncludeIssues = issues.filter((i) => i.type === "self-include");
|
|
18
|
-
const noIndexIssues = issues.filter((i) => i.type === "no-index-files");
|
|
19
|
-
if (fileIssues.length > 0) {
|
|
20
|
-
relinka("error", ` file extension issues (${fileIssues.length}):`);
|
|
21
|
-
for (const issue of fileIssues.slice(0, 10)) {
|
|
22
|
-
relinka("error", ` ${issue.file}: ${issue.message}`);
|
|
23
|
-
}
|
|
24
|
-
if (fileIssues.length > 10) {
|
|
25
|
-
relinka("error", ` ... and ${fileIssues.length - 10} more`);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
if (pathIssues.length > 0) {
|
|
29
|
-
relinka("error", ` import extension issues (${pathIssues.length}):`);
|
|
30
|
-
for (const issue of pathIssues.slice(0, 10)) {
|
|
31
|
-
relinka("error", ` ${issue.file}:${issue.line}: ${issue.message}`);
|
|
32
|
-
}
|
|
33
|
-
if (pathIssues.length > 10) {
|
|
34
|
-
relinka("error", ` ... and ${pathIssues.length - 10} more`);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
if (missingDepIssues.length > 0) {
|
|
38
|
-
relinka("error", ` missing dependencies (${missingDepIssues.length}):`);
|
|
39
|
-
for (const issue of missingDepIssues.slice(0, 10)) {
|
|
40
|
-
relinka("error", ` ${issue.message}`);
|
|
41
|
-
}
|
|
42
|
-
if (missingDepIssues.length > 10) {
|
|
43
|
-
relinka("error", ` ... and ${missingDepIssues.length - 10} more`);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
if (builtinIssues.length > 0) {
|
|
47
|
-
relinka("warn", ` builtin modules used (${builtinIssues.length}):`);
|
|
48
|
-
for (const issue of builtinIssues.slice(0, 10)) {
|
|
49
|
-
relinka("warn", ` ${issue.message}`);
|
|
50
|
-
}
|
|
51
|
-
if (builtinIssues.length > 10) {
|
|
52
|
-
relinka("warn", ` ... and ${builtinIssues.length - 10} more`);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
if (dlerConfigIssues.length > 0) {
|
|
56
|
-
relinka("error", ` dler configuration issues (${dlerConfigIssues.length}):`);
|
|
57
|
-
for (const issue of dlerConfigIssues.slice(0, 10)) {
|
|
58
|
-
relinka("error", ` ${issue.message}`);
|
|
59
|
-
}
|
|
60
|
-
if (dlerConfigIssues.length > 10) {
|
|
61
|
-
relinka("error", ` ... and ${dlerConfigIssues.length - 10} more`);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
if (selfIncludeIssues.length > 0) {
|
|
65
|
-
relinka("error", ` self-include issues (${selfIncludeIssues.length}):`);
|
|
66
|
-
for (const issue of selfIncludeIssues.slice(0, 10)) {
|
|
67
|
-
relinka("error", ` ${issue.file}:${issue.line}: ${issue.message}`);
|
|
68
|
-
}
|
|
69
|
-
if (selfIncludeIssues.length > 10) {
|
|
70
|
-
relinka("error", ` ... and ${selfIncludeIssues.length - 10} more`);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
if (noIndexIssues.length > 0) {
|
|
74
|
-
relinka("error", ` index file issues (${noIndexIssues.length}):`);
|
|
75
|
-
for (const issue of noIndexIssues.slice(0, 10)) {
|
|
76
|
-
relinka("error", ` ${issue.file}: ${issue.message}`);
|
|
77
|
-
}
|
|
78
|
-
if (noIndexIssues.length > 10) {
|
|
79
|
-
relinka("error", ` ... and ${noIndexIssues.length - 10} more`);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
relinka(
|
|
83
|
-
"info",
|
|
84
|
-
` stats: ${stats.filesChecked} files, ${stats.importsChecked} imports, ${stats.timeElapsed}ms`
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AllowedFileExtensionsType } from "./rules-consts";
|
|
2
|
-
export declare function shouldIgnoreFile(filePath: string): boolean;
|
|
3
|
-
export declare function getAllFiles(dir: AllowedFileExtensionsType, onProgress?: (current: number, total: number, file: string) => void): Promise<string[]>;
|
|
4
|
-
export declare function getLineNumber(content: string, position: number): number;
|