bunup 0.14.19 → 0.14.20
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
|
@@ -60,7 +60,7 @@ Spin up a modern, ready-to-publish TypeScript or React component library (or a b
|
|
|
60
60
|
bunx @bunup/cli@latest create
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
See more in [Scaffold with Bunup](
|
|
63
|
+
See more in [Scaffold with Bunup](https://bunup.dev/docs/scaffold-with-bunup).
|
|
64
64
|
|
|
65
65
|
## Features
|
|
66
66
|
|
package/dist/cli/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
build,
|
|
5
5
|
processLoadedConfigs,
|
|
6
6
|
resolveBuildOptions
|
|
7
|
-
} from "../shared/bunup-
|
|
7
|
+
} from "../shared/bunup-rqsmf79e.js";
|
|
8
8
|
import {
|
|
9
9
|
BunupCLIError,
|
|
10
10
|
BunupWatchError,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { loadConfig } from "coffi";
|
|
27
27
|
import pc4 from "picocolors";
|
|
28
28
|
// packages/bunup/package.json
|
|
29
|
-
var version = "0.14.
|
|
29
|
+
var version = "0.14.20";
|
|
30
30
|
|
|
31
31
|
// packages/bunup/src/printer/print-build-report.ts
|
|
32
32
|
import { promisify } from "util";
|
package/dist/index.js
CHANGED
|
@@ -157,6 +157,9 @@ export default classes;
|
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
// packages/bunup/src/plugins/internal/external-option.ts
|
|
161
|
+
import { isBuiltin } from "module";
|
|
162
|
+
|
|
160
163
|
// packages/bunup/src/helpers/external.ts
|
|
161
164
|
function getPackageDepsPatterns(packageJson) {
|
|
162
165
|
return getPackageDeps(packageJson).map((dep) => new RegExp(`^${dep}($|\\/|\\\\)`));
|
|
@@ -164,7 +167,7 @@ function getPackageDepsPatterns(packageJson) {
|
|
|
164
167
|
function matchesPattern(path2, pattern) {
|
|
165
168
|
return typeof pattern === "string" ? pattern === path2 : pattern.test(path2);
|
|
166
169
|
}
|
|
167
|
-
function
|
|
170
|
+
function isExternalFromPackageJson(path2, options, packageJson) {
|
|
168
171
|
const packageDepsPatterns = getPackageDepsPatterns(packageJson);
|
|
169
172
|
const matchesExternalPattern = packageDepsPatterns.some((pattern) => pattern.test(path2)) || options.external?.some((pattern) => matchesPattern(path2, pattern));
|
|
170
173
|
const isExcludedFromExternal = options.noExternal?.some((pattern) => matchesPattern(path2, pattern));
|
|
@@ -178,7 +181,7 @@ function externalOptionPlugin(options, packageJson) {
|
|
|
178
181
|
setup(build) {
|
|
179
182
|
build.onResolve({ filter: /.*/ }, (args) => {
|
|
180
183
|
const importPath = args.path;
|
|
181
|
-
if (
|
|
184
|
+
if (isBuiltin(importPath) || isExternalFromPackageJson(importPath, options, packageJson)) {
|
|
182
185
|
return {
|
|
183
186
|
path: importPath,
|
|
184
187
|
external: true
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunup",
|
|
3
3
|
"description": "⚡ A blazing-fast build tool for your libraries built with Bun.",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.20",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"bunup": "dist/cli/index.js"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@bunup/dts": "0.14.
|
|
50
|
+
"@bunup/dts": "0.14.14",
|
|
51
51
|
"chokidar": "^4.0.3",
|
|
52
52
|
"coffi": "^0.1.37",
|
|
53
53
|
"lightningcss": "^1.30.2",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"tinyexec": "^1.0.1",
|
|
56
56
|
"tree-kill": "^1.2.2",
|
|
57
57
|
"zlye": "^0.4.4",
|
|
58
|
-
"@bunup/shared": "0.14.
|
|
58
|
+
"@bunup/shared": "0.14.14"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"typescript": "latest"
|