@dxtmisha/configuration 0.4.4 → 0.4.6

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",
4
+ "version": "0.4.6",
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": [
@@ -3,18 +3,24 @@
3
3
  *
4
4
  * Создаёт базовую конфигурацию Vite для библиотек с функциями/композаблами/классами.
5
5
  * @param name global library name / глобальное имя библиотеки
6
+ * @param target build target / цель сборки
6
7
  * @param entry entry points / входные точки сборки
7
8
  * @param include glob patterns for d.ts / паттерны для генерации d.ts
8
9
  * @param includeExtended extra patterns / дополнительные паттерны
9
- * @param external external libraries / внешние библиотеки
10
- * @param externalExtended extra libraries / дополнительные библиотеки
10
+ * @param external external dependencies / внешние зависимости
11
+ * @param externalExtended extra dependencies / дополнительные зависимости
12
+ * @param fileCssName name of the output CSS file / имя выходного CSS файла
13
+ * @param rollupTypes whether to use rollupTypes in dts plugin / использовать ли rollupTypes в плагине dts
11
14
  * @returns Vite config / конфигурация Vite
12
15
  */
13
16
  export declare const viteBasicFunction: (
14
17
  name?: string,
15
- entry?: string[],
18
+ target?: string,
19
+ entry?: string | string[] | Record<string, string>,
16
20
  include?: string[],
17
21
  includeExtended?: string[],
18
22
  external?: string[],
19
- externalExtended?: string[]
23
+ externalExtended?: string[],
24
+ fileCssName?: string,
25
+ rollupTypes?: boolean
20
26
  ) => import('vite').UserConfigExport
@@ -27,9 +27,7 @@ import cssnanoPlugin from 'cssnano'
27
27
  export const viteBasicFunction = (
28
28
  name = 'dxt-ui',
29
29
  target = 'es2018',
30
- entry = [
31
- 'src/library.ts'
32
- ],
30
+ entry = 'src/library.ts',
33
31
  include = [
34
32
  'src/**/*.ts',
35
33
  'src/**/*.tsx',
@@ -115,8 +113,8 @@ export const viteBasicFunction = (
115
113
  plugins: [
116
114
  vue(),
117
115
  dts({
118
- clearPureImport: false,
119
- copyDtsFiles: false,
116
+ clearPureImport: true,
117
+ copyDtsFiles: true,
120
118
  exclude: [
121
119
  '**/__tests__/**',
122
120
  '**/*.test.ts',
@@ -129,6 +127,7 @@ export const viteBasicFunction = (
129
127
  '**/dist-temporary/**',
130
128
  '**/*.config.ts',
131
129
  '**/*.config.js',
130
+ '**/.gitignore',
132
131
  '**/vite-env.d.ts'
133
132
  ],
134
133
  include: [
@@ -136,7 +135,6 @@ export const viteBasicFunction = (
136
135
  ...include,
137
136
  ...includeExtended
138
137
  ],
139
- insertTypesEntry: true,
140
138
  outDir: 'dist',
141
139
  rollupTypes,
142
140
  staticImport: true,