@pob/rollup-esbuild 6.6.0 → 7.0.0
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/CHANGELOG.md +23 -0
- package/lib/createRollupConfig.js +24 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.0.0](https://github.com/christophehurpeau/pob/compare/@pob/rollup-esbuild@6.7.0...@pob/rollup-esbuild@7.0.0) (2025-08-24)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* drop node 20
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* drop node 20 ([bb57350](https://github.com/christophehurpeau/pob/commit/bb573502c71f7316a54b4ce75203c05c0ba2e681))
|
|
15
|
+
|
|
16
|
+
Version bump for dependency: @pob/rollup
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## [6.7.0](https://github.com/christophehurpeau/pob/compare/@pob/rollup-esbuild@6.6.0...@pob/rollup-esbuild@6.7.0) (2025-08-23)
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* enhance createRollupConfig to support environment-specific extensions ([d7f0d50](https://github.com/christophehurpeau/pob/commit/d7f0d50d139d8b92c56c6f6df24433e219c81fb7))
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **deps:** update dependency esbuild to v0.25.9 ([#2549](https://github.com/christophehurpeau/pob/issues/2549)) ([c43cba4](https://github.com/christophehurpeau/pob/commit/c43cba4845747d03f8200cdead9625b82fd0b88a))
|
|
28
|
+
|
|
6
29
|
## [6.6.0](https://github.com/christophehurpeau/pob/compare/@pob/rollup-esbuild@6.5.1...@pob/rollup-esbuild@6.6.0) (2025-06-28)
|
|
7
30
|
|
|
8
31
|
### Features
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { readFileSync } from "node:fs";
|
|
1
|
+
import { chmodSync, readFileSync } from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { nodeFormatToExt, resolveEntry } from "@pob/rollup";
|
|
4
4
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
@@ -31,7 +31,10 @@ export default function createRollupConfig({
|
|
|
31
31
|
|
|
32
32
|
const createConfigForEnv = (entry, entryPath, env) => {
|
|
33
33
|
const extensions = getExtensions(
|
|
34
|
-
[".ts", jsx && ".tsx", ".json"]
|
|
34
|
+
[".ts", jsx && ".tsx", ".json"].flatMap((ext) => [
|
|
35
|
+
`.target-${env.target}${ext}`,
|
|
36
|
+
`${ext}`,
|
|
37
|
+
]),
|
|
35
38
|
env,
|
|
36
39
|
).filter(Boolean);
|
|
37
40
|
|
|
@@ -115,6 +118,24 @@ export default function createRollupConfig({
|
|
|
115
118
|
})(),
|
|
116
119
|
|
|
117
120
|
...(typeof plugins === "function" ? plugins(env) : plugins),
|
|
121
|
+
|
|
122
|
+
env.executable
|
|
123
|
+
? [
|
|
124
|
+
{
|
|
125
|
+
name: "@pob/rollup-esbuild/executable-plugin",
|
|
126
|
+
writeBundle(options, bundle) {
|
|
127
|
+
Object.entries(bundle).forEach(([key, value]) => {
|
|
128
|
+
if (value.isEntry) {
|
|
129
|
+
chmodSync(
|
|
130
|
+
path.join(cwd, outDirectory, value.fileName),
|
|
131
|
+
0o755,
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
]
|
|
138
|
+
: [],
|
|
118
139
|
].filter(Boolean),
|
|
119
140
|
};
|
|
120
141
|
};
|
|
@@ -125,7 +146,7 @@ export default function createRollupConfig({
|
|
|
125
146
|
pobConfig.envs || [
|
|
126
147
|
{
|
|
127
148
|
target: "node",
|
|
128
|
-
version: "
|
|
149
|
+
version: "22",
|
|
129
150
|
},
|
|
130
151
|
];
|
|
131
152
|
const entryPath = resolveEntry(cwd, entryName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/rollup-esbuild",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "rollup configuration with typescript for pob",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"homepage": "https://github.com/christophehurpeau/pob",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=
|
|
16
|
+
"node": ">=22.18.0"
|
|
17
17
|
},
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"bin": {
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@pob/rollup": "
|
|
57
|
+
"@pob/rollup": "7.0.0",
|
|
58
58
|
"@rollup/plugin-node-resolve": "16.0.1",
|
|
59
59
|
"@rollup/plugin-replace": "6.0.2",
|
|
60
60
|
"@rollup/plugin-run": "3.1.0",
|
|
61
|
-
"esbuild": "0.25.
|
|
61
|
+
"esbuild": "0.25.9",
|
|
62
62
|
"rollup": "4.44.1",
|
|
63
63
|
"rollup-config-external-dependencies": "^3.0.1",
|
|
64
64
|
"rollup-plugin-esbuild": "6.2.1"
|