@dpuse/dpuse-development 0.3.733 → 0.3.741
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/README.md +15 -75
- package/dist/dpuse-development.es.js +658 -632
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/types/src/utilities/index.d.ts +6 -0
- package/package.json +1 -1
- package/vite.config.default.ts +1 -1
- package/vite.config.tool.ts +1 -1
- package/vite.config.wasm.ts +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PackageJson } from 'type-fest';
|
|
1
2
|
import { Dirent, ObjectEncodingOptions, Stats } from 'node:fs';
|
|
2
3
|
export interface ModuleTypeConfig {
|
|
3
4
|
idPrefix: string;
|
|
@@ -16,11 +17,16 @@ export declare function readTextFile(path: string): Promise<string>;
|
|
|
16
17
|
export declare function readTextFileOrNull(path: string): Promise<string | null>;
|
|
17
18
|
export declare function removeFile(path: string): Promise<void>;
|
|
18
19
|
export declare function writeJSONFile(path: string, data: object): Promise<void>;
|
|
20
|
+
export declare function writeReadmeSection(content: string, startMarker: string, endMarker: string): Promise<void>;
|
|
19
21
|
export declare function writeTextFile(path: string, data: string): Promise<void>;
|
|
20
22
|
export declare function logOperationHeader(text: string): void;
|
|
21
23
|
export declare function logOperationSuccess(message: string): void;
|
|
22
24
|
export declare function logStepHeader(text: string): void;
|
|
23
25
|
export declare function getModuleConfig(configId: string): ModuleTypeConfig;
|
|
26
|
+
export declare function resolveOwnerAndRepo(packageJSON: PackageJson, purpose: string): {
|
|
27
|
+
owner: string;
|
|
28
|
+
repo: string;
|
|
29
|
+
};
|
|
24
30
|
export declare function getStatsForPath(path: string): Promise<Stats>;
|
|
25
31
|
export declare function extractOperationsFromSource<T>(source: string): T[];
|
|
26
32
|
export declare function substituteText(originalText: string, substituteText: string, startMarker: string, endMarker: string): string;
|
package/package.json
CHANGED
package/vite.config.default.ts
CHANGED
|
@@ -17,7 +17,7 @@ export default defineConfig({
|
|
|
17
17
|
formats: ['es']
|
|
18
18
|
},
|
|
19
19
|
rollupOptions: {
|
|
20
|
-
plugins: [Sonda({ filename: 'index', format: 'json', brotli:
|
|
20
|
+
plugins: [Sonda({ filename: 'index', format: 'json', brotli: false, gzip: true, open: false, outputDir: './bundle-analysis-reports/sonda' })]
|
|
21
21
|
},
|
|
22
22
|
sourcemap: true,
|
|
23
23
|
target: 'ESNext'
|
package/vite.config.tool.ts
CHANGED
|
@@ -18,7 +18,7 @@ export default defineConfig({
|
|
|
18
18
|
},
|
|
19
19
|
rollupOptions: {
|
|
20
20
|
external: [/^https:\/\/engine-eu\.dpuse\.app\//],
|
|
21
|
-
plugins: [Sonda({ filename: 'index', format: 'json', brotli:
|
|
21
|
+
plugins: [Sonda({ filename: 'index', format: 'json', brotli: false, gzip: true, open: false, outputDir: './bundle-analysis-reports/sonda' })]
|
|
22
22
|
},
|
|
23
23
|
sourcemap: true,
|
|
24
24
|
target: 'ESNext'
|
package/vite.config.wasm.ts
CHANGED
|
@@ -22,7 +22,7 @@ export default defineConfig({
|
|
|
22
22
|
formats: ['es']
|
|
23
23
|
},
|
|
24
24
|
rollupOptions: {
|
|
25
|
-
plugins: [Sonda({ filename: 'index', format: 'json', brotli:
|
|
25
|
+
plugins: [Sonda({ filename: 'index', format: 'json', brotli: false, gzip: true, open: false, outputDir: './bundle-analysis-reports/sonda' })]
|
|
26
26
|
},
|
|
27
27
|
sourcemap: true,
|
|
28
28
|
target: 'ESNext'
|