datapos-connector-file-store-emulator 0.2.215

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/tsconfig.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "allowSyntheticDefaultImports": true,
4
+ "baseUrl": ".",
5
+ "declaration": true,
6
+ "module": "ESNext",
7
+ "moduleResolution": "Node",
8
+ "noImplicitAny": true,
9
+ "outDir": "./dist",
10
+ "paths": {
11
+ "~/*": ["*"],
12
+ "@/*": ["src/*"]
13
+ },
14
+ "resolveJsonModule": true,
15
+ "target": "ESNext"
16
+ },
17
+ "include": ["vite.config.ts", "src/**/*.ts"]
18
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Vite configuration.
3
+ */
4
+
5
+ // Dependencies - Vendor.
6
+ import config from './config.json';
7
+ import { defineConfig } from 'vite';
8
+ import dts from 'vite-plugin-dts';
9
+ import { resolve } from 'node:path';
10
+ import { visualizer } from 'rollup-plugin-visualizer';
11
+
12
+ // Exposures - Configuration.
13
+ export default defineConfig({
14
+ base: 'https://engine-eu.datapos.app/',
15
+ build: {
16
+ lib: {
17
+ entry: resolve('src/index.ts'),
18
+ name: 'DataposFileStoreEmulatorConnector',
19
+ formats: ['es'],
20
+ fileName: (format: string) => `${config.id}.${format}.js`
21
+ },
22
+ rollupOptions: {
23
+ external: [/^https:\/\/engine-eu\.datapos\.app\//],
24
+ plugins: [
25
+ visualizer({
26
+ filename: 'stats/index.html', // HTML report.
27
+ open: false, // Automatically opens in browser.
28
+ gzipSize: true, // Show gzip sizes.
29
+ brotliSize: true // Show brotli sizes.
30
+ })
31
+ ]
32
+ },
33
+ target: 'ESNext'
34
+ },
35
+ plugins: [dts({ outDir: 'dist/types' })],
36
+ resolve: {
37
+ alias: {
38
+ '~': resolve(__dirname, '.'),
39
+ '@': resolve(__dirname, 'src')
40
+ }
41
+ }
42
+ });