@dpuse/dpuse-development 0.3.534 → 0.3.543
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/.gitattributes +0 -1
- package/.markdownlint.json +1 -0
- package/README.md +24 -12
- package/dist/dpuse-development.es.js +2331 -2410
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/types/src/actions/checkConfigFiles.d.ts +1 -0
- package/dist/types/src/index.d.ts +7 -7
- package/dist/types/src/utilities/index.d.ts +2 -1
- package/eslint.config.ts +1 -1
- package/package.json +31 -31
- package/vite.config.ts +4 -0
- package/dist/types/src/operations/test.d.ts +0 -1
- package/dist/types/src/operations/updateDPUseDependencies.d.ts +0 -1
- package/licenses/license-report-config.json +0 -16
- /package/dist/types/src/{operations → actions}/auditDependencies.d.ts +0 -0
- /package/dist/types/src/{operations → actions}/checkDependencies.d.ts +0 -0
- /package/dist/types/src/{operations → actions}/documentDependencies.d.ts +0 -0
- /package/dist/types/src/{operations → actions}/formatCode.d.ts +0 -0
- /package/dist/types/src/{operations → actions}/lintCode.d.ts +0 -0
- /package/dist/types/src/{operations → actions}/manageProject.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function checkConfigFiles(dependencies?: string[]): Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { checkDependencies } from './
|
|
4
|
-
export { documentDependencies } from './
|
|
5
|
-
export { formatCode } from './
|
|
6
|
-
export { lintCode } from './
|
|
7
|
-
export { updateDPUseDependencies } from './operations/updateDPUseDependencies';
|
|
1
|
+
export { auditDependencies } from './actions/auditDependencies';
|
|
2
|
+
export { checkConfigFiles } from './actions/checkConfigFiles';
|
|
3
|
+
export { checkDependencies } from './actions/checkDependencies';
|
|
4
|
+
export { documentDependencies } from './actions/documentDependencies';
|
|
5
|
+
export { formatCode } from './actions/formatCode';
|
|
6
|
+
export { lintCode } from './actions/lintCode';
|
|
8
7
|
export { uploadDirectoryToR2 } from './utilities/cloudflare';
|
|
8
|
+
export { buildProject, releaseProject, syncProjectWithGitHub, testProject } from './actions/manageProject';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dirent, ObjectEncodingOptions, Stats } from 'node:fs';
|
|
2
|
-
|
|
2
|
+
interface ModuleTypeConfig {
|
|
3
3
|
idPrefix: string;
|
|
4
4
|
typeId: 'app' | 'api' | 'connector' | 'context' | 'development' | 'engine' | 'eslint' | 'kb' | 'presenter' | 'resources' | 'shared' | 'tool';
|
|
5
5
|
isPublished: boolean;
|
|
@@ -23,3 +23,4 @@ export declare function getModuleConfig(configId: string): ModuleTypeConfig;
|
|
|
23
23
|
export declare function getStatsForPath(path: string): Promise<Stats>;
|
|
24
24
|
export declare function extractOperationsFromSource<T>(source: string): T[];
|
|
25
25
|
export declare function substituteText(originalText: string, substituteText: string, startMarker: string, endMarker: string): string;
|
|
26
|
+
export {};
|
package/eslint.config.ts
CHANGED
|
@@ -23,7 +23,6 @@ export default defineConfig(
|
|
|
23
23
|
settings: {
|
|
24
24
|
'import-x/core-modules': ['cloudflare:workers'],
|
|
25
25
|
'import-x/resolver': {
|
|
26
|
-
// node: { extensions: ['.js', '.mjs', '.ts'] }, TODO: Do not think this is required.
|
|
27
26
|
typescript: { project: ['./tsconfig.json'] }
|
|
28
27
|
}
|
|
29
28
|
}
|
|
@@ -67,6 +66,7 @@ export default defineConfig(
|
|
|
67
66
|
|
|
68
67
|
'unicorn/filename-case': ['error', { cases: { camelCase: true, pascalCase: true }, ignore: ['updateDPUseDependencies'] }],
|
|
69
68
|
'unicorn/no-null': 'off',
|
|
69
|
+
'unicorn/no-process-exit': 'off', // This package only contains scripts that are run as package.json scripts.
|
|
70
70
|
'unicorn/switch-case-braces': ['warn', 'avoid']
|
|
71
71
|
}
|
|
72
72
|
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-development",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.543",
|
|
4
|
+
"private": false,
|
|
4
5
|
"description": "Actions for managing DPUse projects.",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
7
|
-
"private": false,
|
|
8
8
|
"type": "module",
|
|
9
|
+
"sideEffects": false,
|
|
9
10
|
"homepage": "https://www.dpuse.app",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/dpuse/dpuse-development/issues"
|
|
13
|
+
},
|
|
10
14
|
"repository": {
|
|
11
15
|
"type": "git",
|
|
12
16
|
"url": "git+https://github.com/dpuse/dpuse-development.git"
|
|
13
17
|
},
|
|
14
|
-
"bugs": {
|
|
15
|
-
"url": "https://github.com/dpuse/dpuse-development/issues"
|
|
16
|
-
},
|
|
17
18
|
"module": "./dist/dpuse-development.es.js",
|
|
18
19
|
"types": "./dist/types/src/index.d.ts",
|
|
19
20
|
"exports": {
|
|
@@ -40,8 +41,28 @@
|
|
|
40
41
|
"vite.config.ts",
|
|
41
42
|
"vitest.config.ts"
|
|
42
43
|
],
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=22",
|
|
46
|
+
"npm": ">=11"
|
|
47
|
+
},
|
|
48
|
+
"allowScripts": {
|
|
49
|
+
"fsevents@2.3.3": true,
|
|
50
|
+
"unrs-resolver@1.11.1": true
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"audit": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.auditDependencies())\"",
|
|
54
|
+
"build": "vite build",
|
|
55
|
+
"check": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.checkDependencies())\"",
|
|
56
|
+
"document": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.documentDependencies(['Apache-2.0;MIT']))\"",
|
|
57
|
+
"format": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.formatCode())\"",
|
|
58
|
+
"lint": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.lintCode())\"",
|
|
59
|
+
"release": "op run --env-file=.env -- node -e \"import('./dist/dpuse-development.es.js').then(m => m.releaseProject())\"",
|
|
60
|
+
"sync": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.syncProjectWithGitHub())\"",
|
|
61
|
+
"test": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.testProject())\"",
|
|
62
|
+
"update": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.updateDPUseDependencies(['eslint', 'shared']))\""
|
|
63
|
+
},
|
|
43
64
|
"dependencies": {
|
|
44
|
-
"@dpuse/dpuse-shared": "^0.3.
|
|
65
|
+
"@dpuse/dpuse-shared": "^0.3.675",
|
|
45
66
|
"acorn": "^8.17.0",
|
|
46
67
|
"acorn-typescript": "^1.4.13",
|
|
47
68
|
"acorn-walk": "^8.3.5",
|
|
@@ -55,7 +76,7 @@
|
|
|
55
76
|
"eslint": "^10.5.0",
|
|
56
77
|
"eslint-config-prettier": "^10.1.8",
|
|
57
78
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
58
|
-
"eslint-plugin-import-x": "^4.
|
|
79
|
+
"eslint-plugin-import-x": "^4.17.0",
|
|
59
80
|
"eslint-plugin-regexp": "^3.1.0",
|
|
60
81
|
"eslint-plugin-security": "^4.0.1",
|
|
61
82
|
"eslint-plugin-sonarjs": "^4.1.0",
|
|
@@ -63,35 +84,14 @@
|
|
|
63
84
|
"jiti": "^2.7.0",
|
|
64
85
|
"license-checker-rseidelsohn": "^5.0.1",
|
|
65
86
|
"npm-check-updates": "^22.2.7",
|
|
66
|
-
"owasp-dependency-check": "^1.0.1",
|
|
67
87
|
"prettier": "^3.8.4",
|
|
68
88
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
69
89
|
"sonda": "^0.13.1",
|
|
70
90
|
"type-fest": "^5.7.0",
|
|
71
91
|
"typescript": "^6.0.3",
|
|
72
|
-
"typescript-eslint": "^8.
|
|
73
|
-
"vite": "^8.0
|
|
74
|
-
"vite-plugin-dts": "^5.0.
|
|
92
|
+
"typescript-eslint": "^8.62.0",
|
|
93
|
+
"vite": "^8.1.0",
|
|
94
|
+
"vite-plugin-dts": "^5.0.3",
|
|
75
95
|
"vitest": "^4.1.9"
|
|
76
|
-
},
|
|
77
|
-
"scripts": {
|
|
78
|
-
"audit": "op run --env-file=.env -- node -e \"import('./dist/dpuse-development.es.js').then(m => m.auditDependencies())\"",
|
|
79
|
-
"build": "vite build",
|
|
80
|
-
"check": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.checkDependencies())\"",
|
|
81
|
-
"document": "op run --env-file=.env -- node -e \"import('./dist/dpuse-development.es.js').then(m => m.documentDependencies(['MIT']))\"",
|
|
82
|
-
"format": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.formatCode())\"",
|
|
83
|
-
"lint": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.lintCode())\"",
|
|
84
|
-
"release": "op run --env-file=.env -- node -e \"import('./dist/dpuse-development.es.js').then(m => m.releaseProject())\"",
|
|
85
|
-
"sync": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.syncProjectWithGitHub())\"",
|
|
86
|
-
"test": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.testProject())\"",
|
|
87
|
-
"update": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.updateDPUseDependencies(['eslint', 'shared']))\""
|
|
88
|
-
},
|
|
89
|
-
"engines": {
|
|
90
|
-
"node": ">=22.0.0",
|
|
91
|
-
"npm": ">=11.0.0"
|
|
92
|
-
},
|
|
93
|
-
"allowScripts": {
|
|
94
|
-
"fsevents@2.3.3": true,
|
|
95
|
-
"unrs-resolver@1.11.1": true
|
|
96
96
|
}
|
|
97
97
|
}
|
package/vite.config.ts
CHANGED
|
@@ -22,6 +22,10 @@ export default defineConfig({
|
|
|
22
22
|
},
|
|
23
23
|
rollupOptions: {
|
|
24
24
|
external: ['node:child_process', 'node:fs', 'node:path', 'node:readline', 'node:url', 'node:util'], // Keep runtime dependencies out of bundle.
|
|
25
|
+
onwarn(warning, warn) {
|
|
26
|
+
if (warning.code === 'INVALID_ANNOTATION' && warning.id?.includes('acorn-typescript')) return;
|
|
27
|
+
warn(warning);
|
|
28
|
+
},
|
|
25
29
|
plugins: [
|
|
26
30
|
Sonda({
|
|
27
31
|
filename: 'index', // Output file name.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function test(): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function updateDPUseDependencies(dependencies?: string[]): Promise<void>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|