declapract-typescript-ehmpathy 0.47.32 → 0.47.34

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,4 +1,18 @@
1
- import { FileCheckType } from 'declapract';
1
+ import { FileCheckType, type FileFixFunction } from 'declapract';
2
+ import { readFileSync } from 'fs';
3
+ import { dirname, join } from 'path';
2
4
 
3
5
  // check that the file contains the core structure
4
6
  export const check = FileCheckType.CONTAINS;
7
+
8
+ /**
9
+ * .what = replaces target file with expected content
10
+ * .why = ensures the skill file matches the best-practice version
11
+ */
12
+ export const fix: FileFixFunction = () => {
13
+ const expectedContent = readFileSync(
14
+ join(dirname(__filename), 'use.apikeys.sh'),
15
+ 'utf-8',
16
+ );
17
+ return { contents: expectedContent };
18
+ };
@@ -64,6 +64,9 @@ jobs:
64
64
  path: ./node_modules
65
65
  key: ${{ needs.install.outputs.node-modules-cache-key }}
66
66
 
67
+ - name: build
68
+ run: npm run build # build before test:types, to ensure .dist/ artifacts are importable for blackbox tests
69
+
67
70
  - name: test:types
68
71
  run: npm run test:types
69
72
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "declapract-typescript-ehmpathy",
3
3
  "author": "ehmpathy",
4
4
  "description": "declapract best practices declarations for typescript",
5
- "version": "0.47.32",
5
+ "version": "0.47.34",
6
6
  "license": "MIT",
7
7
  "main": "src/index.js",
8
8
  "repository": "ehmpathy/declapract-typescript-ehmpathy",