@reliverse/dler 1.7.40 → 1.7.41
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.
|
@@ -20,25 +20,38 @@ const createPostBuildToolRunner = () => ({
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
async function processDistDirectory(dir, alias) {
|
|
23
|
+
async function processDistDirectory(dir, alias, config) {
|
|
24
24
|
try {
|
|
25
25
|
const binDir = path.join(dir, "bin");
|
|
26
26
|
if (await directoryExists(binDir)) {
|
|
27
|
-
await
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
const files = await glob("**/*", {
|
|
28
|
+
cwd: binDir,
|
|
29
|
+
onlyFiles: true,
|
|
30
|
+
ignore: [`**/${config.buildTemplatesDir}/**`]
|
|
31
|
+
// Exclude templates directory
|
|
31
32
|
});
|
|
33
|
+
const filesToProcess = files.filter((file) => {
|
|
34
|
+
const ext = path.extname(file).slice(1);
|
|
35
|
+
return config.buildPreExtensions.includes(ext);
|
|
36
|
+
});
|
|
37
|
+
for (const file of filesToProcess) {
|
|
38
|
+
const filePath = path.join(binDir, file);
|
|
39
|
+
await convertImportsAliasToRelative({
|
|
40
|
+
targetDir: path.dirname(filePath),
|
|
41
|
+
aliasToReplace: alias,
|
|
42
|
+
pathExtFilter: "js-ts-none"
|
|
43
|
+
});
|
|
44
|
+
}
|
|
32
45
|
}
|
|
33
46
|
} catch (error) {
|
|
34
47
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
35
48
|
throw error;
|
|
36
49
|
}
|
|
37
50
|
}
|
|
38
|
-
async function processDistDirectories() {
|
|
51
|
+
async function processDistDirectories(config) {
|
|
39
52
|
for (const dir of DIST_DIRECTORIES) {
|
|
40
53
|
relinka("log", `[processDistDirectory] ${dir}`);
|
|
41
|
-
await processDistDirectory(dir, ALIAS_TO_REPLACE);
|
|
54
|
+
await processDistDirectory(dir, ALIAS_TO_REPLACE, config);
|
|
42
55
|
}
|
|
43
56
|
}
|
|
44
57
|
async function copyNonBuildFiles(srcDir, distDir, preExtensions, templatesDir) {
|
|
@@ -131,7 +144,7 @@ export async function dlerPostBuild(isDev, debugDontCopyNonBuildFiles) {
|
|
|
131
144
|
if (isDev) {
|
|
132
145
|
await applyMagicSpells(["dist-jsr", "dist-npm", "dist-libs"]);
|
|
133
146
|
}
|
|
134
|
-
await processDistDirectories();
|
|
147
|
+
await processDistDirectories(config);
|
|
135
148
|
await executeDlerHooks(config?.hooksAfterBuild ?? [], "post-build");
|
|
136
149
|
if (config?.runAfterBuild?.length) {
|
|
137
150
|
const tools = createPostBuildToolRunner();
|
|
@@ -10,11 +10,11 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
10
10
|
projectDomain?: string | undefined;
|
|
11
11
|
projectGitService?: "none" | "github" | "gitlab" | "bitbucket" | undefined;
|
|
12
12
|
projectDeployService?: "none" | "vercel" | "netlify" | "railway" | "deno" | undefined;
|
|
13
|
-
projectPackageManager?: "
|
|
13
|
+
projectPackageManager?: "bun" | "npm" | "yarn" | "pnpm" | undefined;
|
|
14
14
|
projectState?: "created" | "creating" | undefined;
|
|
15
|
-
projectCategory?: "
|
|
15
|
+
projectCategory?: "browser" | "cli" | "unknown" | "website" | "vscode" | "library" | "mobile" | undefined;
|
|
16
16
|
projectSubcategory?: "unknown" | "e-commerce" | "tool" | undefined;
|
|
17
|
-
projectFramework?: "
|
|
17
|
+
projectFramework?: "npm-jsr" | "rempts" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "vue" | "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?: {
|
|
@@ -42,10 +42,10 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
42
42
|
testing?: "bun" | "unknown" | "vitest" | "jest" | "playwright" | "cypress" | undefined;
|
|
43
43
|
stateManagement?: "unknown" | "zustand" | "jotai" | "redux-toolkit" | undefined;
|
|
44
44
|
formManagement?: "unknown" | "react-hook-form" | "formik" | undefined;
|
|
45
|
-
styling?: "
|
|
45
|
+
styling?: "unknown" | "tailwind" | "styled-components" | "css-modules" | "sass" | undefined;
|
|
46
46
|
uiComponents?: "unknown" | "shadcn-ui" | "chakra-ui" | "material-ui" | undefined;
|
|
47
47
|
databaseLibrary?: "unknown" | "drizzle" | "prisma" | "supabase" | undefined;
|
|
48
|
-
databaseProvider?: "
|
|
48
|
+
databaseProvider?: "unknown" | "pg" | "mysql" | "sqlite" | "mongodb" | undefined;
|
|
49
49
|
linting?: "eslint" | "unknown" | undefined;
|
|
50
50
|
formatting?: "biome" | "unknown" | undefined;
|
|
51
51
|
payment?: "unknown" | "stripe" | 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?: "
|
|
78
|
+
trailingComma?: "all" | "none" | "es5" | undefined;
|
|
79
79
|
bracketSpacing?: boolean | undefined;
|
|
80
80
|
arrowParens?: "always" | "avoid" | undefined;
|
|
81
81
|
tabWidth?: number | 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?: "
|
|
99
|
+
type?: "bun" | "pnpm" | "none" | "turborepo" | "nx" | undefined;
|
|
100
100
|
packages?: string[] | undefined;
|
|
101
101
|
sharedPackages?: string[] | undefined;
|
|
102
102
|
} | undefined;
|
|
@@ -113,7 +113,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
113
113
|
repoBranch?: string | undefined;
|
|
114
114
|
repoPrivacy?: "unknown" | "public" | "private" | undefined;
|
|
115
115
|
projectArchitecture?: "unknown" | "fullstack" | "separated" | undefined;
|
|
116
|
-
projectRuntime?: "
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@reliverse/bleump": "^1.1.4",
|
|
4
|
-
"@reliverse/pathkit": "^1.3.
|
|
4
|
+
"@reliverse/pathkit": "^1.3.4",
|
|
5
5
|
"@reliverse/reglob": "^1.0.0",
|
|
6
6
|
"@reliverse/relico": "^1.1.2",
|
|
7
7
|
"@reliverse/relifso": "^1.4.5",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"license": "MIT",
|
|
54
54
|
"name": "@reliverse/dler",
|
|
55
55
|
"type": "module",
|
|
56
|
-
"version": "1.7.
|
|
56
|
+
"version": "1.7.41",
|
|
57
57
|
"keywords": [
|
|
58
58
|
"reliverse",
|
|
59
59
|
"cli",
|