Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit f60f671

Browse files
authored
feat: add lib output (#128)
1 parent 3cd6ae8 commit f60f671

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
"require": "./dist/webpack.js",
5050
"import": "./dist/webpack.mjs",
5151
"types": "./webpack.d.ts"
52+
},
53+
"./lib": {
54+
"require": "./dist/lib.js",
55+
"import": "./dist/lib.mjs",
56+
"types": "./lib.d.ts"
5257
}
5358
},
5459
"main": "dist/index.js",

rollup.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const entries = [
1414
'src/rollup.ts',
1515
'src/esbuild.ts',
1616
'src/nuxt.ts',
17+
'src/lib.ts',
1718
]
1819

1920
const dtsEntries = [

src/lib.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './core'

0 commit comments

Comments
 (0)