declapract-typescript-ehmpathy 0.33.3 → 0.33.5

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,6 +2,6 @@
2
2
  "dependencies": {
3
3
  "domain-objects": "@declapract{check.minVersion('0.22.1')}",
4
4
  "joi": "@declapract{check.minVersion('17.4.0')}",
5
- "type-fns": "@declapract{check.minVersion('0.16.0')}"
5
+ "type-fns": "@declapract{check.minVersion('1.16.0')}"
6
6
  }
7
7
  }
@@ -1,6 +1,5 @@
1
1
  import { FileCheckFunction, FileFixFunction } from 'declapract';
2
2
  import expect from 'expect';
3
- import uniq from 'lodash.uniq';
4
3
 
5
4
  const expectedIgnores = [
6
5
  '*.log',
@@ -18,7 +17,9 @@ const expectedIgnores = [
18
17
 
19
18
  const defineExpectedContents = (contents: string | null): string => {
20
19
  const ignoresAlreadyDefined = contents ? contents.split('\n') : [];
21
- const finalLines = uniq([...ignoresAlreadyDefined, ...expectedIgnores]) // union of the ones we want plus the ones they defined
20
+ const finalLines = [
21
+ ...new Set([...ignoresAlreadyDefined, ...expectedIgnores]),
22
+ ] // union of the ones we want plus the ones they defined
22
23
  .sort() // sorted
23
24
  .filter((line) => !!line); // without empty lines
24
25
  return [...finalLines.sort(), ''].join('\n');
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ # if exists a .nvmrc, then `nvm use`, to use the specified version
4
+ [[ -f ".nvmrc" ]] && nvm use
@@ -1,4 +1,5 @@
1
1
  #!/bin/sh
2
2
  . "$(dirname -- "$0")/_/husky.sh"
3
3
 
4
+ . "$(dirname -- "$0")/check.nvm.sh"
4
5
  . "$(dirname -- "$0")/check.lockfile.sh"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "devDependencies": {
3
3
  "prettier": "@declapract{check.minVersion('2.8.1')}",
4
- "@trivago/prettier-plugin-sort-imports": "@declapract{check.minVersion('2.0.4')}"
4
+ "@trivago/prettier-plugin-sort-imports": "@declapract{check.minVersion('4.3.0')}"
5
5
  },
6
6
  "scripts": {
7
7
  "fix:format:prettier": "prettier --write '**/*.ts' --config ./prettier.config.js",
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.33.3",
5
+ "version": "0.33.5",
6
6
  "main": "src/index.js",
7
7
  "repository": "ehmpathy/declapract-typescript-ehmpathy",
8
8
  "homepage": "https://github.com/ehmpathy/declapract-typescript-ehmpathy",
@@ -40,21 +40,19 @@
40
40
  "dependencies": {
41
41
  "@ehmpathy/error-fns": "1.3.1",
42
42
  "expect": "29.4.2",
43
- "flat": "5.0.2",
44
- "lodash.uniq": "4.5.0"
43
+ "flat": "5.0.2"
45
44
  },
46
45
  "peerDependencies": {
47
- "declapract": "0.11.2"
46
+ "declapract": "0.11.5"
48
47
  },
49
48
  "devDependencies": {
50
49
  "@commitlint/cli": "17.6.7",
51
50
  "@commitlint/config-conventional": "13.1.0",
52
51
  "@ehmpathy/as-command": "1.0.1",
53
- "@trivago/prettier-plugin-sort-imports": "2.0.4",
52
+ "@trivago/prettier-plugin-sort-imports": "4.3.0",
54
53
  "@tsconfig/node-lts-strictest": "18.12.1",
55
54
  "@types/flat": "5.0.2",
56
55
  "@types/jest": "29.4.0",
57
- "@types/lodash.uniq": "4.5.7",
58
56
  "@typescript-eslint/eslint-plugin": "7.8.0",
59
57
  "@typescript-eslint/parser": "7.8.0",
60
58
  "core-js": "3.26.1",