vite-plugin-lib 2.2.0 → 2.2.1

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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -126,7 +126,7 @@ function tsconfigPaths(options = {}) {
126
126
  const tsconfigPath = path.resolve(config.root ?? ".", tsconfig);
127
127
  const { baseUrl, paths } = await readConfig(tsconfigPath);
128
128
  if (!baseUrl || !paths) {
129
- log("No paths found in tsconfig.json.");
129
+ log(`No paths found in ${tsconfig}.`);
130
130
  return config;
131
131
  }
132
132
  const pathToAlias = pathToAliasFactory(tsconfigPath, baseUrl, verbose);
@@ -266,7 +266,7 @@ function formatToFileName(entry, format) {
266
266
  function library(options = {}) {
267
267
  const mergedOptions = mergeWithDefaults(options);
268
268
  const plugins = [
269
- tsconfigPaths(),
269
+ tsconfigPaths(mergedOptions),
270
270
  buildConfig(mergedOptions),
271
271
  dts__default({
272
272
  cleanVueFileName: true,
@@ -315,7 +315,7 @@ async function readConfig(configPath) {
315
315
  return options;
316
316
  } catch (error) {
317
317
  const message = getErrorMessage(error);
318
- logError(`Could not read tsconfig.json: ${message}`);
318
+ logError(`Could not read ${configPath}: ${message}`);
319
319
  throw error;
320
320
  }
321
321
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-plugin-lib",
3
3
  "type": "module",
4
- "version": "2.2.0",
4
+ "version": "2.2.1",
5
5
  "description": "Vite plugin for build configuration, automatic aliases, and type declarations.",
6
6
  "author": "Jan Müller <janmueller3698@gmail.com>",
7
7
  "license": "MIT",