@digo-labs/common 0.1.9 → 0.1.11

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.
@@ -39,7 +39,7 @@ export interface WebsocketsHubConfig {
39
39
  port: number;
40
40
  }
41
41
  export interface WebsocketConnectionConfig {
42
- app: string;
42
+ app?: string;
43
43
  url?: string;
44
44
  id?: string;
45
45
  reconnect?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digo-labs/common",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -17,19 +17,17 @@
17
17
  "development": "./src/index.css",
18
18
  "default": "./dist/index.css"
19
19
  },
20
- "./vite.apps": "./vite.apps.ts",
21
20
  "./package.json": "./package.json"
22
21
  },
23
22
  "files": [
24
- "dist",
25
- "vite.apps.ts"
23
+ "dist"
26
24
  ],
27
25
  "publishConfig": {
28
26
  "access": "public",
29
27
  "registry": "https://registry.npmjs.org/"
30
28
  },
31
29
  "scripts": {
32
- "build": "vite build && cp src/index.css dist/index.css",
30
+ "build": "vite build",
33
31
  "lint": "eslint ./src",
34
32
  "lint:fix": "eslint ./src --fix"
35
33
  },
@@ -57,6 +55,6 @@
57
55
  },
58
56
  "devDependencies": {
59
57
  "@digo-labs/dev-dependencies": "*",
60
- "vite-multiple-assets": "^2.2.5"
58
+ "@digo-labs/vite-config": "*"
61
59
  }
62
60
  }
package/vite.apps.ts DELETED
@@ -1,50 +0,0 @@
1
- import { defineConfig } from 'vite';
2
- import react from '@vitejs/plugin-react';
3
- import tailwindcss from '@tailwindcss/vite';
4
- import tsconfigPaths from 'vite-tsconfig-paths';
5
- import { DynamicPublicDirectory } from 'vite-multiple-assets';
6
- import svgr from 'vite-plugin-svgr';
7
- import mdx from '@mdx-js/rollup';
8
- import remarkGfm from 'remark-gfm';
9
- import remarkFrontmatter from 'remark-frontmatter';
10
- import remarkMdxFrontmatter from 'remark-mdx-frontmatter';
11
- import rehypeSlug from 'rehype-slug';
12
-
13
- export type DigoViteConfigProperties = {
14
- includeAssetsFrom: string[];
15
- port: number;
16
- allowedHosts?: string[];
17
- };
18
-
19
- export function digoViteConfig(properties: DigoViteConfigProperties) {
20
- const { includeAssetsFrom, port, allowedHosts } = properties;
21
- return defineConfig({
22
- plugins: [
23
- react({
24
- babel: {
25
- plugins: ['module:@preact/signals-react-transform'],
26
- },
27
- }),
28
- tailwindcss(),
29
- tsconfigPaths(),
30
- DynamicPublicDirectory(
31
- includeAssetsFrom.map(mod => `../../${mod}/public/**`),
32
- ),
33
- svgr(),
34
- mdx({
35
- providerImportSource: '@mdx-js/react',
36
- remarkPlugins: [remarkGfm, remarkFrontmatter, remarkMdxFrontmatter],
37
- rehypePlugins: [rehypeSlug],
38
-
39
- }),
40
- ],
41
- server: {
42
- port: port,
43
- allowedHosts: allowedHosts,
44
- },
45
- build: {
46
- chunkSizeWarningLimit: 10000,
47
- },
48
- assetsInclude: ['**/*.tsx?raw', '**/*.html?raw', '**/*.ts?raw', '**/*.css?raw', '**/*.json?raw'],
49
- });
50
- }