vite-plugin-lib 2.0.10 → 2.0.11
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/index.mjs +1 -4
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -128,7 +128,7 @@ function tsconfigPaths(options = {}) {
|
|
|
128
128
|
return config;
|
|
129
129
|
}
|
|
130
130
|
const pathToAlias = pathToAliasFactory(tsconfigPath, baseUrl, verbose);
|
|
131
|
-
const aliasOptions = Object.entries(paths).map(pathToAlias).filter(
|
|
131
|
+
const aliasOptions = Object.entries(paths).map(pathToAlias).filter((alias) => alias !== void 0);
|
|
132
132
|
if (aliasOptions.length > 0) {
|
|
133
133
|
logInjectedAliases(aliasOptions, config, verbose);
|
|
134
134
|
}
|
|
@@ -298,9 +298,6 @@ async function readConfig(configPath) {
|
|
|
298
298
|
try {
|
|
299
299
|
const configFileText = await readFile(configPath, { encoding: "utf-8" });
|
|
300
300
|
const { config } = ts.parseConfigFileTextToJson(configPath, configFileText);
|
|
301
|
-
if (!("baseUrl" in config?.compilerOptions)) {
|
|
302
|
-
throw new Error("No baseUrl provided in tsconfig.json.");
|
|
303
|
-
}
|
|
304
301
|
const { options } = ts.parseJsonConfigFileContent(
|
|
305
302
|
config,
|
|
306
303
|
ts.sys,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-lib",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Vite plugin for build configuration, automatic aliases, and type declarations.",
|
|
5
5
|
"author": "Jan Müller <janmueller3698@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"vite-plugin-dts": "3.9.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/node": "20.14.
|
|
46
|
-
"typescript": "5.
|
|
45
|
+
"@types/node": "20.14.7",
|
|
46
|
+
"typescript": "5.5.2",
|
|
47
47
|
"unbuild": "2.0.0",
|
|
48
|
-
"vite": "5.
|
|
49
|
-
"@yeger/tsconfig": "2.0.
|
|
48
|
+
"vite": "5.3.1",
|
|
49
|
+
"@yeger/tsconfig": "2.0.7"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|