bunchee 5.3.0-beta.0 → 5.3.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/dist/bin/cli.js +2 -2
- package/dist/index.js +0 -1
- package/package.json +18 -15
package/dist/bin/cli.js
CHANGED
|
@@ -470,7 +470,7 @@ function lint$1(pkg) {
|
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
var version = "5.3.0
|
|
473
|
+
var version = "5.3.0";
|
|
474
474
|
|
|
475
475
|
function relativify(path) {
|
|
476
476
|
return path.startsWith('.') ? path : `./${path}`;
|
|
@@ -580,7 +580,6 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
|
|
|
580
580
|
const exportType = getExportTypeFromExportPath(exportPath);
|
|
581
581
|
sourceFilesMap[exportType] = indexAbsoluteFile;
|
|
582
582
|
exportsEntries.set(exportPath, sourceFilesMap);
|
|
583
|
-
break;
|
|
584
583
|
}
|
|
585
584
|
}
|
|
586
585
|
}
|
|
@@ -1054,6 +1053,7 @@ async function run(args) {
|
|
|
1054
1053
|
if (watch) {
|
|
1055
1054
|
logWatcherBuildTime(assetJobs, spinner);
|
|
1056
1055
|
} else {
|
|
1056
|
+
stopSpinner();
|
|
1057
1057
|
if (assetJobs.length === 0) {
|
|
1058
1058
|
logger.warn('The "src" directory does not contain any entry files. ' + 'For proper usage, please refer to the following link: ' + 'https://github.com/huozhi/bunchee#usage');
|
|
1059
1059
|
}
|
package/dist/index.js
CHANGED
|
@@ -696,7 +696,6 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
|
|
|
696
696
|
const exportType = getExportTypeFromExportPath(exportPath);
|
|
697
697
|
sourceFilesMap[exportType] = indexAbsoluteFile;
|
|
698
698
|
exportsEntries.set(exportPath, sourceFilesMap);
|
|
699
|
-
break;
|
|
700
699
|
}
|
|
701
700
|
}
|
|
702
701
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunchee",
|
|
3
|
-
"version": "5.3.0
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "zero config bundler for js/ts/jsx libraries",
|
|
5
5
|
"bin": "./dist/bin/cli.js",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"test": "jest --env node",
|
|
10
|
+
"test:update": "TEST_UPDATE_SNAPSHOT=1 pnpm test",
|
|
11
|
+
"test:post": "POST_BUILD=1 pnpm jest test/compile.test.ts test/integration.test.ts",
|
|
12
|
+
"test:ci": "[ -z $CI ] || pnpm test",
|
|
13
|
+
"clean": "rm -rf ./dist",
|
|
14
|
+
"typecheck": "tsc --noEmit && tsc -p test/tsconfig.json --noEmit",
|
|
15
|
+
"prepublishOnly": "pnpm clean && pnpm build && chmod +x ./dist/bin/cli.js && pnpm test:ci",
|
|
16
|
+
"tsx": "SWC_NODE_IGNORE_DYNAMIC=1 node -r @swc-node/register",
|
|
17
|
+
"ts-bunchee": "pnpm tsx ./src/bin/index.ts",
|
|
18
|
+
"build-dir": "pnpm ts-bunchee --cwd",
|
|
19
|
+
"build": "SWC_NODE_IGNORE_DYNAMIC=1 node -r @swc-node/register ./src/bin/index.ts --runtime node",
|
|
20
|
+
"format": "prettier --write .",
|
|
21
|
+
"prepare": "husky"
|
|
22
|
+
},
|
|
8
23
|
"type": "commonjs",
|
|
9
24
|
"keywords": [
|
|
10
25
|
"bundler",
|
|
@@ -104,17 +119,5 @@
|
|
|
104
119
|
],
|
|
105
120
|
"testTimeout": 60000
|
|
106
121
|
},
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
"test:update": "TEST_UPDATE_SNAPSHOT=1 pnpm test",
|
|
110
|
-
"test:post": "POST_BUILD=1 pnpm jest test/compile.test.ts test/integration.test.ts",
|
|
111
|
-
"test:ci": "[ -z $CI ] || pnpm test",
|
|
112
|
-
"clean": "rm -rf ./dist",
|
|
113
|
-
"typecheck": "tsc --noEmit && tsc -p test/tsconfig.json --noEmit",
|
|
114
|
-
"tsx": "SWC_NODE_IGNORE_DYNAMIC=1 node -r @swc-node/register",
|
|
115
|
-
"ts-bunchee": "pnpm tsx ./src/bin/index.ts",
|
|
116
|
-
"build-dir": "pnpm ts-bunchee --cwd",
|
|
117
|
-
"build": "SWC_NODE_IGNORE_DYNAMIC=1 node -r @swc-node/register ./src/bin/index.ts --runtime node",
|
|
118
|
-
"format": "prettier --write ."
|
|
119
|
-
}
|
|
120
|
-
}
|
|
122
|
+
"packageManager": "pnpm@9.4.0"
|
|
123
|
+
}
|