@hypernym/bundler 0.30.7 → 0.31.1

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.
package/README.md CHANGED
@@ -25,8 +25,8 @@
25
25
  - Provides a Powerful Hooking System
26
26
  - Exports Fully Optimized Code
27
27
  - Follows Modern Practice
28
- - Super Easy to Use
29
- - API-Friendly
28
+ - Written in TypeScript
29
+ - API Friendly
30
30
 
31
31
  ## Quick Start
32
32
 
@@ -128,11 +128,7 @@ Default transformation behavior for all `dts` entries:
128
128
 
129
129
  - `./srcDir/file.ts` → `./outDir/file.d.ts`
130
130
 
131
- ## Options
132
-
133
- All options come with descriptions and examples. As you type, you’ll get suggestions and can see quick info by hovering over any property.
134
-
135
- ### entries
131
+ ## entries
136
132
 
137
133
  - Type: `EntryOptions[]`
138
134
 
@@ -154,7 +150,7 @@ export default defineConfig({
154
150
  })
155
151
  ```
156
152
 
157
- ### Entry Chunk
153
+ ## input
158
154
 
159
155
  Automatically transforms `chunks` for production.
160
156
 
@@ -174,7 +170,7 @@ export default defineConfig({
174
170
  })
175
171
  ```
176
172
 
177
- ### Entry Dts
173
+ ## dts
178
174
 
179
175
  Builds TypeScript `declaration` files (`.d.ts`) for production.
180
176
 
@@ -192,7 +188,7 @@ export default defineConfig({
192
188
  })
193
189
  ```
194
190
 
195
- ### Entry Copy
191
+ ## copy
196
192
 
197
193
  Copies either a single `file` or an entire `directory` structure from the source to the destination, including all subdirectories and files.
198
194
 
@@ -216,14 +212,14 @@ export default defineConfig({
216
212
  },
217
213
  {
218
214
  // copies the entire directory
219
- input: './src/path/srcdir',
215
+ copy: './src/path/srcdir',
220
216
  output: './dist/outdir',
221
217
  },
222
218
  ],
223
219
  })
224
220
  ```
225
221
 
226
- ### Entry Template
222
+ ## template
227
223
 
228
224
  Specifies the content of the `template` file.
229
225
 
@@ -245,7 +241,7 @@ export default defineConfig({
245
241
  })
246
242
  ```
247
243
 
248
- ### outDir
244
+ ## outDir
249
245
 
250
246
  - Type: `string | undefined`
251
247
  - Default: `dist`
@@ -262,7 +258,7 @@ export default defineConfig({
262
258
  })
263
259
  ```
264
260
 
265
- ### externals
261
+ ## externals
266
262
 
267
263
  - Type: `(string | RegExp)[] | undefined`
268
264
  - Default: `[/^node:/, /^@types/, /^@rollup/, /^@rolldown/, /^@hypernym/, /^rollup/, /^rolldown/, ...pkg.dependencies]`
@@ -294,7 +290,7 @@ export default defineConfig({
294
290
  })
295
291
  ```
296
292
 
297
- ### minify
293
+ ## minify
298
294
 
299
295
  - Type: `boolean | 'dce-only' | MinifyOptions | undefined`
300
296
  - Default: `undefined`
package/dist/bin/index.js CHANGED
@@ -9,7 +9,7 @@ import { build as build$1 } from "../build/index.js";
9
9
 
10
10
  //#region src/bin/meta.ts
11
11
  const name = `Hyperbundler`;
12
- const version = `0.30.7`;
12
+ const version = `0.31.1`;
13
13
 
14
14
  //#endregion
15
15
  //#region src/utils/logger.ts
@@ -138,10 +138,9 @@ async function build(options) {
138
138
  external: entry.externals || externals,
139
139
  plugins: isChunk ? entry.plugins : entry.plugins || [dts({
140
140
  ...entry.dtsPlugin,
141
- emitDtsOnly: true,
142
- banner: entry.banner,
143
- footer: entry.footer
141
+ emitDtsOnly: true
144
142
  })],
143
+ checks: { pluginTimings: false },
145
144
  onLog: (level, log, handler) => {
146
145
  if (entry.onLog) entry.onLog(level, log, handler, buildLogs);
147
146
  else buildLogs.push({
@@ -160,8 +159,10 @@ async function build(options) {
160
159
  file: isChunk ? outputResolvePath : void 0,
161
160
  minify: isChunk ? !isUndefined(entry.minify) ? entry.minify : minify : void 0,
162
161
  format,
163
- banner: isChunk ? entry.banner : void 0,
164
- footer: isChunk ? entry.footer : void 0,
162
+ banner: entry.banner,
163
+ postBanner: entry.postBanner,
164
+ footer: entry.footer,
165
+ postFooter: entry.postFooter,
165
166
  intro: entry.intro,
166
167
  outro: entry.outro,
167
168
  name: entry.name,
package/dist/index.d.ts CHANGED
@@ -102,12 +102,24 @@ interface EntryBase {
102
102
  * @default undefined
103
103
  */
104
104
  banner?: OutputOptions['banner'];
105
+ /**
106
+ * Specifies the string to be inserted at the beginning of the module after minification
107
+ *
108
+ * @default undefined
109
+ */
110
+ postBanner?: OutputOptions['postBanner'];
105
111
  /**
106
112
  * Specifies the string to be inserted at the end of the module.
107
113
  *
108
114
  * @default undefined
109
115
  */
110
116
  footer?: OutputOptions['footer'];
117
+ /**
118
+ * Specifies the string to be inserted at the end of the module after minification.
119
+ *
120
+ * @default undefined
121
+ */
122
+ postFooter?: OutputOptions['postFooter'];
111
123
  /**
112
124
  * Specifies the code at the beginning that goes inside any _format-specific_ wrapper.
113
125
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypernym/bundler",
3
- "version": "0.30.7",
3
+ "version": "0.31.1",
4
4
  "author": "Hypernym Studio",
5
5
  "description": "ESM & TS module bundler.",
6
6
  "license": "MIT",
@@ -58,15 +58,15 @@
58
58
  "@hypernym/args": "^0.3.4",
59
59
  "@hypernym/colors": "^1.0.6",
60
60
  "@hypernym/utils": "^3.4.6",
61
- "rolldown": "^1.0.0-beta.53",
62
- "rolldown-plugin-dts": "^0.18.3"
61
+ "rolldown": "^1.0.0-beta.58",
62
+ "rolldown-plugin-dts": "^0.20.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@hypernym/eslint-config": "^3.6.6",
66
66
  "@hypernym/prettier-config": "^3.2.10",
67
67
  "@hypernym/tsconfig": "^2.6.4",
68
- "@types/node": "^24.10.1",
69
- "eslint": "^9.39.1",
68
+ "@types/node": "^24.10.4",
69
+ "eslint": "^9.39.2",
70
70
  "prettier": "^3.7.4",
71
71
  "typescript": "^5.9.3"
72
72
  },