@hypernym/bundler 0.6.0 → 0.6.2
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/bin/index.mjs +3 -5
- package/package.json +11 -11
package/dist/bin/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ const externals = [
|
|
|
26
26
|
];
|
|
27
27
|
|
|
28
28
|
const name = "bundler";
|
|
29
|
-
const version = `0.6.
|
|
29
|
+
const version = `0.6.2`;
|
|
30
30
|
|
|
31
31
|
const cl = console.log;
|
|
32
32
|
const logger = {
|
|
@@ -233,7 +233,7 @@ async function build(cwd, options) {
|
|
|
233
233
|
if (_entry.pluginsOptions?.replace) {
|
|
234
234
|
_entry.plugins.unshift(
|
|
235
235
|
replacePlugin({
|
|
236
|
-
|
|
236
|
+
preventAssignment: true,
|
|
237
237
|
..._entry.pluginsOptions.replace
|
|
238
238
|
})
|
|
239
239
|
);
|
|
@@ -324,7 +324,7 @@ async function build(cwd, options) {
|
|
|
324
324
|
path: _entry.output,
|
|
325
325
|
size: stats.size,
|
|
326
326
|
buildTime: Date.now() - entryStart,
|
|
327
|
-
format:
|
|
327
|
+
format: "dts",
|
|
328
328
|
logs: buildLogs
|
|
329
329
|
});
|
|
330
330
|
buildStats.size = buildStats.size + stats.size;
|
|
@@ -417,8 +417,6 @@ async function createBuilder(cwd, args, options) {
|
|
|
417
417
|
format = "cjs";
|
|
418
418
|
if (format === "module")
|
|
419
419
|
format = "esm";
|
|
420
|
-
if (base.includes(".d."))
|
|
421
|
-
format = "dts";
|
|
422
420
|
if (file.logs) {
|
|
423
421
|
for (const log of file.logs) {
|
|
424
422
|
cl(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hypernym/bundler",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"author": "Hypernym Studio",
|
|
5
5
|
"description": "ESM & TS module bundler.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -62,20 +62,20 @@
|
|
|
62
62
|
"@hypernym/utils": "^2.1.0",
|
|
63
63
|
"@rollup/plugin-json": "^6.0.1",
|
|
64
64
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
65
|
-
"@rollup/plugin-replace": "^5.0.
|
|
66
|
-
"esbuild": "^0.19.
|
|
67
|
-
"rollup": "^4.
|
|
65
|
+
"@rollup/plugin-replace": "^5.0.5",
|
|
66
|
+
"esbuild": "^0.19.8",
|
|
67
|
+
"rollup": "^4.6.0",
|
|
68
68
|
"rollup-plugin-dts": "^6.1.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@hypernym/eslint-config": "^2.0.
|
|
72
|
-
"@hypernym/prettier-config": "^2.0.
|
|
71
|
+
"@hypernym/eslint-config": "^2.0.3",
|
|
72
|
+
"@hypernym/prettier-config": "^2.0.3",
|
|
73
73
|
"@hypernym/tsconfig": "^1.1.0",
|
|
74
|
-
"@types/node": "^20.
|
|
75
|
-
"eslint": "^8.
|
|
76
|
-
"prettier": "^3.0
|
|
77
|
-
"tsx": "^
|
|
78
|
-
"typescript": "^5.
|
|
74
|
+
"@types/node": "^20.10.0",
|
|
75
|
+
"eslint": "^8.54.0",
|
|
76
|
+
"prettier": "^3.1.0",
|
|
77
|
+
"tsx": "^4.5.0",
|
|
78
|
+
"typescript": "^5.3.2"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=v18.0.0"
|