Skip to content

Commit 040455b

Browse files
committed
add many improvements & release 1.5.0
1 parent 7250661 commit 040455b

File tree

200 files changed

+1182
-8114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+1182
-8114
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ addons/**/premium/
1111
internal-docs/
1212
tests-runtime/
1313
logs.txt
14+
15+
.trigger

.vscode/settings.json

-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
]
3232
}
3333
},
34-
"files.associations": {
35-
"*.reliverse": "jsonc"
36-
},
3734
"typescript.enablePromptUseWorkspaceTsdk": true,
3835
"typescript.tsdk": "node_modules\\typescript\\lib"
3936
}

build.publish.ts

+7-8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import {
1616
import semver from "semver";
1717
import { fileURLToPath } from "url";
1818

19+
import { cliConfigJsonc, cliDomainDocs } from "~/app/constants.js";
20+
1921
import {
2022
pubConfig,
2123
getBunSourcemapOption,
@@ -174,15 +176,12 @@ async function bumpVersions(
174176
): Promise<boolean> => {
175177
try {
176178
// Handle JSON-like files
177-
if (/\.(json|jsonc|json5|reliverse)$/.test(filePath)) {
179+
if (/\.(json|jsonc|json5)$/.test(filePath)) {
178180
let parsed: { version?: string } | null = null;
179181

180182
if (filePath.endsWith(".json")) {
181183
parsed = destr(content);
182-
} else if (
183-
filePath.endsWith(".jsonc") ||
184-
filePath.endsWith(".reliverse") // TODO: current implementation doesn't work for `.reliverse` (JSONC)
185-
) {
184+
} else if (filePath.endsWith(".jsonc")) {
186185
parsed = parseJSONC(content);
187186
} else if (filePath.endsWith(".json5")) {
188187
parsed = parseJSON5(content);
@@ -406,7 +405,7 @@ function defineConfig(isJSR: boolean): BuildPublishConfig {
406405
async function createCommonPackageFields(): Promise<Partial<PackageJson>> {
407406
const originalPkg = await readPackageJSON();
408407
const { name, author, version, license, description, keywords } = originalPkg;
409-
const pkgHomepage = "https://docs.reliverse.org/cli";
408+
const pkgHomepage = cliDomainDocs;
410409
const commonFields: Partial<PackageJson> = {
411410
name,
412411
version,
@@ -642,7 +641,7 @@ async function renameTsxFiles(dir: string): Promise<void> {
642641
async function createJsrConfig(outdirRoot: string): Promise<void> {
643642
const originalPkg = await readPackageJSON();
644643
const { author, name, version, license, description } = originalPkg;
645-
const pkgHomepage = "https://docs.reliverse.org/cli";
644+
const pkgHomepage = cliDomainDocs;
646645
const jsrConfig = {
647646
name,
648647
author,
@@ -672,7 +671,7 @@ async function copyJsrFiles(outdirRoot: string): Promise<void> {
672671
await createJsrConfig(outdirRoot);
673672

674673
const jsrFiles = [
675-
".reliverse",
674+
cliConfigJsonc,
676675
"bun.lock",
677676
"drizzle.config.ts",
678677
"schema.json",

bun.lock

+762-175
Large diffs are not rendered by default.

cspell.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.4.70",
2+
"version": "1.5.0",
33
"language": "en",
44
"ignorePaths": [
55
"**/*.lock",

drizzle.config.ts

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import { defineConfig } from "drizzle-kit";
2-
import os from "os";
3-
import path from "pathe";
42

5-
const homeDir = os.homedir();
6-
const dbPath = path.join(homeDir, ".reliverse", "reliverse.db");
3+
import { memoryPath } from "~/app/constants.js";
74

85
export default defineConfig({
96
out: "./drizzle",
10-
schema: "./src/app/db/schema.ts",
117
dialect: "sqlite",
12-
dbCredentials: {
13-
url: `file:${dbPath}`,
14-
},
8+
schema: "./src/app/db/schema.ts",
9+
dbCredentials: { url: `file:${memoryPath}` },
1510
});

eslint.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const config = tseslint.config(
3838
"no-relative-import-paths": noRelativeImportPaths,
3939
},
4040
rules: {
41+
"@typescript-eslint/require-await": "off",
42+
"@typescript-eslint/no-dynamic-delete": "off",
4143
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
4244
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
4345
"@typescript-eslint/no-base-to-string": "off",

package.json

+61-32
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@reliverse/cli",
33
"author": "reliverse",
4-
"version": "1.4.70",
4+
"version": "1.5.0",
55
"type": "module",
66
"license": "MIT",
77
"keywords": ["cli"],
@@ -12,6 +12,7 @@
1212
"dev:logout": "bun src/main.ts logout",
1313
"dev:schema": "bun src/main.ts schema",
1414
"dev:update": "bun src/main.ts update",
15+
"dev:trigger": "bun x trigger.dev@latest dev",
1516
"check": "bun typecheck && bun lint && bun format",
1617
"pub": "bun build.publish.ts",
1718
"typecheck": "tsc --noEmit",
@@ -22,15 +23,17 @@
2223
"unpub": "npm unpublish",
2324
"test": "vitest",
2425
"knip": "knip",
26+
"clean": "rm -rf node_modules",
2527
"latest": "bun latest.ts && bun check"
2628
},
2729
"dependencies": {
2830
"@ai-sdk/openai": "^1.1.9",
2931
"@clack/core": "^0.4.1",
3032
"@clack/prompts": "^0.10.0",
31-
"@figliolia/chalk-animation": "^1.0.4",
33+
"@date-fns/utc": "^2.1.0",
3234
"@libsql/client": "^0.14.0",
3335
"@octokit/rest": "^21.1.0",
36+
"@paralleldrive/cuid2": "^2.2.2",
3437
"@reliverse/core": "^0.1.0",
3538
"@reliverse/fs": "^0.6.0",
3639
"@reliverse/prompts": "^1.4.18",
@@ -43,33 +46,48 @@
4346
"@rollup/plugin-replace": "^6.0.2",
4447
"@rollup/pluginutils": "^5.1.4",
4548
"@sinclair/typebox": "^0.34.16",
46-
"@types/minimist": "^1.2.5",
47-
"@types/mute-stream": "^0.0.4",
49+
"@trigger.dev/sdk": "^3.3.14",
50+
"@trpc/client": "^11.0.0-rc.761",
51+
"@trpc/next": "^11.0.0-rc.761",
52+
"@trpc/react-query": "^11.0.0-rc.761",
53+
"@trpc/server": "^11.0.0-rc.761",
4854
"@vercel/sdk": "^1.3.1",
4955
"@vitejs/plugin-react": "^4.3.4",
50-
"ai": "^4.1.25",
51-
"async-listen": "^3.0.1",
56+
"ai": "^4.1.34",
57+
"async-listen": "^3.1.0",
5258
"better-sqlite3": "^11.8.1",
5359
"bun-types": "^1.2.2",
54-
"c12": "^2.0.1",
60+
"c12": "^2.0.2",
5561
"citty": "^0.1.6",
5662
"cli-spinners": "^3.2.0",
5763
"confbox": "^0.1.8",
5864
"consola": "^3.4.0",
5965
"cross-spawn": "^7.0.6",
66+
"csv-parse": "^5.6.0",
67+
"csv-stringify": "^6.5.2",
68+
"date-fns": "^4.1.0",
69+
"dedent": "^1.5.3",
6070
"defu": "^6.1.4",
6171
"destr": "^2.0.3",
6272
"detect-package-manager": "^3.0.2",
6373
"dotenv": "^16.4.7",
64-
"drizzle-orm": "^0.39.2",
65-
"esbuild": "^0.24.2",
74+
"dotenv-expand": "^12.0.1",
75+
"drizzle-orm": "^0.39.3",
76+
"esbuild": "^0.25.0",
6677
"escape-string-regexp": "^5.0.0",
6778
"execa": "^9.5.2",
79+
"fast-glob": "^3.3.3",
80+
"fast-xml-parser": "^4.5.1",
6881
"fs-extra": "^11.3.0",
6982
"geist": "^1.3.1",
70-
"globby": "^14.0.2",
83+
"gettext-parser": "^8.0.0",
84+
"globby": "^14.1.0",
7185
"hookable": "^5.5.3",
7286
"jiti": "^2.4.2",
87+
"jsdom": "^26.0.0",
88+
"json2php": "^0.0.12",
89+
"json5": "^2.2.3",
90+
"jsonrepair": "^3.12.0",
7391
"magic-regexp": "^0.8.0",
7492
"magic-string": "^0.30.17",
7593
"minimist": "^1.2.8",
@@ -84,88 +102,99 @@
84102
"open": "^10.1.0",
85103
"ora": "^8.2.0",
86104
"p-limit": "^6.2.0",
87-
"pathe": "^2.0.2",
105+
"pathe": "^2.0.3",
106+
"php-parser": "^3.2.2",
88107
"pkg-types": "^1.3.1",
108+
"plist": "^3.1.0",
89109
"pretty-bytes": "^6.1.1",
110+
"properties": "^1.2.1",
90111
"querystring": "^0.2.1",
112+
"rambda": "^9.4.2",
91113
"random-words": "^2.0.1",
92114
"react-router": "^7.1.5",
93115
"react-router-dom": "^7.1.5",
94-
"rollup": "^4.34.5",
116+
"rollup": "^4.34.6",
95117
"rollup-plugin-dts": "^6.1.1",
96118
"scule": "^1.3.0",
97119
"semver": "^7.7.1",
98120
"simple-git": "^3.27.0",
99121
"sort-package-json": "^2.14.0",
122+
"superjson": "^2.2.2",
123+
"table-layout": "^4.1.1",
100124
"tar-stream": "^3.1.7",
101125
"tasuku": "^2.0.1",
102126
"tinyglobby": "^0.2.10",
103127
"untyped": "^1.5.2",
104-
"wrap-ansi": "^9.0.0"
128+
"wrap-ansi": "^9.0.0",
129+
"xliff": "^6.2.1",
130+
"xml2js": "^0.6.2",
131+
"yaml": "^2.7.0",
132+
"zod": "^3.24.2"
105133
},
106134
"devDependencies": {
107135
"@auth/drizzle-adapter": "^1.7.4",
108136
"@auth/prisma-adapter": "^2.7.4",
109137
"@babel/plugin-transform-class-properties": "^7.25.9",
110138
"@biomejs/biome": "^1.9.4",
111-
"@cspell/dict-npm": "^5.1.24",
112-
"@eslint/js": "^9.19.0",
139+
"@cspell/dict-npm": "^5.1.26",
140+
"@eslint/js": "^9.20.0",
113141
"@eslint/json": "^0.10.0",
114142
"@eslint/markdown": "^6.2.2",
115143
"@planetscale/database": "^1.19.0",
116144
"@prisma/adapter-planetscale": "^6.3.1",
117145
"@prisma/client": "^6.3.1",
118146
"@react-router/dev": "^7.1.5",
119-
"@stylistic/eslint-plugin": "^3.0.1",
120-
"@swc/core": "^1.10.14",
147+
"@stylistic/eslint-plugin": "^3.1.0",
148+
"@swc/core": "^1.10.15",
121149
"@t3-oss/env-nextjs": "^0.12.0",
122150
"@tanstack/react-query": "^5.66.0",
123151
"@total-typescript/ts-reset": "^0.6.1",
124-
"@trpc/client": "^11.0.0-rc.744",
125-
"@trpc/next": "^11.0.0-rc.744",
126-
"@trpc/react-query": "^11.0.0-rc.744",
127-
"@trpc/server": "^11.0.0-rc.744",
152+
"@trigger.dev/build": "^3.3.14",
128153
"@types/better-sqlite3": "^7.6.12",
129154
"@types/bun": "^1.2.2",
130155
"@types/cross-spawn": "^6.0.6",
131156
"@types/eslint__js": "^8.42.3",
132157
"@types/fs-extra": "^11.0.4",
158+
"@types/gettext-parser": "^4.0.4",
159+
"@types/mdast": "^4.0.4",
160+
"@types/minimist": "^1.2.5",
161+
"@types/mute-stream": "^0.0.4",
133162
"@types/node": "^22.13.1",
163+
"@types/plist": "^3.0.5",
134164
"@types/react": "^19.0.8",
135165
"@types/react-dom": "^19.0.3",
136166
"@types/semver": "^7.5.8",
137167
"@types/strip-comments": "^2.0.4",
138168
"@types/tar-stream": "^3.1.3",
169+
"@types/xml2js": "^0.4.14",
139170
"@vitest/coverage-v8": "^3.0.5",
140171
"automd": "^0.3.12",
141172
"changelogen": "^0.5.7",
142173
"drizzle-kit": "^0.30.4",
143-
"eslint": "^9.19.0",
174+
"eslint": "^9.20.1",
144175
"eslint-plugin-no-relative-import-paths": "^1.6.1",
145176
"eslint-plugin-perfectionist": "^4.8.0",
146177
"eslint-plugin-react-hooks": "^5.1.0",
147-
"eslint-plugin-react-refresh": "^0.4.18",
178+
"eslint-plugin-react-refresh": "^0.4.19",
148179
"globals": "^15.14.0",
149-
"knip": "^5.43.6",
180+
"knip": "^5.44.0",
150181
"magicast": "^0.3.5",
151182
"mysql2": "^3.12.0",
152-
"next": "^15.1.6",
183+
"next": "^15.1.7",
153184
"next-auth": "^4.24.11",
154185
"postgres": "^3.4.5",
155-
"prettier": "^3.4.2",
186+
"prettier": "^3.5.0",
156187
"prettier-plugin-tailwindcss": "^0.6.11",
157188
"prisma": "^6.3.1",
158189
"react": "^19.0.0",
159190
"react-dom": "^19.0.0",
160-
"superjson": "^2.2.2",
161-
"tailwindcss": "^4.0.4",
191+
"tailwindcss": "^4.0.6",
162192
"tsx": "^4.19.2",
163-
"type-fest": "^4.33.0",
193+
"type-fest": "^4.34.1",
164194
"typescript": "^5.7.3",
165-
"typescript-eslint": "^8.23.0",
195+
"typescript-eslint": "^8.24.0",
166196
"unbuild": "^3.3.1",
167197
"vite-plugin-pages": "^0.32.4",
168-
"vitest": "^3.0.5",
169-
"zod": "^3.24.1"
198+
"vitest": "^3.0.5"
170199
}
171200
}

.reliverse reliverse.jsonc

+4-8
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"projectName": "@reliverse/cli",
99
"projectAuthor": "blefnk",
1010
"projectDescription": "This superapp CLI tool can help you easily create new web projects, manage existing projects, and automatically make advanced codebase modifications, with more features coming soon.",
11-
"version": "1.4.68",
11+
"version": "1.5.0",
1212
"projectLicense": "MIT",
1313
"projectState": "creating",
1414
"projectRepository": "https://github.com/reliverse/cli",
15-
"projectDomain": "https://docs.reliverse.org",
15+
"projectDomain": "https://docs.reliverse.org/cli",
1616
"projectCategory": "unknown",
1717
"projectSubcategory": "unknown",
1818
"projectTemplate": "unknown",
@@ -61,12 +61,8 @@
6161
"ci": false,
6262
"commands": [],
6363
"webview": [],
64-
"language": [
65-
"typescript"
66-
],
67-
"themes": [
68-
"default"
69-
]
64+
"language": ["typescript"],
65+
"themes": ["default"]
7066
},
7167

7268
// Code style preferences

0 commit comments

Comments
 (0)