declapract-typescript-ehmpathy 0.47.12 → 0.47.13
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## what
|
|
4
4
|
|
|
5
|
-
detects `rhachet` and `rhachet-*` packages listed as production dependencies and moves them to devDependencies.
|
|
5
|
+
detects `rhachet` and `rhachet-roles-*` packages listed as production dependencies and moves them to devDependencies.
|
|
6
6
|
|
|
7
7
|
## why
|
|
8
8
|
|
|
@@ -18,7 +18,6 @@ rhachet packages are build-time / development tooling only. they should never be
|
|
|
18
18
|
|
|
19
19
|
- `rhachet`
|
|
20
20
|
- `rhachet-roles-*` (e.g., `rhachet-roles-ehmpathy`, `rhachet-roles-bhrain`, `rhachet-roles-bhuild`)
|
|
21
|
-
- any future `rhachet-*` packages
|
|
22
21
|
|
|
23
22
|
## fix
|
|
24
23
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { FileCheckFunction, FileFixFunction } from 'declapract';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* .what = detects rhachet and rhachet-* packages in production dependencies
|
|
4
|
+
* .what = detects rhachet and rhachet-roles-* packages in production dependencies
|
|
5
5
|
* .why = these packages should be devDependencies or peerDependencies, never direct prod deps
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
const rhachetPackagePattern = /^rhachet(-.*)?$/;
|
|
8
|
+
const rhachetPackagePattern = /^rhachet(-roles-.*)?$/;
|
|
9
9
|
|
|
10
10
|
export const check: FileCheckFunction = (contents) => {
|
|
11
11
|
if (!contents) throw new Error('does not match bad practice');
|
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.13",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"repository": "ehmpathy/declapract-typescript-ehmpathy",
|