declapract-typescript-ehmpathy 0.47.32 → 0.47.33
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
|
+
};
|
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.
|
|
5
|
+
"version": "0.47.33",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"repository": "ehmpathy/declapract-typescript-ehmpathy",
|