@reliverse/dler 1.7.62 → 1.7.63

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.
@@ -4,7 +4,28 @@ import { relinka } from "@reliverse/relinka";
4
4
  import { confirmPrompt } from "@reliverse/rempts";
5
5
  import { Value } from "@sinclair/typebox/value";
6
6
  import { execaCommand } from "execa";
7
- import { addDevDependency } from "../../../../sdk/sdk-impl/utils/pm/pm-api.js";
7
+ async function addDevDependency(pkgName, opts) {
8
+ const pkgPath = path.join(opts.cwd, "package.json");
9
+ let pkg;
10
+ try {
11
+ const { readPackageJSON } = await import("pkg-types");
12
+ pkg = await readPackageJSON(pkgPath);
13
+ } catch {
14
+ if (await fs.pathExists(pkgPath)) {
15
+ pkg = JSON.parse(await fs.readFile(pkgPath, "utf8"));
16
+ } else {
17
+ pkg = {};
18
+ }
19
+ }
20
+ if (!pkg.devDependencies) pkg.devDependencies = {};
21
+ if (!pkg.devDependencies[pkgName]) {
22
+ pkg.devDependencies[pkgName] = "latest";
23
+ await fs.writeFile(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
24
+ relinka("log", `Added ${pkgName} to devDependencies in ${pkgPath}`);
25
+ } else {
26
+ relinka("log", `${pkgName} already present in devDependencies in ${pkgPath}`);
27
+ }
28
+ }
8
29
  import { injectSectionComments } from "./rse-comments.js";
9
30
  import { cliDomainDocs } from "./rse-consts.js";
10
31
  import { UNKNOWN_VALUE, rseName, DEFAULT_DOMAIN, RSE_SCHEMA_DEV } from "./rse-consts.js";
@@ -56,7 +77,7 @@ export async function writeRseConfig(configPath, config, isDev, skipInstallPromp
56
77
  } else if (isDev) {
57
78
  importPath = "~/mod";
58
79
  } else {
59
- importPath = "@reliverse/rse";
80
+ importPath = "@reliverse/cfg";
60
81
  }
61
82
  const fileContent2 = `import { defineConfigRse } from "${importPath}";
62
83
  export default defineConfigRse(${objectLiteralWithComments});
@@ -64,12 +85,12 @@ export default defineConfigRse(${objectLiteralWithComments});
64
85
  await atomicWriteFile(configPath, fileContent2, backupPath2, tempPath2);
65
86
  await updateTsConfigInclude(path.dirname(configPath));
66
87
  if (!isDev && !skipInstallPrompt) {
67
- await addDevDependency("@reliverse/rse", {
88
+ await addDevDependency("@reliverse/cfg", {
68
89
  cwd: path.dirname(configPath)
69
90
  });
70
91
  relinka("verbose", "TS config written successfully");
71
92
  const shouldRunInstall = await confirmPrompt({
72
- title: "Run `bun install` now to install '@reliverse/rse'?",
93
+ title: "Run `bun install` now to install '@reliverse/cfg'?",
73
94
  defaultValue: true
74
95
  });
75
96
  if (shouldRunInstall) {
@@ -9,17 +9,16 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
9
9
  projectRepository?: string | undefined;
10
10
  projectDomain?: string | undefined;
11
11
  projectGitService?: "none" | "github" | "gitlab" | "bitbucket" | undefined;
12
- projectDeployService?: "none" | "deno" | "vercel" | "netlify" | "railway" | undefined;
13
- projectPackageManager?: "npm" | "bun" | "yarn" | "pnpm" | undefined;
14
- projectState?: "created" | "creating" | undefined;
12
+ projectDeployService?: "none" | "vercel" | "netlify" | "railway" | "deno" | undefined;
13
+ projectPackageManager?: "bun" | "pnpm" | "npm" | "yarn" | undefined;
14
+ projectState?: "creating" | "created" | undefined;
15
15
  projectCategory?: "browser" | "cli" | "unknown" | "website" | "vscode" | "library" | "mobile" | undefined;
16
16
  projectSubcategory?: "unknown" | "e-commerce" | "tool" | undefined;
17
- projectFramework?: "rempts" | "npm-jsr" | "vue" | "commander" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "cac" | "meow" | "yargs" | "webextension" | "browser-extension" | undefined;
17
+ projectFramework?: "rempts" | "npm-jsr" | "vue" | "svelte" | "unknown" | "vscode" | "nextjs" | "vite" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "commander" | "cac" | "meow" | "yargs" | "webextension" | "browser-extension" | undefined;
18
18
  projectTemplate?: "unknown" | "blefnk/relivator-nextjs-template" | "blefnk/relivator-docker-template" | "blefnk/next-react-ts-src-minimal" | "blefnk/all-in-one-nextjs-template" | "blefnk/create-t3-app" | "blefnk/create-next-app" | "blefnk/astro-starlight-template" | "blefnk/versator-nextjs-template" | "blefnk/relivator-lynxjs-template" | "blefnk/relivator-react-native-template" | "reliverse/template-browser-extension" | "microsoft/vscode-extension-samples" | "microsoft/vscode-extension-template" | "rsetarter-template" | "blefnk/deno-cli-tutorial" | undefined;
19
19
  projectTemplateDate?: string | undefined;
20
20
  features?: {
21
21
  commands?: string[] | undefined;
22
- ci?: boolean | undefined;
23
22
  i18n?: boolean | undefined;
24
23
  analytics?: boolean | undefined;
25
24
  themeMode?: "light" | "dark" | "dark-light" | undefined;
@@ -28,6 +27,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
28
27
  database?: boolean | undefined;
29
28
  testing?: boolean | undefined;
30
29
  docker?: boolean | undefined;
30
+ ci?: boolean | undefined;
31
31
  webview?: string[] | undefined;
32
32
  language?: string[] | undefined;
33
33
  themes?: string[] | undefined;
@@ -37,16 +37,16 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
37
37
  i18n?: "unknown" | "next-intl" | undefined;
38
38
  analytics?: "unknown" | "vercel" | undefined;
39
39
  authentication?: "unknown" | "better-auth" | "clerk" | "next-auth" | "supabase-auth" | "auth0" | undefined;
40
- api?: "rest" | "unknown" | "hono" | "trpc" | "graphql" | undefined;
41
- testing?: "bun" | "unknown" | "vitest" | "jest" | "playwright" | "cypress" | undefined;
40
+ api?: "unknown" | "hono" | "trpc" | "graphql" | "rest" | undefined;
41
+ testing?: "bun" | "jest" | "vitest" | "unknown" | "playwright" | "cypress" | undefined;
42
42
  stateManagement?: "unknown" | "zustand" | "jotai" | "redux-toolkit" | undefined;
43
43
  formManagement?: "unknown" | "react-hook-form" | "formik" | undefined;
44
- styling?: "sass" | "unknown" | "tailwind" | "styled-components" | "css-modules" | undefined;
44
+ styling?: "unknown" | "tailwind" | "styled-components" | "css-modules" | "sass" | undefined;
45
45
  uiComponents?: "unknown" | "shadcn-ui" | "chakra-ui" | "material-ui" | undefined;
46
46
  databaseLibrary?: "unknown" | "drizzle" | "prisma" | "supabase" | undefined;
47
- databaseProvider?: "sqlite" | "unknown" | "pg" | "mysql" | "mongodb" | undefined;
48
- linting?: "eslint" | "unknown" | undefined;
49
- formatting?: "biome" | "unknown" | undefined;
47
+ databaseProvider?: "pg" | "unknown" | "mysql" | "sqlite" | "mongodb" | undefined;
48
+ linting?: "unknown" | "eslint" | undefined;
49
+ formatting?: "unknown" | "biome" | undefined;
50
50
  payment?: "unknown" | "stripe" | undefined;
51
51
  monitoring?: "unknown" | "sentry" | undefined;
52
52
  logging?: "unknown" | "axiom" | undefined;
@@ -57,7 +57,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
57
57
  documentation?: "unknown" | "starlight" | "nextra" | undefined;
58
58
  icons?: "unknown" | "lucide" | undefined;
59
59
  mail?: "unknown" | "resend" | undefined;
60
- cache?: "unknown" | "redis" | undefined;
60
+ cache?: "redis" | "unknown" | undefined;
61
61
  storage?: "unknown" | "cloudflare" | undefined;
62
62
  cdn?: "unknown" | "cloudflare" | undefined;
63
63
  cms?: "unknown" | "contentlayer" | undefined;
@@ -67,7 +67,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
67
67
  dates?: "unknown" | "dayjs" | undefined;
68
68
  markdown?: "unknown" | "mdx" | undefined;
69
69
  security?: "unknown" | "auth" | undefined;
70
- routing?: "unknown" | "next" | "react-router" | "tanstack-router" | undefined;
70
+ routing?: "next" | "unknown" | "react-router" | "tanstack-router" | undefined;
71
71
  } | undefined;
72
72
  codeStyle?: {
73
73
  lineWidth?: number | undefined;
@@ -75,7 +75,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
75
75
  indentStyle?: "space" | "tab" | undefined;
76
76
  quoteMark?: "single" | "double" | undefined;
77
77
  semicolons?: boolean | undefined;
78
- trailingComma?: "none" | "all" | "es5" | undefined;
78
+ trailingComma?: "none" | "es5" | "all" | undefined;
79
79
  bracketSpacing?: boolean | undefined;
80
80
  arrowParens?: "always" | "avoid" | undefined;
81
81
  tabWidth?: number | undefined;
@@ -83,7 +83,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
83
83
  dontRemoveComments?: boolean | undefined;
84
84
  shouldAddComments?: boolean | undefined;
85
85
  typeOrInterface?: "type" | "interface" | "mixed" | undefined;
86
- importOrRequire?: "require" | "import" | "mixed" | undefined;
86
+ importOrRequire?: "import" | "require" | "mixed" | undefined;
87
87
  cjsToEsm?: boolean | undefined;
88
88
  modernize?: {
89
89
  replaceFs?: boolean | undefined;
@@ -96,7 +96,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
96
96
  importSymbol?: string | undefined;
97
97
  } | undefined;
98
98
  monorepo?: {
99
- type?: "none" | "bun" | "pnpm" | "turborepo" | "nx" | undefined;
99
+ type?: "none" | "bun" | "turborepo" | "nx" | "pnpm" | undefined;
100
100
  packages?: string[] | undefined;
101
101
  sharedPackages?: string[] | undefined;
102
102
  } | undefined;
@@ -111,9 +111,9 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
111
111
  customReposOnNewProject?: boolean | undefined;
112
112
  envComposerOpenBrowser?: boolean | undefined;
113
113
  repoBranch?: string | undefined;
114
- repoPrivacy?: "private" | "public" | "unknown" | undefined;
114
+ repoPrivacy?: "unknown" | "public" | "private" | undefined;
115
115
  projectArchitecture?: "unknown" | "fullstack" | "separated" | undefined;
116
- projectRuntime?: "node" | "bun" | "deno" | undefined;
116
+ projectRuntime?: "bun" | "node" | "deno" | undefined;
117
117
  skipPromptsUseAutoBehavior?: boolean | undefined;
118
118
  deployBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
119
119
  depsBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
@@ -1,5 +1,5 @@
1
1
  import { endPrompt, startPrompt } from "@reliverse/rempts";
2
- const version = "1.7.62";
2
+ const version = "1.7.63";
3
3
  export async function showStartPrompt(isDev) {
4
4
  await startPrompt({
5
5
  titleColor: "inverse",
package/package.json CHANGED
@@ -55,7 +55,7 @@
55
55
  "license": "MIT",
56
56
  "name": "@reliverse/dler",
57
57
  "type": "module",
58
- "version": "1.7.62",
58
+ "version": "1.7.63",
59
59
  "keywords": [
60
60
  "reliverse",
61
61
  "cli",