@datapos/datapos-development 0.3.310 → 0.3.313

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.
@@ -1,8 +1,7 @@
1
- /**
2
- * Cloudflare utilities.
3
- */
1
+ import { PackageJson } from 'type-fest';
2
+ import { ModuleConfig } from '@datapos/datapos-shared';
4
3
  declare function putState(): Promise<void>;
5
4
  declare function uploadDirectoryToR2(sourceDirectory: string, uploadDirectory: string): Promise<void>;
6
- declare function uploadModuleConfigToDO(): Promise<void>;
7
- declare function uploadModuleToR2(uploadDirectoryPath: string): Promise<void>;
5
+ declare function uploadModuleConfigToDO(configJSON: ModuleConfig): Promise<void>;
6
+ declare function uploadModuleToR2(packageJSON: PackageJson, uploadDirectoryPath: string): Promise<void>;
8
7
  export { putState, uploadDirectoryToR2, uploadModuleConfigToDO, uploadModuleToR2 };
@@ -10,7 +10,8 @@ declare function logOperationSuccess(message: string): void;
10
10
  declare function logStepHeader(text: string): void;
11
11
  declare function readJSONFile<T>(path: string): Promise<T>;
12
12
  declare function readTextFile(path: string): Promise<string>;
13
+ declare function removeFile(path: string): Promise<void>;
13
14
  declare function spawnCommand(label: string, command: string, arguments_?: string[], ignoreErrors?: boolean): Promise<void>;
14
15
  declare function writeJSONFile(path: string, data: object): Promise<void>;
15
16
  declare function writeTextFile(path: string, data: string): Promise<void>;
16
- export { execCommand, extractOperationsFromSource, getDirectoryEntries, getStatsForPath, loadEnvironmentVariables, logOperationHeader, logOperationSuccess, logStepHeader, readJSONFile, readTextFile, spawnCommand, writeJSONFile, writeTextFile };
17
+ export { execCommand, extractOperationsFromSource, getDirectoryEntries, getStatsForPath, loadEnvironmentVariables, logOperationHeader, logOperationSuccess, logStepHeader, readJSONFile, readTextFile, removeFile, spawnCommand, writeJSONFile, writeTextFile };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.310",
3
+ "version": "0.3.313",
4
4
  "description": "A library of utilities used to manage Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",
@@ -38,12 +38,13 @@
38
38
  "zod": "^4.1.13"
39
39
  },
40
40
  "devDependencies": {
41
- "@datapos/eslint-config-datapos": "^1.0.12",
41
+ "@datapos/eslint-config-datapos": "^1.0.16",
42
42
  "@types/eslint-plugin-security": "^3.0.0",
43
43
  "@types/node": "^24.10.2",
44
44
  "@typescript-eslint/eslint-plugin": "^8.49.0",
45
45
  "@typescript-eslint/parser": "^8.49.0",
46
46
  "eslint": "^9.39.1",
47
+ "eslint-import-resolver-typescript": "^3.6.1",
47
48
  "eslint-plugin-import": "^2.32.0",
48
49
  "eslint-plugin-security": "^3.0.1",
49
50
  "eslint-plugin-sonarjs": "^3.0.5",
@@ -67,13 +68,13 @@
67
68
  "vitest": "^4.0.15"
68
69
  },
69
70
  "scripts": {
70
- "audit": "node -e \"import('./dist/datapos-development.es.js').then(m => m.auditDependencies())\"",
71
+ "audit": "op run --env-file=.env -- node -e \"import('./dist/datapos-development.es.js').then(m => m.auditDependencies())\"",
71
72
  "build": "node -e \"import('./dist/datapos-development.es.js').then(m => m.buildProject())\"",
72
73
  "check": "node -e \"import('./dist/datapos-development.es.js').then(m => m.checkDependencies())\"",
73
- "document": "node -e \"import('./dist/datapos-development.es.js').then(m => m.documentDependencies(['BSD-2-Clause','MIT']))\"",
74
+ "document": "op run --env-file=.env -- node -e \"import('./dist/datapos-development.es.js').then(m => m.documentDependencies(['BSD-2-Clause','MIT']))\"",
74
75
  "format": "node -e \"import('./dist/datapos-development.es.js').then(m => m.formatCode())\"",
75
76
  "lint": "node -e \"import('./dist/datapos-development.es.js').then(m => m.lintCode())\"",
76
- "release": "node -e \"import('./dist/datapos-development.es.js').then(m => m.releaseProject())\"",
77
+ "release": "op run --env-file=.env -- node -e \"import('./dist/datapos-development.es.js').then(m => m.releaseProject())\"",
77
78
  "sync": "node -e \"import('./dist/datapos-development.es.js').then(m => m.syncProjectWithGitHub())\"",
78
79
  "test": "node -e \"import('./dist/datapos-development.es.js').then(m => m.testProject())\"",
79
80
  "update": "node -e \"import('./dist/datapos-development.es.js').then(m => m.updateDataPosDependencies(['shared']))\"",
File without changes