dtsroll 1.8.1 → 1.8.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/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { cli } from 'cleye';
|
|
3
|
-
import { b as bgYellow, a as black, d as dtsroll, l as logOutput } from './index-
|
|
3
|
+
import { b as bgYellow, a as black, d as dtsroll, l as logOutput } from './index-BkaN1nHE.mjs';
|
|
4
4
|
import { patchErrorWithTrace } from 'rollup-plugin-import-trace';
|
|
5
5
|
import 'node:path';
|
|
6
6
|
import 'node:fs/promises';
|
|
@@ -14,7 +14,7 @@ import 'resolve-pkg-maps';
|
|
|
14
14
|
import 'byte-size';
|
|
15
15
|
|
|
16
16
|
var name = "dtsroll";
|
|
17
|
-
var version = "1.8.
|
|
17
|
+
var version = "1.8.2";
|
|
18
18
|
var description = "Bundle dts files";
|
|
19
19
|
|
|
20
20
|
const argv = cli({
|
|
@@ -2852,7 +2852,7 @@ ${getNodeIndent(node)}`));
|
|
|
2852
2852
|
const name = element.propertyName?.text || element.name.text;
|
|
2853
2853
|
const isType = node.moduleSpecifier ? this.isReExportTypeOnly(element.name.text) : this.isTypeOnly(name);
|
|
2854
2854
|
if (isType) {
|
|
2855
|
-
typeNames.push(element
|
|
2855
|
+
typeNames.push(getExportSpecifierBinding(element));
|
|
2856
2856
|
} else {
|
|
2857
2857
|
valueNames.push(element.getText());
|
|
2858
2858
|
}
|
|
@@ -2936,6 +2936,12 @@ function getNodeIndent(node) {
|
|
|
2936
2936
|
const match = node.getFullText().match(/^(?:\n*)([ ]*)/);
|
|
2937
2937
|
return " ".repeat(match?.[1]?.length || 0);
|
|
2938
2938
|
}
|
|
2939
|
+
function getExportSpecifierBinding(element) {
|
|
2940
|
+
if (element.propertyName) {
|
|
2941
|
+
return `${element.propertyName.getText()} as ${element.name.getText()}`;
|
|
2942
|
+
}
|
|
2943
|
+
return element.name.getText();
|
|
2944
|
+
}
|
|
2939
2945
|
const RESOLVED_MODULE_PREFIX = "dts-resolved:";
|
|
2940
2946
|
const RESOLVED_MODULE_COMMENT = new RegExp(`\\/\\*${RESOLVED_MODULE_PREFIX}(.+?)\\*\\/`);
|
|
2941
2947
|
function encodeResolvedModule(absolutePath) {
|
package/dist/index.mjs
CHANGED
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtsroll",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "Bundle dts files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundle",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
46
46
|
"byte-size": "^9.0.1",
|
|
47
|
-
"cleye": "^2.
|
|
47
|
+
"cleye": "^2.6.0",
|
|
48
48
|
"convert-source-map": "^2.0.0",
|
|
49
49
|
"empathic": "^2.0.0",
|
|
50
50
|
"resolve-pkg-maps": "^1.0.0",
|
|
51
|
-
"rollup": "^4.60.
|
|
51
|
+
"rollup": "^4.60.2",
|
|
52
52
|
"rollup-plugin-import-trace": "^1.0.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"typescript": "^4.5 || ^5.0 || ^6.0",
|
|
56
|
-
"vite": "5 || 6 || 7"
|
|
56
|
+
"vite": "5 || 6 || 7 || 8"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"vite": {
|