declapract-typescript-ehmpathy 0.46.5 → 0.46.7

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,9 +1,11 @@
1
1
  #!/bin/bash
2
2
 
3
3
  # https://github.com/wclr/yalc
4
- if command -v npx &> /dev/null; then
5
- if [ "$(npx yalc check 2>/dev/null)" ]; then
4
+ if command -v node > /dev/null 2>&1 && [ -x ./node_modules/.bin/yalc ]; then
5
+ if [ "$(./node_modules/.bin/yalc check 2>/dev/null)" ]; then
6
6
  echo "✋ package.json has yalc references. Run 'npx yalc remove --all' to remove these local testing references."
7
7
  fi
8
+ else
9
+ echo "🟡 yalc not available, wont check for yalc references"
8
10
  fi
9
11
 
@@ -3,6 +3,7 @@
3
3
  "prepare:husky": "husky install && chmod ug+x .husky/*"
4
4
  },
5
5
  "devDependencies": {
6
- "husky": "@declapract{check.minVersion('8.0.3')}"
6
+ "husky": "@declapract{check.minVersion('8.0.3')}",
7
+ "yalc": "@declapract{check.minVersion('1.0.0')}"
7
8
  }
8
9
  }
@@ -14,3 +14,4 @@ ignores:
14
14
  - husky
15
15
  - tsx
16
16
  - tsc-alias
17
+ - yalc
@@ -9,10 +9,10 @@
9
9
  "@swc/jest": "@declapract{check.minVersion('0.2.39')}"
10
10
  },
11
11
  "scripts": {
12
- "test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')",
13
- "test:integration": "jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')",
14
- "test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests",
12
+ "test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')",
13
+ "test:integration": "jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')",
14
+ "test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')",
15
15
  "test": "npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally",
16
- "test:acceptance": "npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests"
16
+ "test:acceptance": "npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')"
17
17
  }
18
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.46.5",
5
+ "version": "0.46.7",
6
6
  "license": "MIT",
7
7
  "main": "src/index.js",
8
8
  "repository": "ehmpathy/declapract-typescript-ehmpathy",
@@ -33,9 +33,9 @@
33
33
  "test:lint:biome": "npm run biome:nested:hide && biome check --diagnostic-level=error; EXIT=$?; npm run biome:nested:restore; exit $EXIT",
34
34
  "test:lint:biome:all": "npm run biome:nested:hide && biome check; EXIT=$?; npm run biome:nested:restore; exit $EXIT",
35
35
  "test:lint": "npm run test:lint:biome && npm run test:lint:deps",
36
- "test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')",
37
- "test:integration": "jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')",
38
- "test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests",
36
+ "test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')",
37
+ "test:integration": "jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')",
38
+ "test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')",
39
39
  "test": "npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally && test:validate",
40
40
  "test:acceptance": "npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests",
41
41
  "prepush": "npm run test && npm run build",
@@ -55,7 +55,7 @@
55
55
  "yaml": "2.8.2"
56
56
  },
57
57
  "peerDependencies": {
58
- "declapract": ">=0.13.1"
58
+ "declapract": ">=0.13.3"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@biomejs/biome": "2.3.8",
@@ -80,7 +80,8 @@
80
80
  "tsc-alias": "1.8.10",
81
81
  "tsx": "4.20.6",
82
82
  "type-fns": "0.8.1",
83
- "typescript": "5.4.5"
83
+ "typescript": "5.4.5",
84
+ "yalc": "1.0.0-pre.53"
84
85
  },
85
86
  "config": {
86
87
  "commitizen": {