vite-plugin-lib 2.0.6 → 2.0.8
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 +0 -2
- package/dist/index.mjs +5 -2
- package/package.json +12 -8
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
|
|
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,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-lib",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
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",
|
|
7
7
|
"funding": "https://github.com/sponsors/DerYeger",
|
|
8
8
|
"homepage": "https://github.com/DerYeger/yeger/tree/main/packages/vite-plugin-lib",
|
|
9
|
-
"repository":
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/DerYeger/yeger.git",
|
|
12
|
+
"directory": "packages/vite-plugin-lib"
|
|
13
|
+
},
|
|
10
14
|
"bugs": {
|
|
11
15
|
"url": "https://github.com/DerYeger/yeger/issues"
|
|
12
16
|
},
|
|
@@ -26,8 +30,8 @@
|
|
|
26
30
|
},
|
|
27
31
|
"types": "dist/index.d.mts",
|
|
28
32
|
"files": [
|
|
29
|
-
"
|
|
30
|
-
"
|
|
33
|
+
"LICENSE",
|
|
34
|
+
"dist"
|
|
31
35
|
],
|
|
32
36
|
"peerDependencies": {
|
|
33
37
|
"typescript": "*",
|
|
@@ -35,14 +39,14 @@
|
|
|
35
39
|
},
|
|
36
40
|
"dependencies": {
|
|
37
41
|
"picocolors": "1.0.0",
|
|
38
|
-
"vite-plugin-dts": "3.7.
|
|
42
|
+
"vite-plugin-dts": "3.7.2"
|
|
39
43
|
},
|
|
40
44
|
"devDependencies": {
|
|
41
|
-
"@types/node": "20.11.
|
|
45
|
+
"@types/node": "20.11.19",
|
|
42
46
|
"typescript": "5.3.3",
|
|
43
47
|
"unbuild": "2.0.0",
|
|
44
|
-
"vite": "5.
|
|
45
|
-
"@yeger/tsconfig": "2.0.
|
|
48
|
+
"vite": "5.1.3",
|
|
49
|
+
"@yeger/tsconfig": "2.0.5"
|
|
46
50
|
},
|
|
47
51
|
"publishConfig": {
|
|
48
52
|
"access": "public"
|