@reliverse/dler 1.7.40 → 1.7.42

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 convertImportsAliasToRelative({
28
- targetDir: binDir,
29
- aliasToReplace: alias,
30
- pathExtFilter: "js-ts-none"
27
+ const files = await glob("**/*", {
28
+ cwd: binDir,
29
+ onlyFiles: true,
30
+ // Exclude any directory named 'templates' at any depth
31
+ ignore: [`**/${config.buildTemplatesDir}/**`, `**/*/${config.buildTemplatesDir}/**`]
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();
@@ -14,7 +14,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
14
14
  projectState?: "created" | "creating" | undefined;
15
15
  projectCategory?: "cli" | "unknown" | "website" | "vscode" | "browser" | "library" | "mobile" | undefined;
16
16
  projectSubcategory?: "unknown" | "e-commerce" | "tool" | undefined;
17
- projectFramework?: "rempts" | "npm-jsr" | "vue" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "commander" | "cac" | "meow" | "yargs" | "webextension" | "browser-extension" | undefined;
17
+ projectFramework?: "rempts" | "npm-jsr" | "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?: {
@@ -34,7 +34,6 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
34
34
  } | undefined;
35
35
  preferredLibraries?: {
36
36
  search?: "unknown" | "algolia" | undefined;
37
- cdn?: "unknown" | "cloudflare" | undefined;
38
37
  i18n?: "unknown" | "next-intl" | undefined;
39
38
  analytics?: "unknown" | "vercel" | undefined;
40
39
  authentication?: "unknown" | "better-auth" | "clerk" | "next-auth" | "supabase-auth" | "auth0" | undefined;
@@ -42,10 +41,10 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
42
41
  testing?: "bun" | "unknown" | "vitest" | "jest" | "playwright" | "cypress" | undefined;
43
42
  stateManagement?: "unknown" | "zustand" | "jotai" | "redux-toolkit" | undefined;
44
43
  formManagement?: "unknown" | "react-hook-form" | "formik" | undefined;
45
- styling?: "sass" | "unknown" | "tailwind" | "styled-components" | "css-modules" | undefined;
44
+ styling?: "unknown" | "tailwind" | "styled-components" | "css-modules" | "sass" | undefined;
46
45
  uiComponents?: "unknown" | "shadcn-ui" | "chakra-ui" | "material-ui" | undefined;
47
46
  databaseLibrary?: "unknown" | "drizzle" | "prisma" | "supabase" | undefined;
48
- databaseProvider?: "sqlite" | "unknown" | "pg" | "mysql" | "mongodb" | undefined;
47
+ databaseProvider?: "unknown" | "pg" | "mysql" | "sqlite" | "mongodb" | undefined;
49
48
  linting?: "eslint" | "unknown" | undefined;
50
49
  formatting?: "biome" | "unknown" | undefined;
51
50
  payment?: "unknown" | "stripe" | undefined;
@@ -60,6 +59,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
60
59
  mail?: "unknown" | "resend" | undefined;
61
60
  cache?: "unknown" | "redis" | undefined;
62
61
  storage?: "unknown" | "cloudflare" | undefined;
62
+ cdn?: "unknown" | "cloudflare" | undefined;
63
63
  cms?: "unknown" | "contentlayer" | undefined;
64
64
  seo?: "unknown" | "next-seo" | undefined;
65
65
  motion?: "unknown" | "framer" | undefined;
@@ -1,5 +1,5 @@
1
1
  import { endPrompt, startPrompt } from "@reliverse/rempts";
2
- const version = "1.7.40";
2
+ const version = "1.7.42";
3
3
  export async function showStartPrompt(isDev) {
4
4
  await startPrompt({
5
5
  titleColor: "inverse",
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.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.40",
56
+ "version": "1.7.42",
57
57
  "keywords": [
58
58
  "reliverse",
59
59
  "cli",