bun-dev-server 1.0.1 → 1.0.3

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,3 +1,8 @@
1
+ /**
2
+ * Ensure the destination directory exists, create if it doesn't
3
+ * @param destinationPath - The absolute path to the destination directory
4
+ */
5
+ export declare function ensureDestinationDirectory(destinationPath: string): Promise<void>;
1
6
  /**
2
7
  * Clean a directory by removing all its contents
3
8
  * @param dst - The absolute path to the directory to clean
package/package.json CHANGED
@@ -24,7 +24,11 @@
24
24
  "exports": {
25
25
  ".": "./dist/index.js"
26
26
  },
27
- "version": "1.0.1",
27
+ "publishConfig": {
28
+ "access": "public",
29
+ "provenance": true
30
+ },
31
+ "version": "1.0.3",
28
32
  "module": "index.ts",
29
33
  "type": "module",
30
34
  "license": "MIT",
@@ -35,15 +39,15 @@
35
39
  "test:coverage": "bun test --coverage"
36
40
  },
37
41
  "devDependencies": {
38
- "@types/bun": "^1.3.0"
42
+ "@types/bun": "^1.3.11"
39
43
  },
40
44
  "peerDependencies": {
41
45
  "typescript": "^5.9.3"
42
46
  },
43
47
  "dependencies": {
44
48
  "@types/ejs": "^3.1.5",
45
- "ejs": "^3.1.10",
46
- "p-queue": "^9.0.0",
49
+ "ejs": "^5.0.1",
50
+ "p-queue": "^9.1.0",
47
51
  "picocolors": "^1.1.1"
48
52
  }
49
53
  }
@@ -1,166 +0,0 @@
1
- :root {
2
- color-scheme: light dark;
3
- }
4
-
5
- * {
6
- box-sizing: border-box;
7
- }
8
-
9
- body {
10
- margin: 0;
11
- padding: 2.5rem 1.5rem 3rem;
12
- font: 15px/1.5 "Segoe UI", Tahoma, sans-serif;
13
- color: #0f172a;
14
- background: #f8fafc;
15
- }
16
-
17
- @media (prefers-color-scheme: dark) {
18
- body {
19
- color: #e2e8f0;
20
- background: #0f172a;
21
- }
22
- }
23
-
24
- .wrapper {
25
- max-width: 960px;
26
- margin: 0 auto;
27
- border-radius: 16px;
28
- padding: 2rem;
29
- background: rgba(255, 255, 255, 0.85);
30
- -webkit-backdrop-filter: blur(6px);
31
- box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
32
- backdrop-filter: blur(6px);
33
- }
34
-
35
- @media (prefers-color-scheme: dark) {
36
- .wrapper {
37
- background: rgba(15, 23, 42, 0.68);
38
- box-shadow: 0 20px 45px rgba(15, 23, 42, 0.65);
39
- }
40
- }
41
-
42
- header {
43
- display: flex;
44
- flex-direction: column;
45
- gap: 1rem;
46
- margin-bottom: 1.75rem;
47
- }
48
-
49
- h1 {
50
- margin: 0;
51
- font-size: 1.75rem;
52
- letter-spacing: -0.02em;
53
- }
54
-
55
- .breadcrumbs {
56
- display: flex;
57
- align-items: center;
58
- flex-wrap: wrap;
59
- gap: 0.5rem;
60
- font-size: 0.95rem;
61
- color: inherit;
62
- }
63
-
64
- .breadcrumbs span {
65
- opacity: 0.7;
66
- }
67
-
68
- a {
69
- color: #2563eb;
70
- text-decoration: none;
71
- }
72
-
73
- a:hover,
74
- a:focus-visible {
75
- text-decoration: underline;
76
- }
77
-
78
- .listing {
79
- display: grid;
80
- gap: 0.75rem;
81
- }
82
-
83
- .item {
84
- display: flex;
85
- align-items: center;
86
- gap: 0.9rem;
87
- padding: 0.85rem 1rem;
88
- border-radius: 12px;
89
- border: 1px solid rgba(15, 23, 42, 0.08);
90
- background: rgba(15, 23, 42, 0.02);
91
- transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
92
- }
93
-
94
- .item:hover,
95
- .item:focus-visible {
96
- transform: translateY(-2px);
97
- border-color: rgba(37, 99, 235, 0.4);
98
- box-shadow: 0 12px 25px rgba(37, 99, 235, 0.15);
99
- background: rgba(37, 99, 235, 0.08);
100
- }
101
-
102
- .item .icon {
103
- flex: none;
104
- width: 28px;
105
- height: 28px;
106
- opacity: 0.85;
107
- object-fit: contain;
108
- }
109
-
110
- .item .text {
111
- display: flex;
112
- flex-direction: column;
113
- gap: 0.2rem;
114
- }
115
-
116
- .item .name {
117
- font-size: 1rem;
118
- font-weight: 600;
119
- word-break: break-word;
120
- }
121
-
122
- .item .meta {
123
- font-size: 0.78rem;
124
- text-transform: uppercase;
125
- letter-spacing: 0.08em;
126
- opacity: 0.6;
127
- }
128
-
129
- .empty {
130
- margin: 0;
131
- padding: 1.5rem;
132
- border-radius: 12px;
133
- border: 1px dashed rgba(15, 23, 42, 0.2);
134
- text-align: center;
135
- opacity: 0.7;
136
- }
137
-
138
- @media (prefers-color-scheme: dark) {
139
- .item {
140
- border-color: rgba(226, 232, 240, 0.08);
141
- background: rgba(148, 163, 184, 0.06);
142
- }
143
-
144
- .item:hover,
145
- .item:focus-visible {
146
- border-color: rgba(96, 165, 250, 0.45);
147
- background: rgba(59, 130, 246, 0.2);
148
- box-shadow: 0 12px 25px rgba(15, 23, 42, 0.5);
149
- }
150
-
151
- .empty {
152
- border-color: rgba(226, 232, 240, 0.18);
153
- }
154
- }
155
-
156
- .back-link {
157
- display: inline-flex;
158
- align-items: center;
159
- gap: 0.35rem;
160
- font-size: 0.95rem;
161
- }
162
-
163
- .back-link svg {
164
- width: 20px;
165
- height: 20px;
166
- }