prebundle 1.1.0-beta.0 → 1.1.0-beta.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/prebundle.js +3 -2
- package/package.json +1 -2
package/dist/prebundle.js
CHANGED
|
@@ -2,11 +2,12 @@ import { join } from 'node:path';
|
|
|
2
2
|
import ncc from '@vercel/ncc';
|
|
3
3
|
import fastGlob from '../compiled/fast-glob/index.js';
|
|
4
4
|
import fs from '../compiled/fs-extra/index.js';
|
|
5
|
-
import
|
|
5
|
+
import rslog from '../compiled/rslog/index.js';
|
|
6
6
|
import { DEFAULT_EXTERNALS } from './constant.js';
|
|
7
7
|
import { pick, replaceFileContent } from './helper.js';
|
|
8
8
|
import { dts } from 'rollup-plugin-dts';
|
|
9
9
|
import { rollup } from 'rollup';
|
|
10
|
+
const { logger } = rslog;
|
|
10
11
|
function emitAssets(assets, distPath) {
|
|
11
12
|
for (const key of Object.keys(assets)) {
|
|
12
13
|
const asset = assets[key];
|
|
@@ -78,7 +79,7 @@ async function emitDts(task, externals) {
|
|
|
78
79
|
dir: task.distPath,
|
|
79
80
|
format: 'esm',
|
|
80
81
|
exports: 'named',
|
|
81
|
-
entryFileNames: '
|
|
82
|
+
entryFileNames: 'index.d.ts',
|
|
82
83
|
};
|
|
83
84
|
const bundle = await rollup(inputConfig);
|
|
84
85
|
await bundle.write(outputConfig);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prebundle",
|
|
3
|
-
"version": "1.1.0-beta.
|
|
3
|
+
"version": "1.1.0-beta.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@vercel/ncc": "0.38.1",
|
|
20
|
-
"dts-packer": "0.0.3",
|
|
21
20
|
"rollup": "^4.17.1",
|
|
22
21
|
"rollup-plugin-dts": "^6.1.0"
|
|
23
22
|
},
|