bunup 0.8.67 → 0.8.69

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/dist/cli/index.js CHANGED
@@ -3,8 +3,8 @@
3
3
  import {
4
4
  build,
5
5
  createBuildOptions
6
- } from "../shared/chunk-e55jtfn8.js";
7
- import"../shared/chunk-zj5506zn.js";
6
+ } from "../shared/chunk-388r1g46.js";
7
+ import"../shared/chunk-ge1jevhp.js";
8
8
  import {
9
9
  processLoadedConfigs
10
10
  } from "../shared/chunk-295440tx.js";
@@ -21,14 +21,14 @@ import {
21
21
  logger,
22
22
  parseErrorMessage,
23
23
  setSilent
24
- } from "../shared/chunk-fw4fyhnc.js";
24
+ } from "../shared/chunk-hb0esw52.js";
25
25
 
26
26
  // src/cli/index.ts
27
27
  import { loadConfig } from "coffi";
28
28
  import pc3 from "picocolors";
29
29
  import { exec } from "tinyexec";
30
30
  // package.json
31
- var version = "0.8.67";
31
+ var version = "0.8.69";
32
32
 
33
33
  // src/watch.ts
34
34
  import path from "path";
@@ -482,12 +482,12 @@ var parseCliOptions = (argv) => {
482
482
  async function main(args = Bun.argv.slice(2)) {
483
483
  const cliOptions = parseCliOptions(args);
484
484
  if (cliOptions.new) {
485
- const { newProject } = await import("../shared/chunk-vdgwvbgq.js");
485
+ const { newProject } = await import("../shared/chunk-cdrh2sea.js");
486
486
  await newProject();
487
487
  return;
488
488
  }
489
489
  if (cliOptions.init) {
490
- const { init } = await import("../shared/chunk-hraxj72e.js");
490
+ const { init } = await import("../shared/chunk-gc7rjej4.js");
491
491
  await init();
492
492
  return;
493
493
  }
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  build
4
- } from "./shared/chunk-e55jtfn8.js";
5
- import"./shared/chunk-zj5506zn.js";
4
+ } from "./shared/chunk-388r1g46.js";
5
+ import"./shared/chunk-ge1jevhp.js";
6
6
  import"./shared/chunk-295440tx.js";
7
- import"./shared/chunk-fw4fyhnc.js";
7
+ import"./shared/chunk-hb0esw52.js";
8
8
  // src/define.ts
9
9
  function defineConfig(options) {
10
10
  return options;
package/dist/plugins.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  getPackageForPlugin
4
- } from "./shared/chunk-zj5506zn.js";
4
+ } from "./shared/chunk-ge1jevhp.js";
5
5
  import {
6
6
  CSS_RE,
7
7
  JS_DTS_RE,
@@ -10,7 +10,7 @@ import {
10
10
  formatListWithAnd,
11
11
  isDirectoryPath,
12
12
  logger
13
- } from "./shared/chunk-fw4fyhnc.js";
13
+ } from "./shared/chunk-hb0esw52.js";
14
14
 
15
15
  // src/plugins/built-in/copy.ts
16
16
  import { basename, join } from "path";
@@ -209,11 +209,13 @@ function mergeCustomExportsWithGenerated(baseExports, customExportsProvider, ctx
209
209
  function createUpdatedPackageJson(originalData, entryPoints, exports2, files) {
210
210
  const { main, module, types, ...restPackageJson } = originalData;
211
211
  const newPackageJson = {
212
- name: originalData.name,
213
- description: originalData.description,
214
- version: originalData.version,
215
- type: originalData.type,
216
- private: originalData.private,
212
+ ...Object.fromEntries(Object.entries({
213
+ name: originalData.name,
214
+ description: originalData.description,
215
+ version: originalData.version,
216
+ type: originalData.type,
217
+ private: originalData.private
218
+ }).filter(([_, value]) => value !== undefined)),
217
219
  files,
218
220
  ...entryPoints,
219
221
  exports: exports2
@@ -423,10 +425,10 @@ Your project has ${count} unused ${depText}: ${coloredDeps}.`,
423
425
  `You can remove ${count === 1 ? "it" : "them"} with ${removeCommand}`
424
426
  ].join(" ");
425
427
  if (level === "error") {
426
- console.error(pc.red(message));
428
+ logger.log(pc.red(message));
427
429
  process.exit(1);
428
430
  } else {
429
- console.log(message);
431
+ logger.log(message);
430
432
  }
431
433
  }
432
434
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-fw4fyhnc.js";
3
+ } from "./chunk-hb0esw52.js";
4
4
 
5
5
  // src/cli/utils.ts
6
6
  import pc from "picocolors";
@@ -3,7 +3,7 @@ import {
3
3
  filterBunupPlugins,
4
4
  runPluginBuildDoneHooks,
5
5
  runPluginBuildStartHooks
6
- } from "./chunk-zj5506zn.js";
6
+ } from "./chunk-ge1jevhp.js";
7
7
  import {
8
8
  loadPackageJson
9
9
  } from "./chunk-295440tx.js";
@@ -25,7 +25,7 @@ import {
25
25
  parseErrorMessage,
26
26
  setSilent,
27
27
  silent
28
- } from "./chunk-fw4fyhnc.js";
28
+ } from "./chunk-hb0esw52.js";
29
29
 
30
30
  // src/build.ts
31
31
  import path from "path";
@@ -81,6 +81,10 @@ function report() {
81
81
  Gzip: formattedTotalGzipSize
82
82
  };
83
83
  logger.space();
84
+ if (options.name) {
85
+ logger.log(pc.bgMagentaBright(options.name));
86
+ logger.space();
87
+ }
84
88
  logTable(columns, data, footer);
85
89
  logger.space();
86
90
  }
@@ -1,11 +1,11 @@
1
1
  // @bun
2
2
  import {
3
3
  displayBunupGradientArt
4
- } from "./chunk-22a2den8.js";
4
+ } from "./chunk-29mdzdnt.js";
5
5
  import {
6
6
  link,
7
7
  pathExistsSync
8
- } from "./chunk-fw4fyhnc.js";
8
+ } from "./chunk-hb0esw52.js";
9
9
 
10
10
  // src/cli/new.ts
11
11
  import { renameSync } from "fs";
@@ -4,11 +4,11 @@ import {
4
4
  } from "./chunk-295440tx.js";
5
5
  import {
6
6
  displayBunupGradientArt
7
- } from "./chunk-22a2den8.js";
7
+ } from "./chunk-29mdzdnt.js";
8
8
  import {
9
9
  formatListWithAnd,
10
10
  link
11
- } from "./chunk-fw4fyhnc.js";
11
+ } from "./chunk-hb0esw52.js";
12
12
 
13
13
  // src/cli/init.ts
14
14
  import fs from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BunupPluginError
3
- } from "./chunk-fw4fyhnc.js";
3
+ } from "./chunk-hb0esw52.js";
4
4
 
5
5
  // src/plugins/utils.ts
6
6
  import pc from "picocolors";
@@ -53,13 +53,12 @@ class Logger {
53
53
  const iconMap = {
54
54
  info: pc.blue("i"),
55
55
  warn: pc.yellow("!"),
56
- error: pc.red("\u2715"),
57
- recommended: pc.magenta("\u25D0")
56
+ error: pc.red("\u2715")
58
57
  };
59
58
  return iconMap[type];
60
59
  }
61
60
  formatIdentifier(identifier) {
62
- return identifier ? ` ${pc.bgBlue(pc.black(` ${identifier} `))}` : "";
61
+ return identifier ? ` ${pc.bgBlueBright(` ${identifier} `)}` : "";
63
62
  }
64
63
  formatMessage(options) {
65
64
  const {
@@ -118,19 +117,16 @@ class Logger {
118
117
  });
119
118
  this.output(formattedMessage, options);
120
119
  }
121
- recommended(message, options = {}) {
122
- const formattedMessage = this.formatMessage({
123
- ...options,
124
- message,
125
- type: "recommended"
126
- });
127
- this.output(formattedMessage, options);
128
- }
129
120
  space() {
130
121
  if (!silent) {
131
122
  console.log("");
132
123
  }
133
124
  }
125
+ log(...args) {
126
+ if (!silent) {
127
+ console.log(...args);
128
+ }
129
+ }
134
130
  }
135
131
  function logTable(columns, data, footer) {
136
132
  if (silent)
package/package.json CHANGED
@@ -1,105 +1,105 @@
1
1
  {
2
- "name": "bunup",
3
- "description": "⚡ A blazing-fast build tool for your libraries built with Bun.",
4
- "version": "0.8.67",
5
- "type": "module",
6
- "files": [
7
- "dist"
8
- ],
9
- "module": "./dist/index.js",
10
- "types": "./dist/index.d.ts",
11
- "exports": {
12
- ".": {
13
- "import": {
14
- "types": "./dist/index.d.ts",
15
- "default": "./dist/index.js"
16
- }
17
- },
18
- "./plugins": {
19
- "import": {
20
- "types": "./dist/plugins.d.ts",
21
- "default": "./dist/plugins.js"
22
- }
23
- }
24
- },
25
- "license": "MIT",
26
- "author": "Arshad Yaseen <m@arshadyaseen.com> (https://arshadyaseen.com)",
27
- "maintainers": [
28
- {
29
- "name": "Arshad Yaseen",
30
- "email": "m@arshadyaseen.com",
31
- "url": "https://arshadyaseen.com"
32
- }
33
- ],
34
- "repository": {
35
- "type": "git",
36
- "url": "git+https://github.com/arshad-yaseen/bunup.git"
37
- },
38
- "funding": "https://github.com/sponsors/arshad-yaseen",
39
- "homepage": "https://bunup.dev",
40
- "keywords": [
41
- "bun",
42
- "bunup",
43
- "bun-bundler"
44
- ],
45
- "bin": {
46
- "bunup": "dist/cli/index.js"
47
- },
48
- "dependencies": {
49
- "@clack/prompts": "^0.10.1",
50
- "chokidar": "^4.0.3",
51
- "coffi": "^0.1.31",
52
- "fast-deep-equal": "^3.1.3",
53
- "giget": "^2.0.0",
54
- "picocolors": "^1.1.1",
55
- "replace-in-file": "^8.3.0",
56
- "tinyexec": "^1.0.1",
57
- "typeroll": "^0.6.20"
58
- },
59
- "devDependencies": {
60
- "@babel/types": "^7.28.1",
61
- "@biomejs/biome": "2.0.0",
62
- "@types/bun": "^1.2.19",
63
- "bumpp": "^10.2.0",
64
- "husky": "^9.1.7",
65
- "lightningcss": "^1.30.1",
66
- "lint-staged": "^15.5.2",
67
- "typescript": "^5.8.3"
68
- },
69
- "peerDependencies": {
70
- "typescript": ">=4.5.0",
71
- "lightningcss": ">=1.17.0"
72
- },
73
- "peerDependenciesMeta": {
74
- "typescript": {
75
- "optional": true
76
- },
77
- "lightningcss": {
78
- "optional": true
79
- }
80
- },
81
- "scripts": {
82
- "build": "bunx bunup@latest",
83
- "build:docs": "bun run --cwd docs build",
84
- "dev": "bunx bunup@latest --watch",
85
- "dev:docs": "bun run --cwd docs dev",
86
- "format": "biome format .",
87
- "format:fix": "biome format --write .",
88
- "lint": "biome check .",
89
- "lint:fix": "biome check --write .",
90
- "prepare": "husky",
91
- "test": "bun test",
92
- "test-build": "bun run --cwd tests build",
93
- "tsc": "tsc --noEmit",
94
- "publish:ci": "bun publish --access public --no-git-checks",
95
- "release": "bumpp"
96
- },
97
- "lint-staged": {
98
- "*": "bun run format:fix && git add .",
99
- "src/**/*.(m|c)?(j|t)s": "bun run tsc"
100
- },
101
- "workspaces": [
102
- "docs",
103
- "tests"
104
- ]
105
- }
2
+ "name": "bunup",
3
+ "description": "⚡ A blazing-fast build tool for your libraries built with Bun.",
4
+ "version": "0.8.69",
5
+ "type": "module",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ }
17
+ },
18
+ "./plugins": {
19
+ "import": {
20
+ "types": "./dist/plugins.d.ts",
21
+ "default": "./dist/plugins.js"
22
+ }
23
+ }
24
+ },
25
+ "license": "MIT",
26
+ "author": "Arshad Yaseen <m@arshadyaseen.com> (https://arshadyaseen.com)",
27
+ "maintainers": [
28
+ {
29
+ "name": "Arshad Yaseen",
30
+ "email": "m@arshadyaseen.com",
31
+ "url": "https://arshadyaseen.com"
32
+ }
33
+ ],
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/arshad-yaseen/bunup.git"
37
+ },
38
+ "funding": "https://github.com/sponsors/arshad-yaseen",
39
+ "homepage": "https://bunup.dev",
40
+ "keywords": [
41
+ "bun",
42
+ "bunup",
43
+ "bun-bundler"
44
+ ],
45
+ "bin": {
46
+ "bunup": "dist/cli/index.js"
47
+ },
48
+ "dependencies": {
49
+ "@clack/prompts": "^0.10.1",
50
+ "chokidar": "^4.0.3",
51
+ "coffi": "^0.1.31",
52
+ "fast-deep-equal": "^3.1.3",
53
+ "giget": "^2.0.0",
54
+ "picocolors": "^1.1.1",
55
+ "replace-in-file": "^8.3.0",
56
+ "tinyexec": "^1.0.1",
57
+ "typeroll": "^0.6.20"
58
+ },
59
+ "devDependencies": {
60
+ "@babel/types": "^7.28.1",
61
+ "@biomejs/biome": "2.0.0",
62
+ "@types/bun": "^1.2.19",
63
+ "bumpp": "^10.2.0",
64
+ "husky": "^9.1.7",
65
+ "lightningcss": "^1.30.1",
66
+ "lint-staged": "^15.5.2",
67
+ "typescript": "^5.8.3"
68
+ },
69
+ "peerDependencies": {
70
+ "typescript": ">=4.5.0",
71
+ "lightningcss": ">=1.17.0"
72
+ },
73
+ "peerDependenciesMeta": {
74
+ "typescript": {
75
+ "optional": true
76
+ },
77
+ "lightningcss": {
78
+ "optional": true
79
+ }
80
+ },
81
+ "scripts": {
82
+ "build": "bunx bunup@latest",
83
+ "build:docs": "bun run --cwd docs build",
84
+ "dev": "bunx bunup@latest --watch",
85
+ "dev:docs": "bun run --cwd docs dev",
86
+ "format": "biome format .",
87
+ "format:fix": "biome format --write .",
88
+ "lint": "biome check .",
89
+ "lint:fix": "biome check --write .",
90
+ "prepare": "husky",
91
+ "test": "bun test",
92
+ "test-build": "bun run --cwd tests build",
93
+ "tsc": "tsc --noEmit",
94
+ "publish:ci": "bun publish --access public --no-git-checks",
95
+ "release": "bumpp"
96
+ },
97
+ "lint-staged": {
98
+ "*": "bun run format:fix && git add .",
99
+ "src/**/*.(m|c)?(j|t)s": "bun run tsc"
100
+ },
101
+ "workspaces": [
102
+ "docs",
103
+ "tests"
104
+ ]
105
+ }