@reliverse/dler 1.7.13 → 1.7.15

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.
@@ -1,5 +1,5 @@
1
1
  import { endPrompt, startPrompt } from "@reliverse/rempts";
2
- const version = "1.7.13";
2
+ const version = "1.7.15";
3
3
  export async function showStartPrompt(isDev) {
4
4
  await startPrompt({
5
5
  titleColor: "inverse",
@@ -63,7 +63,7 @@ async function library_pubToJsr(libOutDir, distJsrDryRun, distJsrFailOnWarn, dis
63
63
  ].filter(Boolean).join(" ");
64
64
  await execaCommand(command, { stdio: "inherit" });
65
65
  relinka(
66
- "success",
66
+ "log",
67
67
  `Successfully ${distJsrDryRun ? "validated" : "published"} lib ${libName} to JSR registry`
68
68
  );
69
69
  });
@@ -71,8 +71,6 @@ async function library_pubToJsr(libOutDir, distJsrDryRun, distJsrFailOnWarn, dis
71
71
  } catch (error) {
72
72
  if (timer) resumePerfTimer(timer);
73
73
  throw error;
74
- } finally {
75
- relinka("verbose", `Exiting library_pubToJsr for lib: ${libName}`);
76
74
  }
77
75
  }
78
76
  async function library_pubToNpm(libOutDir, distJsrDryRun, _distJsrFailOnWarn, libName, _isDev, timer) {
@@ -84,7 +82,7 @@ async function library_pubToNpm(libOutDir, distJsrDryRun, _distJsrFailOnWarn, li
84
82
  const command = ["bun publish", distJsrDryRun ? "--dry-run" : ""].filter(Boolean).join(" ");
85
83
  await execaCommand(command, { stdio: "inherit" });
86
84
  relinka(
87
- "success",
85
+ "log",
88
86
  `Successfully ${distJsrDryRun ? "validated" : "published"} lib ${libName} to NPM registry`
89
87
  );
90
88
  });
@@ -92,7 +90,5 @@ async function library_pubToNpm(libOutDir, distJsrDryRun, _distJsrFailOnWarn, li
92
90
  } catch (error) {
93
91
  if (timer) resumePerfTimer(timer);
94
92
  throw error;
95
- } finally {
96
- relinka("verbose", `Exiting library_pubToNpm for lib: ${libName}`);
97
93
  }
98
94
  }
@@ -21,7 +21,7 @@ export async function regular_pubToJsr(distJsrDryRun, distJsrFailOnWarn, _isDev,
21
21
  relinka("verbose", `Running publish command: ${command}`);
22
22
  await execaCommand(command, { stdio: "inherit" });
23
23
  relinka(
24
- "success",
24
+ "log",
25
25
  `Successfully ${distJsrDryRun ? "validated" : "published"} to JSR registry`
26
26
  );
27
27
  });
@@ -43,7 +43,7 @@ export async function regular_pubToNpm(distJsrDryRun, _isDev, commonPubPause, di
43
43
  relinka("verbose", `Running publish command: ${command}`);
44
44
  await execaCommand(command, { stdio: "inherit" });
45
45
  relinka(
46
- "success",
46
+ "log",
47
47
  `Successfully ${distJsrDryRun ? "validated" : "published"} to NPM registry`
48
48
  );
49
49
  });
@@ -17,12 +17,9 @@ export async function finalizeBuildPub(timer, commonPubPause, libsList, distNpmD
17
17
  verbose: true
18
18
  });
19
19
  if (!commonPubPause) {
20
- relinka("success", `\u{1F389} Build completed successfully (build time: ${transpileFormattedTime})`);
20
+ relinka("success", `\u{1F389} Publish completed successfully (build time: ${transpileFormattedTime})`);
21
21
  } else {
22
- relinka(
23
- "success",
24
- `\u{1F389} Test build completed successfully (build time: ${transpileFormattedTime})`
25
- );
22
+ relinka("success", `\u{1F389} Build completed successfully (done in: ${transpileFormattedTime})`);
26
23
  relinka("info", "\u{1F4DD} Publish process is currently paused in your config file");
27
24
  }
28
25
  }
@@ -29,7 +29,7 @@ export async function removeDistFolders(distNpmDirName, distJsrDirName, libsDirD
29
29
  },
30
30
  { concurrency: CONCURRENCY_DEFAULT }
31
31
  );
32
- relinka("success", "Distribution folders removed successfully");
32
+ relinka("log", "Distribution folders removed successfully");
33
33
  }
34
34
  return true;
35
35
  }
@@ -20,7 +20,7 @@ export async function withWorkingDirectory(transpileTargetDir, fn) {
20
20
  const originalDir = process.cwd();
21
21
  try {
22
22
  process.chdir(transpileTargetDir);
23
- relinka("info", `Changed working directory to: ${transpileTargetDir}`);
23
+ relinka("log", `CWD (current working directory): ${originalDir} -> ${transpileTargetDir}`);
24
24
  const result = await fn();
25
25
  return result;
26
26
  } catch (error) {
@@ -29,7 +29,7 @@ export async function withWorkingDirectory(transpileTargetDir, fn) {
29
29
  throw error;
30
30
  } finally {
31
31
  process.chdir(originalDir);
32
- relinka("info", `Restored working directory to: ${originalDir}`);
32
+ relinka("log", `CWD (current working directory): ${transpileTargetDir} -> ${originalDir}`);
33
33
  }
34
34
  }
35
35
  export async function validateDevCwd(isDev, paths, cliName, cliOrg = "") {
package/package.json CHANGED
@@ -44,7 +44,7 @@
44
44
  "license": "MIT",
45
45
  "name": "@reliverse/dler",
46
46
  "type": "module",
47
- "version": "1.7.13",
47
+ "version": "1.7.15",
48
48
  "keywords": [
49
49
  "reliverse",
50
50
  "cli",
@@ -1,31 +0,0 @@
1
- #root {
2
- max-width: 1280px;
3
- margin: 0 auto;
4
- padding: 2rem;
5
- text-align: center;
6
- }
7
-
8
- .card {
9
- padding: 2em;
10
- }
11
-
12
- button {
13
- border-radius: 8px;
14
- border: 1px solid transparent;
15
- padding: 0.6em 1.2em;
16
- font-size: 1em;
17
- font-weight: 500;
18
- font-family: inherit;
19
- background-color: #1a1a1a;
20
- cursor: pointer;
21
- transition: border-color 0.25s;
22
- }
23
-
24
- button:hover {
25
- border-color: #646cff;
26
- }
27
-
28
- button:focus,
29
- button:focus-visible {
30
- outline: 4px auto -webkit-focus-ring-color;
31
- }
@@ -1,21 +0,0 @@
1
- import { useState } from "react";
2
- import "./App.css";
3
-
4
- function App() {
5
- const [count, setCount] = useState(0);
6
-
7
- return (
8
- // @ts-expect-error mock
9
- <div className="App">
10
- {/* @ts-expect-error mock */}
11
- <h1>React TSX App</h1>
12
- {/* @ts-expect-error mock */}
13
- <div className="card">
14
- {/* @ts-expect-error mock */}
15
- <button onClick={() => setCount((count: number) => count + 1)}>count is {count}</button>
16
- </div>
17
- </div>
18
- );
19
- }
20
-
21
- export default App;
@@ -1,31 +0,0 @@
1
- # React TSX Project
2
-
3
- A modern React project with TypeScript and Vite.
4
-
5
- ## Features
6
-
7
- - React 19 with TypeScript
8
- - Vite for fast development and building
9
- - Modern CSS with CSS modules support
10
- - Hot Module Replacement (HMR)
11
- - ESLint and Prettier configuration
12
-
13
- ## Getting Started
14
-
15
- 1. Install dependencies:
16
-
17
- ```bash
18
- npm install
19
- ```
20
-
21
- 2. Start development server:
22
-
23
- ```bash
24
- npm run dev
25
- ```
26
-
27
- 3. Build for production:
28
-
29
- ```bash
30
- npm run build
31
- ```
@@ -1,27 +0,0 @@
1
- :root {
2
- font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3
- line-height: 1.5;
4
- font-weight: 400;
5
-
6
- color-scheme: light dark;
7
- color: rgba(255, 255, 255, 0.87);
8
- background-color: #242424;
9
-
10
- font-synthesis: none;
11
- text-rendering: optimizeLegibility;
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
- }
15
-
16
- body {
17
- margin: 0;
18
- display: flex;
19
- place-items: center;
20
- min-width: 320px;
21
- min-height: 100vh;
22
- }
23
-
24
- h1 {
25
- font-size: 3.2em;
26
- line-height: 1.1;
27
- }
@@ -1 +0,0 @@
1
- console.log("Hello, world!");
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>React TSX App</title>
7
- </head>
8
- <body>
9
- <div id="root"></div>
10
- <script type="module" src="/src/main.tsx"></script>
11
- </body>
12
- </html>
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- // @ts-expect-error mock
3
- import ReactDOM from "react-dom/client";
4
- import App from "./App";
5
- import "./index.css";
6
-
7
- ReactDOM.createRoot(document.getElementById("root")!).render(
8
- <React.StrictMode>
9
- <App />
10
- </React.StrictMode>,
11
- );