@dpuse/dpuse-development 0.3.535 → 0.3.545

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.
@@ -0,0 +1 @@
1
+ export declare function checkConfigFiles(dependencies?: string[]): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function documentOperations(): Promise<void>;
@@ -1,8 +1,9 @@
1
- export { buildProject, releaseProject, syncProjectWithGitHub, testProject } from './operations/manageProject';
2
- export { auditDependencies } from './operations/auditDependencies';
3
- export { checkDependencies } from './operations/checkDependencies';
4
- export { documentDependencies } from './operations/documentDependencies';
5
- export { formatCode } from './operations/formatCode';
6
- export { lintCode } from './operations/lintCode';
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 { documentOperations } from './actions/documentOperations';
6
+ export { formatCode } from './actions/formatCode';
7
+ export { lintCode } from './actions/lintCode';
8
8
  export { uploadDirectoryToR2 } from './utilities/cloudflare';
9
+ export { buildProject, releaseProject, syncProjectWithGitHub, testProject } from './actions/manageProject';
@@ -1,5 +1,5 @@
1
1
  import { Dirent, ObjectEncodingOptions, Stats } from 'node:fs';
2
- export interface ModuleTypeConfig {
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.535",
3
+ "version": "0.3.545",
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.674",
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.16.2",
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",
@@ -68,29 +89,9 @@
68
89
  "sonda": "^0.13.1",
69
90
  "type-fest": "^5.7.0",
70
91
  "typescript": "^6.0.3",
71
- "typescript-eslint": "^8.61.1",
72
- "vite": "^8.0.16",
73
- "vite-plugin-dts": "^5.0.2",
92
+ "typescript-eslint": "^8.62.0",
93
+ "vite": "^8.1.0",
94
+ "vite-plugin-dts": "^5.0.3",
74
95
  "vitest": "^4.1.9"
75
- },
76
- "scripts": {
77
- "audit": "op run --env-file=.env -- node -e \"import('./dist/dpuse-development.es.js').then(m => m.auditDependencies())\"",
78
- "build": "vite build",
79
- "check": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.checkDependencies())\"",
80
- "document": "op run --env-file=.env -- node -e \"import('./dist/dpuse-development.es.js').then(m => m.documentDependencies(['MIT']))\"",
81
- "format": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.formatCode())\"",
82
- "lint": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.lintCode())\"",
83
- "release": "op run --env-file=.env -- node -e \"import('./dist/dpuse-development.es.js').then(m => m.releaseProject())\"",
84
- "sync": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.syncProjectWithGitHub())\"",
85
- "test": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.testProject())\"",
86
- "update": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.updateDPUseDependencies(['eslint', 'shared']))\""
87
- },
88
- "engines": {
89
- "node": ">=22.0.0",
90
- "npm": ">=11.0.0"
91
- },
92
- "allowScripts": {
93
- "fsevents@2.3.3": true,
94
- "unrs-resolver@1.11.1": true
95
96
  }
96
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>;
@@ -1,16 +0,0 @@
1
- {
2
- "fields": [
3
- "department",
4
- "relatedTo",
5
- "name",
6
- "licensePeriod",
7
- "material",
8
- "licenseType",
9
- "link",
10
- "remoteVersion",
11
- "installedVersion",
12
- "definedVersion",
13
- "author",
14
- "latestRemoteModified"
15
- ]
16
- }