Skip to content

Commit aff67c4

Browse files
committed
fix: change output dir to adapt tsup default config
1 parent 2da968f commit aff67c4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"name": "vite-plugin-auto-mpa-html",
33
"version": "0.1.1-alpha.0",
44
"description": "A vite plugin for generating HTML entries automatically.",
5-
"main": "./lib/index.js",
6-
"module": "./lib/index.mjs",
7-
"types": "./lib/index.d.ts",
5+
"main": "./dist/index.js",
6+
"module": "./dist/index.mjs",
7+
"types": "./dist/index.d.ts",
88
"exports": {
99
".": {
10-
"require": "./lib/index.cjs",
11-
"import": "./lib/index.js",
12-
"types": "./lib/index.d.ts"
10+
"require": "./dist/index.cjs",
11+
"import": "./dist/index.js",
12+
"types": "./dist/index.d.ts"
1313
}
1414
},
1515
"scripts": {

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
5353
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
5454
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
55-
"outDir": "./lib", /* Specify an output folder for all emitted files. */
55+
"outDir": "./dist", /* Specify an output folder for all emitted files. */
5656
// "removeComments": true, /* Disable emitting comments. */
5757
// "noEmit": true, /* Disable emitting files from a compilation. */
5858
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
@@ -105,7 +105,7 @@
105105
},
106106
"exclude": [
107107
"vitest.config.ts",
108-
"**/lib/",
108+
"**/dist/",
109109
"commitlint.config.js"
110110
]
111111
}

0 commit comments

Comments
 (0)