@dpuse/dpuse-development 0.3.610 → 0.3.616

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.
@@ -8,9 +8,9 @@ interface ModuleTypeConfig {
8
8
  export declare function clearDirectory(label: string | undefined, directoryPath: string): Promise<void>;
9
9
  export declare function getDirectoryEntries(path: string): Promise<string[]>;
10
10
  export declare function getDirectoryEntries(path: string, options: ObjectEncodingOptions): Promise<Dirent[]>;
11
- export declare function execCommand(label: string | undefined, command_: string, arguments_?: string[], outputFilePath?: string): Promise<void>;
12
- export declare function spawnCommand(label: string, command: string, arguments_?: string[], isErrorIgnored?: boolean, isShellUsed?: boolean): Promise<void>;
13
- export declare function spawnCommandToFile(label: string, command: string, arguments_: string[] | undefined, outputPath: string, isErrorIgnored?: boolean): Promise<void>;
11
+ export declare function execCommand(label: string | undefined, command_: string, arguments_: string[], outputFilePath?: string): Promise<void>;
12
+ export declare function spawnCommand(label: string, command: string, arguments_: string[], isErrorIgnored?: boolean, isShellUsed?: boolean): Promise<void>;
13
+ export declare function spawnCommandToFile(label: string, command: string, arguments_: string[], outputPath: string, isErrorIgnored?: boolean): Promise<void>;
14
14
  export declare function readJSONFile<T>(path: string): Promise<T>;
15
15
  export declare function readTextFile(path: string): Promise<string>;
16
16
  export declare function removeFile(path: string): Promise<void>;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-development",
3
- "version": "0.3.610",
3
+ "version": "0.3.616",
4
4
  "private": false,
5
5
  "description": "Actions for managing DPUse projects.",
6
6
  "license": "MIT",
@@ -37,6 +37,7 @@
37
37
  "LICENSE",
38
38
  "tsconfig.scripts.json",
39
39
  "vite.config.default.ts",
40
+ "vite.config.tool.ts",
40
41
  "vitest.config.ts"
41
42
  ],
42
43
  "engines": {
@@ -66,6 +67,7 @@
66
67
  "acorn-walk": "^8.3.5",
67
68
  "license-checker-rseidelsohn": "^5.0.1",
68
69
  "nanoid": "^5.1.16",
70
+ "npm-check-updates": "^22.2.9",
69
71
  "valibot": "^1.4.2"
70
72
  },
71
73
  "devDependencies": {
@@ -81,7 +83,6 @@
81
83
  "eslint-plugin-sonarjs": "^4.1.0",
82
84
  "eslint-plugin-unicorn": "^69.0.0",
83
85
  "jiti": "^2.7.0",
84
- "npm-check-updates": "^22.2.9",
85
86
  "prettier": "^3.9.4",
86
87
  "rollup-plugin-visualizer": "^7.0.1",
87
88
  "sonda": "^0.13.1",
@@ -0,0 +1,38 @@
1
+ // ── External Dependencies & Registrations
2
+ import { defineConfig } from 'vite';
3
+ import dts from 'vite-plugin-dts';
4
+ import Sonda from 'sonda/vite';
5
+ import { visualizer } from 'rollup-plugin-visualizer';
6
+ import { fileURLToPath, URL } from 'node:url';
7
+
8
+ // ── Data
9
+ import config from './config.json';
10
+
11
+ // ── Vite Configuration ──────────────────────────────────────────────────────────────────────────────────────────────
12
+
13
+ export default defineConfig({
14
+ build: {
15
+ lib: {
16
+ entry: fileURLToPath(new URL('src/index.ts', import.meta.url)),
17
+ fileName: (format) => `${config.id}.${format}.js`,
18
+ formats: ['es']
19
+ },
20
+ rollupOptions: {
21
+ external: [/^https:\/\/engine-eu\.dpuse\.app\//],
22
+ plugins: [
23
+ Sonda({ filename: 'index', format: 'html', gzip: true, brotli: true, open: false, outputDir: './bundle-analysis-reports/sonda' }),
24
+ visualizer({ filename: './bundle-analysis-reports/rollup-visualiser/index.html', open: false, gzipSize: true, brotliSize: true }),
25
+ visualizer({ filename: './bundle-analysis-reports/rollup-visualiser/index.json', template: 'raw-data', gzipSize: true, brotliSize: true })
26
+ ]
27
+ },
28
+ sourcemap: true,
29
+ target: 'ESNext'
30
+ },
31
+ plugins: [dts({ outDirs: 'dist/types' })],
32
+ resolve: {
33
+ alias: {
34
+ '~': fileURLToPath(new URL('./', import.meta.url)),
35
+ '@': fileURLToPath(new URL('src', import.meta.url))
36
+ }
37
+ }
38
+ });