@dxtmisha/configuration 0.4.6 → 0.4.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/configuration",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Shared configuration files for DXT UI - Vite configs and TypeScript configs for building UI components",
|
|
7
7
|
"keywords": [
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"viteconfig/",
|
|
31
31
|
"README.md",
|
|
32
32
|
"package.json",
|
|
33
|
+
"tsconfig.app.json",
|
|
33
34
|
"LICENSE"
|
|
34
35
|
],
|
|
35
36
|
"exports": {
|
|
@@ -53,6 +54,10 @@
|
|
|
53
54
|
"types": "./viteconfig/viteLibraries.config.d.ts",
|
|
54
55
|
"default": "./viteconfig/viteLibraries.config.js"
|
|
55
56
|
},
|
|
57
|
+
"./viteLibrariesRollup": {
|
|
58
|
+
"types": "./viteconfig/viteLibrariesRollup.config.d.ts",
|
|
59
|
+
"default": "./viteconfig/viteLibrariesRollup.config.js"
|
|
60
|
+
},
|
|
56
61
|
"./viteMdx": {
|
|
57
62
|
"types": "./viteconfig/viteMdx.config.d.ts",
|
|
58
63
|
"default": "./viteconfig/viteMdx.config.js"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const viteLibrariesRollup: {}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import fs from 'node:fs'
|
|
2
|
+
import path from 'node:path'
|
|
3
|
+
|
|
4
|
+
import { viteBasicFunction } from './viteBasicFunction.config.js'
|
|
5
|
+
|
|
6
|
+
// https://vite.dev/config/
|
|
7
|
+
export const viteLibrariesRollup = viteBasicFunction(
|
|
8
|
+
undefined,
|
|
9
|
+
undefined,
|
|
10
|
+
[
|
|
11
|
+
...(() => {
|
|
12
|
+
const dir = path.join('src', 'library')
|
|
13
|
+
|
|
14
|
+
if (fs.existsSync(dir)) {
|
|
15
|
+
return fs.readdirSync(dir)
|
|
16
|
+
.filter(file => file.endsWith('.ts'))
|
|
17
|
+
.map(file => path.join(dir, file))
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return []
|
|
21
|
+
})()
|
|
22
|
+
],
|
|
23
|
+
undefined,
|
|
24
|
+
undefined,
|
|
25
|
+
undefined,
|
|
26
|
+
undefined,
|
|
27
|
+
undefined,
|
|
28
|
+
true
|
|
29
|
+
)
|