prebundle 1.6.2 → 1.6.3
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/index.js +6 -5
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -92,18 +92,19 @@ function parseTasks(dependencies, globalPrettier) {
|
|
|
92
92
|
const result = [];
|
|
93
93
|
for (const dep of dependencies){
|
|
94
94
|
const depName = 'string' == typeof dep ? dep : dep.name;
|
|
95
|
+
const dtsOnly = 'string' == typeof dep ? false : dep.dtsOnly ?? false;
|
|
95
96
|
const importPath = join(cwd, DIST_DIR, depName);
|
|
96
97
|
const distPath = join(cwd, DIST_DIR, depName);
|
|
97
|
-
const depPath = findDepPath(depName);
|
|
98
|
-
if (!depPath) throw new Error(`Failed to resolve dependency: ${depName}`);
|
|
99
|
-
const depEntry = helper_require.resolve(depName, {
|
|
98
|
+
const depPath = dtsOnly ? null : findDepPath(depName);
|
|
99
|
+
if (!depPath && !dtsOnly) throw new Error(`Failed to resolve dependency: ${depName}`);
|
|
100
|
+
const depEntry = dtsOnly ? '' : helper_require.resolve(depName, {
|
|
100
101
|
paths: [
|
|
101
102
|
cwd
|
|
102
103
|
]
|
|
103
104
|
});
|
|
104
105
|
const info = {
|
|
105
106
|
depName,
|
|
106
|
-
depPath,
|
|
107
|
+
depPath: depPath ?? '',
|
|
107
108
|
depEntry,
|
|
108
109
|
distPath,
|
|
109
110
|
importPath
|
|
@@ -180,7 +181,7 @@ function findDirectTypeFile(filepath) {
|
|
|
180
181
|
default:
|
|
181
182
|
}
|
|
182
183
|
}
|
|
183
|
-
const { logger } = rslog;
|
|
184
|
+
const { logger: logger } = rslog;
|
|
184
185
|
function emitAssets(assets, distPath) {
|
|
185
186
|
for (const key of Object.keys(assets)){
|
|
186
187
|
const asset = assets[key];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prebundle",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/rstackjs/prebundle"
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"cac": "^6.7.14",
|
|
28
28
|
"@vercel/ncc": "0.38.4",
|
|
29
|
-
"prettier": "^3.
|
|
30
|
-
"rollup": "^4.
|
|
29
|
+
"prettier": "^3.8.1",
|
|
30
|
+
"rollup": "^4.57.1",
|
|
31
31
|
"rollup-plugin-dts": "^6.3.0",
|
|
32
|
-
"terser": "^5.
|
|
32
|
+
"terser": "^5.46.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@astrojs/sitemap": "^3.
|
|
36
|
-
"@rslib/core": "0.
|
|
37
|
-
"@rstest/core": "^0.
|
|
35
|
+
"@astrojs/sitemap": "^3.7.0",
|
|
36
|
+
"@rslib/core": "0.19.4",
|
|
37
|
+
"@rstest/core": "^0.8.3",
|
|
38
38
|
"@types/fs-extra": "^11.0.4",
|
|
39
|
-
"@types/node": "
|
|
39
|
+
"@types/node": "24.11.0",
|
|
40
40
|
"chalk": "^5.6.2",
|
|
41
41
|
"fast-glob": "^3.3.3",
|
|
42
|
-
"fs-extra": "^11.3.
|
|
42
|
+
"fs-extra": "^11.3.3",
|
|
43
43
|
"rslog": "^1.3.2",
|
|
44
44
|
"typescript": "^5.9.3"
|
|
45
45
|
},
|
|
46
|
-
"packageManager": "pnpm@10.
|
|
46
|
+
"packageManager": "pnpm@10.28.2",
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public",
|
|
49
49
|
"registry": "https://registry.npmjs.org/",
|