prebundle 1.0.3 → 1.1.0-beta.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/README.md +17 -1
- package/compiled/fast-glob/index.d.ts +1 -0
- package/compiled/fast-glob/index.js +7299 -0
- package/compiled/fast-glob/license +21 -0
- package/compiled/fast-glob/package.json +1 -0
- package/compiled/fs-extra/index.d.ts +1 -0
- package/compiled/fs-extra/index.js +2818 -0
- package/compiled/fs-extra/license +15 -0
- package/compiled/fs-extra/package.json +1 -0
- package/compiled/rslog/index.d.ts +66 -0
- package/compiled/rslog/index.js +410 -0
- package/compiled/rslog/license +21 -0
- package/compiled/rslog/package.json +1 -0
- package/dist/helper.js +5 -3
- package/dist/prebundle.js +64 -29
- package/dist/types.d.ts +3 -0
- package/package.json +10 -5
package/dist/types.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export type DependencyConfig = {
|
|
|
15
15
|
packageJsonField?: string[];
|
|
16
16
|
/** Whether to ignore type definitions */
|
|
17
17
|
ignoreDts?: boolean;
|
|
18
|
+
/** Target ECMA version */
|
|
19
|
+
target?: string;
|
|
18
20
|
beforeBundle?: (task: ParsedTask) => void | Promise<void>;
|
|
19
21
|
afterBundle?: (task: ParsedTask) => void | Promise<void>;
|
|
20
22
|
};
|
|
@@ -32,6 +34,7 @@ export type ParsedTask = {
|
|
|
32
34
|
distPath: string;
|
|
33
35
|
importPath: string;
|
|
34
36
|
ignoreDts?: boolean;
|
|
37
|
+
target: NonNullable<DependencyConfig['target']>;
|
|
35
38
|
minify: NonNullable<DependencyConfig['minify']>;
|
|
36
39
|
depName: NonNullable<DependencyConfig['name']>;
|
|
37
40
|
externals: NonNullable<DependencyConfig['externals']>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prebundle",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.1.0-beta.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
-
"bin.js"
|
|
12
|
+
"bin.js",
|
|
13
|
+
"compiled"
|
|
13
14
|
],
|
|
14
15
|
"bin": {
|
|
15
16
|
"prebundle": "./bin.js"
|
|
@@ -17,13 +18,16 @@
|
|
|
17
18
|
"dependencies": {
|
|
18
19
|
"@vercel/ncc": "0.38.1",
|
|
19
20
|
"dts-packer": "0.0.3",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
21
|
+
"rollup": "^4.17.1",
|
|
22
|
+
"rollup-plugin-dts": "^6.1.0"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
25
|
"@types/fs-extra": "^11.0.4",
|
|
25
26
|
"@types/node": "18.x",
|
|
27
|
+
"fast-glob": "^3.3.2",
|
|
28
|
+
"fs-extra": "^11.2.0",
|
|
26
29
|
"prettier": "^3.2.5",
|
|
30
|
+
"rslog": "^1.2.2",
|
|
27
31
|
"typescript": "^5.4.2"
|
|
28
32
|
},
|
|
29
33
|
"publishConfig": {
|
|
@@ -31,6 +35,7 @@
|
|
|
31
35
|
},
|
|
32
36
|
"scripts": {
|
|
33
37
|
"dev": "tsc --watch",
|
|
34
|
-
"build": "tsc"
|
|
38
|
+
"build": "tsc",
|
|
39
|
+
"prebundle": "node ./bin.js"
|
|
35
40
|
}
|
|
36
41
|
}
|