vite-plugin-lib 2.0.6 → 2.0.7

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/README.md CHANGED
@@ -24,7 +24,6 @@ This highly opinionated all-in one Vite plugin enables automatic alias configura
24
24
 
25
25
  ```ts
26
26
  import { defineConfig } from 'vite'
27
-
28
27
  import { tsconfigPaths } from 'vite-plugin-lib'
29
28
 
30
29
  export default defineConfig({
@@ -38,7 +37,6 @@ The `library` plugin includes the `alias` plugin, configures build settings, and
38
37
 
39
38
  ```ts
40
39
  import { defineConfig } from 'vite'
41
-
42
40
  import { library } from 'vite-plugin-lib'
43
41
 
44
42
  export default defineConfig({
package/dist/index.mjs CHANGED
@@ -50,7 +50,11 @@ async function createMTSImports(file, verbose) {
50
50
  await writeFile(targetFile, modified.join("\n"));
51
51
  }
52
52
  function transformLine(file, line, verbose) {
53
- return transformStaticImport(file, line, "'", verbose) ?? transformStaticImport(file, line, '"', verbose) ?? transformExport(file, line, "'", verbose) ?? transformExport(file, line, '"', verbose) ?? line;
53
+ return (
54
+ // eslint-disable-next-line style/quotes
55
+ transformStaticImport(file, line, "'", verbose) ?? transformStaticImport(file, line, '"', verbose) ?? // eslint-disable-next-line style/quotes
56
+ transformExport(file, line, "'", verbose) ?? transformExport(file, line, '"', verbose) ?? line
57
+ );
54
58
  }
55
59
  function transformStaticImport(file, line, quote, verbose) {
56
60
  const importPathMarker = `from ${quote}`;
@@ -299,7 +303,6 @@ async function readConfig(configPath) {
299
303
  }
300
304
  const { options } = ts.parseJsonConfigFileContent(
301
305
  config,
302
- // eslint-disable-next-line import/no-named-as-default-member
303
306
  ts.sys,
304
307
  path.dirname(configPath)
305
308
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-lib",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
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",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "types": "dist/index.d.mts",
28
28
  "files": [
29
- "dist",
30
- "LICENSE"
29
+ "LICENSE",
30
+ "dist"
31
31
  ],
32
32
  "peerDependencies": {
33
33
  "typescript": "*",
@@ -35,14 +35,14 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "picocolors": "1.0.0",
38
- "vite-plugin-dts": "3.7.1"
38
+ "vite-plugin-dts": "3.7.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@types/node": "20.11.5",
41
+ "@types/node": "20.11.17",
42
42
  "typescript": "5.3.3",
43
43
  "unbuild": "2.0.0",
44
- "vite": "5.0.12",
45
- "@yeger/tsconfig": "2.0.3"
44
+ "vite": "5.1.0",
45
+ "@yeger/tsconfig": "2.0.4"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"