bunup 0.8.65 → 0.8.67
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 +1 -1
- package/dist/plugins.js +4 -0
- package/package.json +2 -1
package/dist/cli/index.js
CHANGED
package/dist/plugins.js
CHANGED
|
@@ -37,6 +37,7 @@ function copy(patterns, outPath) {
|
|
|
37
37
|
}
|
|
38
38
|
// src/plugins/built-in/exports.ts
|
|
39
39
|
import path from "path";
|
|
40
|
+
import equal from "fast-deep-equal";
|
|
40
41
|
function exports(options = {}) {
|
|
41
42
|
return {
|
|
42
43
|
type: "bunup",
|
|
@@ -58,6 +59,9 @@ async function processPackageJsonExports(ctx, options) {
|
|
|
58
59
|
const updatedFiles = createUpdatedFilesArray(meta.packageJson.data, buildOptions.outDir);
|
|
59
60
|
const mergedExports = mergeCustomExportsWithGenerated(exportsField, options.customExports, ctx);
|
|
60
61
|
const newPackageJson = createUpdatedPackageJson(meta.packageJson.data, entryPoints, mergedExports, updatedFiles);
|
|
62
|
+
if (equal(newPackageJson, meta.packageJson.data)) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
61
65
|
await Bun.write(meta.packageJson.path, JSON.stringify(newPackageJson, null, 2));
|
|
62
66
|
} catch {
|
|
63
67
|
logger.error("Failed to update package.json");
|
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.8.
|
|
4
|
+
"version": "0.8.67",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"@clack/prompts": "^0.10.1",
|
|
50
50
|
"chokidar": "^4.0.3",
|
|
51
51
|
"coffi": "^0.1.31",
|
|
52
|
+
"fast-deep-equal": "^3.1.3",
|
|
52
53
|
"giget": "^2.0.0",
|
|
53
54
|
"picocolors": "^1.1.1",
|
|
54
55
|
"replace-in-file": "^8.3.0",
|